Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-21864

ViewXMLExporter does not work for custom Category types

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 5.1
    • Fix Version/s: None
    • Component/s: Foundation Java APIs
    • Security Level: external (External user)
    • Labels:
      None
    • Resolution Time Custom Field:
      16 weeks, 5 days, 12 hours, 48 minutes, 33 seconds

      Description

      When some custom categories are exporting to an XML file, Alfresco's ViewXMLExporter does not recognize them as Category types.

      The Categories have special case that the full path should be exported in order to be imported correctly later.

      The issue is in the following:
      package org.alfresco.repo.exporter.ViewXMLExporter;
      method -> public void value(NodeRef nodeRef, QName property, Object value, int index)
      line: 567

      Actual: it checks if the property is equal to ContentModel.PROP_CATEGORIES, which limits to Alfresco's default category types.
      Expected: to check if the datatype is equal to DataTypeDefinition.CATEGORY, in order to work with all Category types.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  mbel Mariya Beleva (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

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

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 hour
                    1h
                    Remaining:
                    Remaining Estimate - 1 hour
                    1h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified

                      Structure Helper Panel