IBM Support

PK40198: WORKSPACE.FINDCONTENTBYWORKFLOWSTAGE METHOD DOES NOT RETURN DRAFTS

 

APAR status

  • Closed as program error.

Error description

  • The Workspace.findContentByWorkflowStage(Draft stage)
    throws the following exception:
    ObjectSummary W   <Null Message>
    
    com.ibm.workplace.wcm.services.repository.LockRetrievalException
            at
    com.ibm.workplace.wcm.services.content.ContentServiceImpl.getDra
    ftLockBy
    Id(ContentServiceImpl.java:4840)
            at
    com.ibm.workplace.wcm.domain.transformers.controllable.ObjectSum
    maryTran
    sformer.readSpecialCaseColumns(ObjectSummaryTransformer.java:578
    )
            at
    com.ibm.workplace.wcm.domain.transformers.controllable.ObjectSum
    maryTran
    sformer.loadColumnValues(ObjectSummaryTransformer.java:871)
    

Local fix

Problem summary

  • The getContentByWorkflowStage method was returning both content
    and content links, and hence we ran into the issues of trying to
    find a draftWorkspace for a ContentLink, with the uuid of the
    ContentLink and never could find it.
    

Problem conclusion

  • 1. Have added a new method in the ContentServiceImpl which would
    take a uuid and return the correct workspace for the
    controllable. If it is a DraftSummary      of a ContentLink , it
    would return the draftWorkspaceName of the original content.
    This method was used in getImpl() of the ContentServiceImpl and
    also in    the WCMAPILibraryService.getLibraryByID().
    
    2. Changed the WCM_Workspace.getContentByWorkflowStage method to
    return only Content.
    
       The above change needed addition of two methods to the
    CoreQueires class, findContentDraftSummariesByWorkflowStage and
    findContentByWorkflowStage
    
       Also added a method queryDraftContentByWorkflowStage to the
    RepositoryXPathBuilder.
    
    3. Changed the getParentId() method of the ContentLink in the
    API , to retireve the parentId(). This was uncovered during
    fixing the real problem.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK40198

  • Reported component name

    WRKPLC WEB CON

  • Reported component ID

    5724I2900

  • Reported release

    60A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-02-27

  • Closed date

    2007-04-23

  • Last modified date

    2007-04-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WRKPLC WEB CON

  • Fixed component ID

    5724I2900

Applicable component levels

  • R60A PSN

       UP

[{"Business Unit":{"code":null,"label":null},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0.0.1","Edition":"","Line of Business":{"code":null,"label":null}}]

Document Information

Modified date:
10 September 2020