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

JSON representation for a query with an empty X-NXfetch.document header should not include all external entities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.2
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Core IO

      Description

      The X-NXfetch.document header can be used to load additional parts of an object whose entity-type is document.

      But an empty value should not return all possible external objects.

      For instance the following query returns all user entities of dublincore:

      curl -u Administrator -X GET 'http://demo.nuxeo.com/nuxeo/api/v1/query?query=SELECT%20%2A%20FROM%20Document&pageSize=10&maxResults=100&currentPageIndex=0&sortBy=&sortOrder='  -H 'X-NXproperties: *' -H 'X-NXfetch.document;'  -vv
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bdelbosc Benoit Delbosc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: