-
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.
Merged in SHIBUI-456 (pull request #63)
SHIBUI-456 * [SHIBUI-456] Fix tomcat configuration for `/entities` endpoint update documentation * [SHIBUI-456] Fix tomcat configuration for `/entities` endpoint * [SHIBUI-456] Copied tests from EntityControllerTests and modified to work with WebTestClient (and a live Tomcat).
- Loading branch information
Bill Smith
authored and
Jonathan Johnson
committed
Apr 27, 2018
1 parent
a9f5dcc
commit 85e508b
Showing
3 changed files
with
143 additions
and
16 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
...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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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.stereotype.Component; | ||
|
||
@Component | ||
public class TomcatConfiguration implements WebServerFactoryCustomizer<ConfigurableServletWebServerFactory> { | ||
@Override | ||
public void customize(ConfigurableServletWebServerFactory factory) { | ||
System.setProperty("org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH", "true"); | ||
} | ||
} |
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