Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-4154

DataListDownloadWebScript should allow custom type Datalists

    Details

      Description

      The method

          private QName buildType(NodeRef list)
          {
             String typeS = (String)nodeService.getProperty(list, DATA_LIST_ITEM_TYPE);
             if(! typeS.startsWith(NamespaceService.DATALIST_MODEL_PREFIX + ":"))
             {
                throw new WebScriptException(Status.STATUS_NOT_IMPLEMENTED, "Unexpected list type " + typeS);
             }
             QName type = QName.createQName(NamespaceService.DATALIST_MODEL_1_0_URI, typeS.substring(typeS.indexOf(':')+1));
             return type;
          }
      

      does not allow export of custom type datalists.

      The following replacement fixes that

          private QName buildType(NodeRef list)
          {
              return QName.createQName((String) nodeService.getProperty(list, DATA_LIST_ITEM_TYPE), this.namespaceService);
          }
      

      Would appreciate if that could go into core.

        Attachments

          Activity

            People

            • Assignee:
              contentServices Content Services (Inactive)
              Reporter:
              deas0815 Andreas Steffan
            • Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m