• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jersey does not read link as parameter

 
najib laaziz
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Jersey/java to create a web service that runs on tomca7. When I pass a URL as a parameter in the @PathParam it does not display anything, but when it is a regular string it works fine. Here is a modified demo of what I am doing..

For example if I put:
localhost/app/.../broaders/test

it will display : test
But if i put:

localhost/app/.../broaders/http%3A%2F%2Ftematres.befdata.biow.uni-leipzig.de%2Fvocab%2F%3Ftema%3D254


or even just

ocalhost/app/..../broaders/http%3A2F2F


it does not display anything.

Here is my Jersey/java code:



I added the -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true to Catalina.proprieties but without luck.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the value of "k" in line 4/5? Add some logging to capture that.
 
najib laaziz
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What is the value of "k" in line 4/5? Add some logging to capture that.

The value of K is what i pass in the link.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the theory, but it's apparently not what's happening :-) What is its value *when the code is executed*?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!