Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-6377

XML Backup/Restore, workflow truncation

    XMLWordPrintable

Details

    Description

      We have a large workflow, 15 steps.

      When creating an XML backup the embedded workflow XML is truncated within the backup file as a result errors are reported when importing the backup. No errors are reported while creating the backup.

      The problem is only apparent in the logs, Jira does not report any problems during the import to the browser.

      When the workflows are viewd in Jira, they are all incative, none have the activate option and the name and descriptions are missing. The resulting system is unusable after restoring from the backup. Fortunately I discovered this on a development system but the live system backups are now unusable.

      Using the XML link on the workflow page (prior to importing the bad backup) is okay, so I tried replacing the workflow in the backup XML file but this still does not import suggesting that the limitation is in both the backup and restore. Analysis suggests that the problem occurs at about 32k characters for a single workflow so probably this is a buffer size problem. I have the 3.0.3 source so if there is a way to fix this without waiting for an upgrade I would appreciate it.

      Below is the end of the backup XML...

      <results>
      <unconditional-result old-status="Not Done" status="Done" step="7">
      <post-functions>
      <function type="class">
      <arg name="class.name">com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction</arg>
      </function>
      <function type="class">
      <arg name="class.name">com.atlassian.jira.workflow.function.misc.CreateCommentFunction</arg>
      </function>
      <function type="class">
      <arg name="class.name">com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction</arg>
      </function>
      <function t]]></descriptor>
      </Workflow>
      <WorkflowScheme id="10090" name="WorkflowScheme_Actinic-06" description="Professional - Internal Workflow Scheme"/>
      <WorkflowSchemeEntity id="10090" scheme="10090" workflow="Actinic-06" issuetype="0"/>
      </entity-engine-xml>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              a840ef8a176b Gordon Camley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: