Plain text is valid JSON, but is not supported by the REST API. Same issue for all primitive types: bool, number, arrays. Only objects are accepted.
Repro example below. Putting the same value from another client works, and we are able to get primitive values.
Wrapping the same request as:
succeeds (HTTP 200, and entry is saved).
Experienced on Geode 9.0.2.
- Session state info containing binary data could be managed manually by base 64 encoding the entire session state object into a string (not boxed in another object).
- Images are binary data which could also be base 64 encoded to strings.
- If a user is already using Geode for write-through caching, some values may be primitive types and it is convenient and consistent to write them through Geode rather than stepping around the cache.
This problem also impacts the new client/server protocol, as it uses the same JSON processing.
|Document existing REST API functionality for primitives as PUT values||Open||Unassigned|