Skip to Content
0

Allow encoded slashes in URL

Sep 11, 2017 at 06:36 AM

54

avatar image
Former Member

I need to allow encoded slashes in the URL for my Java OData service. But by default this isn't allowed by the SCP. To fix the issue with an tomcat server you can do the following: https://stackoverflow.com/questions/39931538/how-set-allow-encoded-slash-in-tomcat8

Is there a similar solution for the SCP?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Sep 11, 2017 at 10:14 AM
0

I solved it by myself.

You have to pass following JVM argument to the tomcat server:

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

This can be done when you are updating your java application:

Or when you are deploying your application via maven, than you can use following goal:

<configuration>
    <vmArguments>-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true</vmArguments>
</configuration>
<goals>
    <goal>deploy</goal>
</goals>

scp-update.png (14.2 kB)
Share
10 |10000 characters needed characters left characters exceeded