-
Notifications
You must be signed in to change notification settings - Fork 61
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
Issue #240 - added support for "reject duplicate keys" config option #241
Conversation
impl/src/main/java/org/glassfish/json/JsonParserFactoryImpl.java
Outdated
Show resolved
Hide resolved
impl/src/test/java/org/glassfish/json/tests/JsonReaderDuplicateKeyTest.java
Outdated
Show resolved
Hide resolved
|
I have updated the code to pass the configuration object into
I renamed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure that the copyright year is updated to 2020 in all files you changed.
Updated copyright date on |
@m0mus Your requested changes have been addressed. What do we need to do to move this PR forward? |
@m0mus Hi Dmitry. Is there anything holding this PR out? It looks like John has made all the requested changes. |
We did not want this in 2.0.0 and currently waiting for master to open up for integrations (expect ~2-3 weeks) |
Sounds good. Thanks for the quick response! I appreciate it. |
@lukasj Now that Jakarta EE 8 has shipped, where do we stand on getting this PR pulled into master? |
Bumped into this interesting article and it reminded me that we've been waiting on this pull request for 9 months: https://labs.bishopfox.com/tech-blog/an-exploration-of-json-interoperability-vulnerabilities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't JsonObjectBuilderImpl
be the one to decide if the to be added key
should be rejected or not? Or is it expected that parser.getObject()
may reject the field while json.createObjectBuilder().add("firstName", "John").add("firstName", "Peter").build()
is OK to not throw any errors when the reject option is set to true? This does not consistent to me.
@lukasj Everything is done through JsonObjectBuilder now so that the behavior should be consistent. Please take a look at my recent commits. We'd like to get this functionality merged sooner than later. |
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
Signed-off-by: John T.E. Timm <johntimm@us.ibm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: John T.E. Timm johntimm@us.ibm.com