Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-7446

Redeployment does not include all resources

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.6.0
    • Fix Version/s: 7.7.0, 7.6.3, 7.7.0-alpha2
    • Component/s: engine
    • Labels:

      Description

      If a deployment contains a process definition and a corresponding diagram, than both are successful deployed.

      If a process definition query is returned the returned process definition entity contains the diagram resource name.

      Is the cache cleared and the method
      repositoryService.getProcessDiagram(processDefinition.getId()); used, then the process definition can not resolved from the cache. This ends in redeployment of the corresponding deployment, which is identified via the ID. Problem lies in the CacheDeployer#deployOnlyGivenResourceOfDeployment, which calls the CacheDeployer#initDeployment. This init method only loads one resource for the deployment. In this case the corresponding diagram are not redeployed - so the process definition which is added into the cache contains no diagram resource name.

      The result is that repositoryService.getProcessDiagram(processDefinition.getId()); and repositoryService.getProcessDiagramLayout(processDefinition.getId()); returns null!

      Added failing test case into the engine, see commit.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            johannes.heinemann Johannes Heinemann
            Reporter:
            christopher.zell Christopher Zell
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development