Device Registry REST API: "enabled" field cannot be created/updated via POST/PUT request with urlencoded form data input
See original GitHub issueWhen trying to create/update device registration data that has “enabled” set to “false”, there is a 400 “bad request” response if the request was made with urlencoded form data input.
Example:
curl -i -X POST -d device_id=4711 -d enabled=false http://127.0.0.1:8080/registration/DEFAULT_TENANT
Internally there is a “ClassCastException: String cannot be cast to Boolean” in BaseRegistrationService.getRequestPayload()
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Device Registry REST API: "enabled" field cannot be ... - GitHub
Device Registry REST API: "enabled" field cannot be created/updated via POST/PUT request with urlencoded form data input #316.
Read more >[REST API] Form URL Encoded Requests - 'List' Type Input ...
Error Message: Cannot send a 'List' parameter in the request 'Body' of a method with 'Form URL Encoded' request format.
Read more >REST API Developer Guide
You can use REST API tools to create, manipulate, and search data in Salesforce by sending HTTP requests to endpoints in Salesforce.
Read more >Calling third-party REST APIs in a Remedy application
This panel enables you to send data from the AR form field and receive a JSON response. To add fields from the AR...
Read more >REST API Reference Guide - NetSuite OpenAir
This guide provides a reference for using OpenAir REST API. ... Request Format — Review how to form your API requests.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dejanb @ppatierno @pellmann @sysexcontrol any opinion on this? I would like to remove the form encoded parameter passing in the REST adapter altogether. WDYT?
fixed in 70c8d00941d8db8537a5cd43e2506910ab23a8a6