Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: No Version
    • Fix Version/s: 2.2.8
    • Component/s: Repository
    • Labels:
      None
    • Bug Priority:
      Category 3
    • ACT Numbers:

      3948

      Description

      ClassificationWebService.setCategories() should be able to clear/reset all categories for a given node if an empty array is passed in

      The change in org/alfresco/repo/webservice/classification/ClassificationWebService.java would be from this:

      ArrayList<NodeRef> categoryNodeRefs = new
      ArrayList<NodeRef>(category.getCategories().length);

      To:

      Reference[] categories = category.getCategories();
      ArrayList<NodeRef> categoryNodeRefs = null;
      if(categories == null)

      { categoryNodeRefs = new ArrayList<NodeRef>(0); }

      else
      {
      categoryNodeRefs = new ArrayList<NodeRef>(categories.length);
      for (Reference categoryReference : categories)

      { categoryNodeRefs.add(Utils.convertToNodeRef( categoryReference, ClassificationWebService.this.nodeService, ClassificationWebService.this.searchService, ClassificationWebService.this.namespaceService)); }

      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                jjaquette John Jaquette [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: