Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.10 EE GA1, 6.2.X EE, 7.0.0 CE GA1, 7.0.0 DXP SP1, Master
-
6.2.x
-
Committed
Description
Description:
When updating a pre-existing DDL record via /ddlrecord/update-record method, the servers returns "java.lang.NullPointerException."
Steps to reproduce
1. Create a Data Definition in Site Admin > Dynamic Data Lists > Data Definitions with a single text field, change name of field to "text"
2. Add a list using this Data Definition
3. Add a record in the newly created list, copy recordId (can be found in edit record markup)
4. Navigate to /api/jsonws?signature=%2Fddlrecord%2Fupdate-record-5-recordId-displayIndex-fieldsMap-mergeFields-serviceContext
5. Set recordId to recordId copied from step 3, set displayIndex to 0, set fieldsMap to
, set mergeFields to true
6. Click invoke
7. Assert error message
Expected Behavior: Result shows the column values for the record
Actual Behavior: Result shows NPE is thrown
Testing:
Reproduced in 6.2.x - ea8d034b9afdc6b4b76dde47ac12f1eaa6ba65d6
Reproduced in master - 3eb7e539ef0bd99e81542dd55a5f45331b5bb650
Note: the url for master (and 7.0) is /api/jsonws?contextName=ddl&signature=%2Fddl.ddlrecord%2Fupdate-record-5-recordId-displayIndex-fieldsMap-mergeFields-serviceContext#serviceResults