-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10, 2021
-
Component/s: Directory
-
Release Notes Summary:It is no longer possible to create a directory entry with a blank id
-
Tags:
-
Backlog priority:700
-
Sprint:nxplatform #96
-
Story Points:2
NXP-31734 corrected this for NULL IDs, client requests correction for zero-byte IDs.
It should not be possible to create a directory entry that has an ID that is a zero-byte string.
Client also requests correction for IDs that are a string containing only any number of spaces.
It should not be possible to create a directory entry that has an ID that contains only spaces.
Unlike NXP-31734 this needs to be corrected for MongoDB and the other DB options like Postgres and H2.
curl -u Administrator:Administrator --location 'http://localhost:8080/nuxeo/api/v1/directory/language?pageSize=0' --header 'Content-Type: application/json' --data '{ "entity-type": "directoryEntry", "directoryName": "language", "properties": { "id":"", "obsolete": 0, "label": "Test1" }}'
curl -u Administrator:Administrator --location 'http://localhost:8080/nuxeo/api/v1/directory/language?pageSize=0' --header 'Content-Type: application/json' --data '{ "entity-type": "directoryEntry", "directoryName": "language", "properties": { "id":" ", "obsolete": 0, "label": "Test1" }}'
- is related to
-
NXP-31734 Able to create directory entry without id property using add directly API
- Resolved