Git Product home page Git Product logo

Comments (5)

klausbrunner avatar klausbrunner commented on May 27, 2024

Actually, URLDecoder isn't supposed to accept forward slashes in the passed String as per the Javadoc, but the JDK implementation doesn't seem to care (it only handles + and percent-encoded stuff and keeps everything else as is).

from jackson-core.

cowtowncoder avatar cowtowncoder commented on May 27, 2024

Fixed, will be in 2.1.3.

from jackson-core.

joelittlejohn avatar joelittlejohn commented on May 27, 2024

Tatu, as far as I can tell this problem is still present in 2.1.3 and 2.1.4.

The fix that was applied in master (61d5bdd) looks correct, but 2.1.3 and 2.1.4 contain code doesn't actually allow a 'fall through' because there's a return statement that is identical to the one above which stops any fall through from happening:

                 if (path.indexOf('%') < 0) {
                     return new FileInputStream(url.getPath());

                 }
                 // otherwise, let's fall through and let URL decoder do its magic
                 return new FileInputStream(url.getPath());
            }
        }
        return url.openStream();

Basically, e0527c3 doesn't quite fix the problem but 61d5bdd does.

So, I think I'm write in saying that this fix will arrive in 2.2.0. Does this sound right or am I totally missing something?

from jackson-core.

cowtowncoder avatar cowtowncoder commented on May 27, 2024

Sounds like I forgot to merge in the fix for 2.1. Will add it there, which would suggest 2.1.5 is the release (as well as 2.2.0).

from jackson-core.

cowtowncoder avatar cowtowncoder commented on May 27, 2024

Ok. So the problem with merge was that one of return statements was left in place; so fix was incomplete.
Fixed, so it should finally work with 2.1.5 (and alreayd works I hope in 2.2.0-SNAPSHOT).

from jackson-core.

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.