-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix a bug where JSON content is not always validated #804
base: main
Are you sure you want to change the base?
Commits on Feb 14, 2023
-
Fix a bug where an JSON content is not validated
Motivation: If an invalid JSON content is submitted to Central Dogma Server using REST API, the JSON is not validated and it is saved as is. The file content is formatted as a text so `node.get("content")` returns `TextNode` and it is regarded as a string although it is a JSON object. https://github.com/line/centraldogma/blob/9030505a928006d32f3897dc08823dac0d5fd6c2/server/src/main/java/com/linecorp/centraldogma/server/internal/api/converter/ChangesRequestConverter.java#L91-L95 Modifications: - Pass a raw text value to `Change.ofJsonUpsert()` and make an invalidid JSON validated. Result: Central Dogma server now correctly rejects an invalid JSON content.
Configuration menu - View commit details
-
Copy full SHA for ec74064 - Browse repository at this point
Copy the full SHA ec74064View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fe5aef - Browse repository at this point
Copy the full SHA 2fe5aefView commit details
Commits on Feb 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 15893eb - Browse repository at this point
Copy the full SHA 15893ebView commit details
Commits on Mar 8, 2023
-
Update server/src/test/java/com/linecorp/centraldogma/server/internal…
…/api/ContentServiceV1Test.java
Configuration menu - View commit details
-
Copy full SHA for 2173a7e - Browse repository at this point
Copy the full SHA 2173a7eView commit details -
Update server/src/test/java/com/linecorp/centraldogma/server/internal…
…/api/ContentServiceV1Test.java
Configuration menu - View commit details
-
Copy full SHA for 71d7817 - Browse repository at this point
Copy the full SHA 71d7817View commit details
Commits on Mar 9, 2023
-
Update server/src/test/java/com/linecorp/centraldogma/server/internal…
…/api/ContentServiceV1Test.java Co-authored-by: minux <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0310e1e - Browse repository at this point
Copy the full SHA 0310e1eView commit details
Commits on Apr 10, 2023
-
Merge branch 'main' of https://github.com/line/centraldogma into vali…
…date-json-content
Configuration menu - View commit details
-
Copy full SHA for 52938e9 - Browse repository at this point
Copy the full SHA 52938e9View commit details