-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Unable to parse fields having a "@" prefix inside @JsonProperty value after upgrading jackson jars to 2.17.0 #721
Comments
jackson-dataformat-xml is where the XML support is - not jackson-databind. Release Notes: Just in case, this issue relates to a jackson-databind change, its release notes are in: |
@zenith7781 I can't find any tests that have |
Should first rule out this is not Spring Boot issue. Jackson has no special
handling for @ in property names.
…On Mon, Feb 17, 2025 at 1:49 PM PJ Fanning ***@***.***> wrote:
@zenith7781 <https://github.com/zenith7781> I can't find any tests that
have @***@***.***") or similar settings. I may have missed something
but is possible that @ values in property names was only supported by
accident.
—
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANOGPUATRUWTAU4YUXPW32QI4OBAVCNFSM6AAAAABXJHCM4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTHE3DMNBQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: pjfanning]*pjfanning* left a comment
(FasterXML/jackson-dataformat-xml#721)
<#721 (comment)>
@zenith7781 <https://github.com/zenith7781> I can't find any tests that
have @***@***.***") or similar settings. I may have missed something
but is possible that @ values in property names was only supported by
accident.
—
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAANOGPUATRUWTAU4YUXPW32QI4OBAVCNFSM6AAAAABXJHCM4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTHE3DMNBQGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Also: aside from Spring side, I would recommend trying out yet newer version, 2.18.2 -- 2.18 has a few fixes to Creator detection and handling. |
Hello, I am writing this after searching in the issues but couldn't get the required information.
I am using a spring boot project and I have a job where we feed an XML as input and the application processes it and returns the output. I have upgraded Spring boot to 3.3.7 which has automatically upgraded jackson jars to 2.17.3. However post this upgradation, I am facing an issue where jackson is not able to map/serialize the fields correctly. The mapping is defined as ::
Sample XML Input:
The error is thrown as "Unrecognized field "tc" (class org.rest.of.the.package.CodeCommandType), not marked as ignorable (2 known properties: "", "@tc"]) at [Source: (StringReader); line: 7, column: 27] "
Note that this issue gets resolved if I forcefully keep jackson to 2.16.2 OR put @JsonProperty("tc") instead of @JsonProperty("@tc").
I want to know the commit/issue/changelog or any related information where this configuration was updated inside 2.17.0 release. @cowtowncoder @JooHyukKim Any help will be appreciated.
The text was updated successfully, but these errors were encountered: