feat(json): add RFC 8785 JsonCanonicalizer #249
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
phoenix-oss/quarkus-commons!249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/json-canonicalizer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
JsonCanonicalizertoquarkus-json-service: a CDI service that writes the RFC 8785 canonical form of a JSON text, for hashing or signing request bodies. Portal needs it to fingerprint OSB operation inputs.Double.toString. It does not use the application'sObjectMapper.io.github.erdtman:java-json-canonicalization1.1 never returns on1e-315, andcom.apicatalog:titanium-jcswrites some numbers wrongly. The number form matched ECMAScript on 103,461,241 doubles and 500,000 fuzzed documents.JsonService, becauseJsonServiceis a@DefaultBeanthat applications may replace.IllegalArgumentExceptionwhose message never quotes the input.IOExceptionfallback and tokendefaultbranch are uncovered.