Skip to content

Commit

Permalink
SHIBUI-2644: update allowing encoded URLs for Tomcat 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sporth committed Oct 21, 2024
1 parent 2ff4027 commit e214986
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
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"));
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=shibui
group=edu.internet2.tier.shibboleth.admin.ui
version=2.1.0-SNAPSHOT
version=2.0.5

### library versions ###
## As of 2-23-23
Expand Down

0 comments on commit e214986

Please sign in to comment.