Skip to content
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

@JacksonXmlRootElement does not enforce the local name during deserialization #247

Open
LeonardMeyer opened this issue Jun 22, 2017 · 1 comment
Labels
has-failing-test Indicates that there exists a test case (under `failing/`) to reproduce the issue most-wanted Tag to indicate that there is heavy user +1'ing action

Comments

@LeonardMeyer
Copy link

LeonardMeyer commented Jun 22, 2017

I was redirected here from the google group, so I'll just repeat what I said there : the localName attribute of @JacksonXmlRootElement is not enforced during deserialization. In other words, if I want the input to be

<test>
  <inner>1</inner>
</test>

And I get

<ohnoes>
  <inner>1</inner>
</ohnoes>

inner will still be deserialized properly. This seems weird to me. Here is a fully reproductible test.

@cowtowncoder cowtowncoder added 2.13 has-failing-test Indicates that there exists a test case (under `failing/`) to reproduce the issue labels Nov 13, 2020
cowtowncoder added a commit that referenced this issue Nov 13, 2020
@cowtowncoder
Copy link
Member

I think this has come up more than once during discussions so will mark as "most-wanted", despite no thumbs-up here.
Also added failing simple test case -- I suspect this must be opt-in Feature, when added.

@cowtowncoder cowtowncoder added the most-wanted Tag to indicate that there is heavy user +1'ing action label Feb 28, 2021
@cowtowncoder cowtowncoder added 2.14 and removed 2.13 labels Jul 25, 2022
@cowtowncoder cowtowncoder removed the 2.14 label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-failing-test Indicates that there exists a test case (under `failing/`) to reproduce the issue most-wanted Tag to indicate that there is heavy user +1'ing action
Projects
None yet
Development

No branches or pull requests

2 participants