-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.3.1 CE GA2, 7.3.10 DXP GA1, Master
-
Component/s: App Builder, Data Engine
-
Fix Priority:3
-
Sprint:App_Builder_7.3_17
-
Git Pull Request:
Description
It is possible to create Form Views without a name (empty string) through API
Steps to Reproduce
- Open the console and send the following cURL:
curl -i -X POST \ http://localhost:8080/o/data-engine/v1.0/sites/20128/data-definitions \ -H 'Authorization: Basic dGVzdEBsaWZlcmF5LmNvbTp0ZXN0' \ -H 'Content-Type: application/json' \ -d '{ "dataDefinitionFields": [ { "fieldType": "text", "name": "product" } ], "description": { "value": "Description" }, "name": { "value": "" } }'
Expected Result
The API should not allow the creation of a Form View without a name;
Actual Result
The API is not handling the creation of a Form View without a name (empty string). This action is breaking the Form View list.
Reproduced In
master: 7b26f1191c7737228c9fd6e4b41a125d03efbaf1