Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20752

Cannot download to ACS published documents if Alfresco default tenant was defined explicitly

    Details

    • Bug Priority:
      Category 1
    • ACT Numbers:

      00992271

      Description

      Summary
      One cannot download documents in activiti-app that were published to ACS, if the default tenant name was specified in APS for the Alfresco repository explicitly.

      Steps to reproduce
      1. Login to activiti-app as admin@app.activiti.com
      2. Via "Identity Management" -> "Tenants" -> "Alfresco Repositories" add a valid Alfresco repository and make sure to set "-default-" explicitly for the "Alfresco tenant" field and save the repository.
      3. Via "Identity Management" -> "Personal" -> "Alfresco Repositories" select the just created Alfresco repository and configure valid ACS credentials for the current user
      4. Via "App Designer" import the attached app "Publish Doc App.zip"
      5. Open the imported process "Publish Doc Process" in BPMN editor
      6. Select the "Publish to Alfresco" task and configure the "Alfresco destination" by selecting the Alfresco "account" you created in step 2 and by selecting a destination folder for published content. Make sure that "Publish as Process Initiator" is configured.
      7. Publish the app "Publish Doc App"
      8. From the published app on the landing page start a new process and attach any document
      9. Wait a moment and go to the completed Process and inspect the UI and the network tab in the browser developper tools
      10. Try to download the attached document

      Expected behaviour
      There are no errors in the UI and one can download the attached document from the completed process.

      Current behaviour
      The UI shows a red bar with message "An error occured...". The docuemnt cannot be downloaded and looking into the browsers network tab in the dev tools one can see the internal REST call failing with status 500:

      GET http://localhost:9999/activiti-app/app/rest/process-instances/882501/field-content

      Response:

      org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: Invalid source id for alfresco content: 0712635a-7f9a-4890-893f-b54890f51a90;pwc@drone-registration-documents@-default-
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
      	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      ...
      java.lang.RuntimeException: Invalid source id for alfresco content: 0712635a-7f9a-4890-893f-b54890f51a90;pwc@drone-registration-documents@-default-
      	com.activiti.service.runtime.RelatedContentStreamProvider.parseAlfrescoOnPremInfo(RelatedContentStreamProvider.java:317)
      	com.activiti.service.runtime.RelatedContentStreamProvider.getLinkUrl(RelatedContentStreamProvider.java:166)
      	com.activiti.service.runtime.RelatedContentStreamProvider$$FastClassBySpringCGLIB$$220b02f0.invoke(<generated>)
      	org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      

      Supporting evidence

      • Reproduced with current latest APS 1.9.0.5 release
      • Workaround: Remove the "default" value for the "Alfresco tenant" field via "Identity Management" -> "Tenants" -> "Alfresco Repositories"

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dkoch Dennis Koch
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel