Giter Site home page Giter Site logo

Comments (9)

jerseyrobot avatar jerseyrobot commented on July 1, 2024

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
Reported by [email protected]

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
[email protected] said:
Such URIs requires the following GlassFish JVM option to be set:
-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
to make it to the Jersey dispatcher.

Also the following method needs to be fixed:
com.sun.ws.rest.impl.container.servlet.HttpRequestAdaptor#initiateUriInfo

Pasting Paul's idea how to fix it (which I am going to try):

For now we can probably get away with constructing a decoded base path
from the context path and servlet path and then encoding it, as such
paths are unlikely to have round trip issues (and we can detect if they
do and throw an error).

Once the encoded base path is obtained it should be easy to extract the
encoded path from the encoded base path and request URI (which in
encoded form), since the latter should begin with the former.

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
[email protected] said:
Assigning to myself...

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
[email protected] said:
Changing status to started...

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
[email protected] said:
Fix available in the main trunk.

The above mentioned GlassFish JVM parameter is still needed.
How to add it to GF config:
You can either add it to your [$AS_HOME/domains/domain1/config/domain.xml]

config file (look for element) or in GF admin console:

http://localhost:4848/>login (admin/adminadmin)>[Application Server] under

[Common Tasks] at the left pane->[JVM Settings] tab->[JVM Options] subtab...

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
[email protected] said:
Clarification:

-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true

works from GlassFish V2 (final release) on
and it is not needed for Tomcat (tested on 5.5.17)

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
This issue was imported from java.net JIRA JERSEY-17

from jersey.

jerseyrobot avatar jerseyrobot commented on July 1, 2024

@glassfishrobot Commented
Marked as fixed on Thursday, November 1st 2007, 7:55:18 pm

from jersey.

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.