Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.e Community, 4.0.e Community, 4.2.e Community, 5.0.d Community
    • Fix Version/s: None
    • Component/s: ZZ_Archive
    • Security Level: external (External user)
    • Labels:
    • Patch Attached:
      Yes
    • Resolution Time Custom Field:
      60 weeks, 2 days, 15 hours, 12 minutes, 50 seconds

      Description

      Hello,

      I have a bugfix for the implementation class org.alfresco.repo.exporter.ViewXMLExporter.

      The patch corrects a wrong behaviour during the creation of the XPath references between associations.

      The occurrence of the error is rare since it happens only under certain conditions (which my system punctually met... ).

      In particular if you have a data structure with children that are saved in the system with the same name and a series of associations
      in the data model, the original export routine failed to recreate the correct indexing of the XPath to use in the tag and in its children tags.
      The problem arise since the paths are scanned dynamically at each new recursion through the associations and without the proper regard to the already saved elements that need to be referenced.
      To correct the behaviour the patch saves the correct paths in an in memory data structure during the first recursion through the children of the acp root.

      The patch is for the export of the ACP file but the problem arises once an import is tried. It will fail because of the wrong XPath references.

      I developed the patch originally for the 3.4.e release, and subsequently ported it to the 4.0.e and 5.0.d .

      NOTE: There are no workarounds to this issue.

      The attached file is for the 5.0.d.

      Since the references are searched in memory the patch also improves the execution speed of the export in the case of presence of associations.

      Hope it helps someone...

      Regards,
      Giuseppe Raspanti

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  graspanti Giuseppe Raspanti (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Date of First Response:

                    Structure Helper Panel