Coder Social home page Coder Social logo

Comments (10)

lehoule avatar lehoule commented on September 7, 2024 1

+1 this project is unuseable for me without this fix.

from java-jwt.

dhenry-fa avatar dhenry-fa commented on September 7, 2024

Hi,

I ran into the same issue and had a hard time figuring out the race condition too. I worked around it by creating a new instance of a JWTVerifier every time I need to check a token instead of reusing one single instance. It must be quite CPU intensive but it's the best I could manage…

This pull request might be the solution but no progress has been made for about one year: #30

from java-jwt.

neg3ntropy avatar neg3ntropy commented on September 7, 2024

commons codec is repackaged that's fine with me. But the version is way too old:
https://issues.apache.org/jira/browse/CODEC-96

from java-jwt.

neg3ntropy avatar neg3ntropy commented on September 7, 2024

Also, what has really took me for a ride before finding this bug, is that commons-codec is also a transitive maven dependency and in my project it was already resolved to a later version, thus I initially excluded the above upstream bug as a possible cause.
In fact you end up with 2 commons-codecs and using the buggy one.

from java-jwt.

adrogon avatar adrogon commented on September 7, 2024

@hzalaz @arcseldon Any input on this subject?
The preferred solution would be to get rid of commons-codec entirely (like discussed in #30), but at least an upgrade of the dependency in the meantime would be welcome.
It shouldn't take too long to review #71 :) Thank you.

from java-jwt.

adrogon avatar adrogon commented on September 7, 2024

Pinging. This project needs to be maintained, and here is a quick fix to a major issue that is already provided by the community.
All you have to do is accept the pull request and bump the version, please help, thank you :)

from java-jwt.

lebels avatar lebels commented on September 7, 2024

We need this fix too. Please accept the pull request.

from java-jwt.

adrogon avatar adrogon commented on September 7, 2024

Hello hello,

Please upgrade to latest commons-codec, there's a nice PR #71 for you to accept, and everyone will feel more comfortable.

Thanks in advance maintainers.

from java-jwt.

neg3ntropy avatar neg3ntropy commented on September 7, 2024

We solved by building this manually and pushing to a local artifactory with a custom version suffix.

You've got here now an absolute proof of the bug and fix. I have been running this for while, it's really ok to merge. I here dare you to close this ASAP and show a sign to the community.

In the meantime other potential users beware: this version will work only in your local machine by yourself. In the real world it will randomly refuse auths and you will end up thinking it is some other bug or misconfiguration.
In case you use some particular apache commons in your project as well, it might even break your builds.
It's BAD.

Cheers

from java-jwt.

adrogon avatar adrogon commented on September 7, 2024

Thank you @hzalaz

from java-jwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.