Forum Discussion
ASM blocking invalid character?
I'm getting the following errors on a POST that contains a UTF-16/unicode encoded body:
-
"Malformed document - illegal character encountered - json syntax error". The first character in the POST body is highlighted for this, and it is a curly brace "{".
-
"Null in request - Binary request data contains forbidden NULL".
I'm not detecting any null bytes (assuming each character is read as 2 bytes) and I checked the JSON reported against a validator and it comes out as valid.
Could ASM give a false alarm for unicode-encoded POSTs?
The POST body always starts with the following bytes, which is just curly brace plus new line and space: (ASCII value and UTF16 hex): 123 (0x7B00), 13 (0x0D00), 10 (0x0A00), 32 (0x2000), 32 (0x2000)
Also, the header of the POST includes: Content-Type: application/json; charset=utf-16
1 Reply
Please check that JSON profile is created and assigned. What code are you running?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
