-
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:
-
Tags:
-
Backlog priority:800
-
Sprint:nxplatform #74, nxplatform #76
-
Story Points:3
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"