-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHIBUI-2644: update allowing encoded URLs for Tomcat 10.1
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
12 changes: 7 additions & 5 deletions
12
...c/main/java/edu/internet2/tier/shibboleth/admin/ui/configuration/TomcatConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package edu.internet2.tier.shibboleth.admin.ui.configuration; | ||
|
||
import org.springframework.boot.web.server.WebServerFactoryCustomizer; | ||
import org.springframework.boot.web.servlet.server.ConfigurableServletWebServerFactory; | ||
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class TomcatConfiguration implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> { | ||
public class TomcatConfiguration | ||
implements WebServerFactoryCustomizer<TomcatServletWebServerFactory> { | ||
|
||
@Override | ||
public void customize(ConfigurableServletWebServerFactory factory) { | ||
System.setProperty("org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH", "true"); | ||
public void customize(TomcatServletWebServerFactory factory) { | ||
factory.getTomcatConnectorCustomizers().add(connector -> connector.setEncodedSolidusHandling("decode")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters