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

Document.Create operation does not take into account the segment limit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2023.7, 2021.49
    • Fix Version/s: 2021.52, 2023.10
    • Component/s: Rest API
    • Release Notes Summary:
      Document.Create Operation takes path segment limit into account.
    • Backlog priority:
      750
    • Sprint:
      nxplatform #108
    • Story Points:
      3

      Description

      Steps to Reproduce:

      Run this curl command

      curl -X POST -H 'Content-Type: application/json' -u Administrator:Administrator http://localhost:8080/nuxeo/api/v1/automation/Document.Create -d '{"input":"<parentId>","params": { "type":"File", "name":"testing1234567891011121314151617181920", "properties": {"dc:title":"testing1234567891011121314151617181920"}}}'
      

      Observe that the returned JSON response contains the same value as the title for the name

      Expected behavior: the document creation should limit the document name to 24 characters (or to the value configuration with the property "nuxeo.path.segment.maxsize"

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: