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

Make the document creation take into account the segment limit in WebUI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10, 2021.0
    • Fix Version/s: 10.10-HF69, 2023.0, 2021.30
    • Component/s: Web UI
    • Release Notes Summary:
      Apply path segment max size at document creation
    • Release Notes Description:
      Hide

      The segment limit can be adapted like in the sample contrib attached

      Show
      The segment limit can be adapted like in the sample contrib attached
    • Backlog priority:
      800
    • Sprint:
      nxplatform #74, nxplatform #76
    • Story Points:
      3

      Description

      Steps to reproduce:

      Run this curl command

      $ curl -u Administrator:Administrator 'http://localhost:8080/nuxeo/api/v1/path/default-domain/UserWorkspaces/Administrator' -X POST -H 'Accept: text/plain,application/json, application/json' -H 'Content-Type: application/json' --data-raw '
      {
        "entity-type": "document",
        "repository": "default",
        "path": "/default-domain/UserWorkspaces/Administrator/null",
        "type": "File",
        "properties": {
          "uid:uid": null,
          "uid:major_version": null,
          "uid:minor_version": null,
          "file:content": null,
          "common:icon-expanded": null,
          "common:icon": null,
          "files:files": [],
          "dc:description": null,
          "dc:language": null,
          "dc:coverage": null,
          "dc:valid": null,
          "dc:rights": null,
          "dc:expired": null,
          "dc:format": null,
          "dc:title": "A very long title whose total length will be really more than 24 characters and should hit the segment limitation",
          "dc:issued": null,
          "dc:nature": null,
          "dc:subjects": [],
          "dc:source": null,
          "dc:publisher": null,
          "relatedtext:relatedtextresources": [],
          "nxtag:tags": []
        },
        "name": "A very long title whose total length will be really more than 24 characters and should hit the segment limitation"
      }
      '

      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:
                4 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 - 20 minutes
                  20m