Skip to content

Repackaging Jackson package breaks Jackson annotations #18

@kucharzyk

Description

@kucharzyk

Repackaging Jackson package breaks Jackson annotations :(

When I serialize user claim using JwtSigner the following code is not working.

public class UserAuthority  {
    @NotNull
    @ManyToOne
    @com.fasterxml.jackson.annotation.JsonIgnore
    private User user;
}

Annotation JsonIgnore is ignored and this field is serialized (causing infinite loop).
When I switch to annotations from com.auth0.jwt.internal.com.fasterxml.jackson everything works perfectly.

public class UserAuthority  {
    @NotNull
    @ManyToOne
    @com.auth0.jwt.internal.com.fasterxml.jackson.annotation.JsonIgnore
    private User user;
}

Is repackaging com.fasterxml.jackson and org.apache.commons.codec absolutely necessary.
Can't You add them as standard dependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn enhancement or improvement to the SDK that could not be otherwise categorized as a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions