Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19893

Fix error message in Collection service

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Detail
    • Resolution: Fixed
    • Affects Version/s: 6.0, 7.10, 8.2
    • Fix Version/s: 7.10-HF13, 8.10
    • Component/s: Collections
    • Tags:
    • Backlog priority:
      600
    • Sprint:
      nxGang Sprint 8.4.1, nxGang Sprint 8.4.2
    • Story Points:
      1

      Description

      This the diff to apply:

      diff --git a/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java b/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java
      index 61b07ed..de0993ef 100644
      --- a/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java
      +++ b/nuxeo-features/nuxeo-platform-collections/nuxeo-platform-collections-core/src/main/java/org/nuxeo/ecm/collections/core/CollectionManagerImpl.java
      @@ -165,7 +165,7 @@ public class CollectionManagerImpl extends DefaultComponent implements Collectio
               }
               if (!isCollection(collection)) {
                   throw new IllegalArgumentException(String.format("Document %s is not a collection",
      -                    documentToBeAdded.getTitle()));
      +                    collection.getTitle()));
               }
               if (!session.hasPermission(collection.getRef(), SecurityConstants.WRITE_PROPERTIES)) {
                   throw new DocumentSecurityException(String.format(PERMISSION_ERROR_MESSAGE,
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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