-
Type:
Bug
-
Status: In Review
-
Resolution: Unresolved
-
Affects Version/s: 6.2.1 CE GA2
-
Fix Version/s: None
-
Component/s: Web Services, Web Services > JSON WS
-
Labels:None
-
Fix Priority:4
-
Git Pull Request:
When you're calling DDLRecordService.addRecord using its remote service and you include a field with empty string as value, we get following exception:
{ "exception": "Missing value at character 94" }
The request sent is (field "Text_Box3125" is the cause of the error)
POST http://localhost:8080/api/jsonws/invoke [{"/ddlrecord/add-record": { "+serviceContext": "com.liferay.portal.service.ServiceContext", "displayIndex": "0", "fieldsMap": { "6_1_": false, "Description": "Add your description here...", "Enterprise_Edition": false, "Text_Box3125": "", "Title": "34543534534" }, "groupId": "10181", "recordSetId": "13006", "serviceContext.scopeGroupId": "10181", "serviceContext.userId": "10198" } }]
Also, if you send in the same field "." instead of "", you get a weird error
{ "exception": "For input string: \".\"" }