File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
main/java/org/springframework/web/util
test/java/org/springframework/web/util Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ public void setRemoveSemicolonContent(boolean removeSemicolonContent) {
132
132
* Whether configured to remove ";" (semicolon) content from the request URI.
133
133
*/
134
134
public boolean shouldRemoveSemicolonContent () {
135
- checkReadOnly ();
136
135
return this .removeSemicolonContent ;
137
136
}
138
137
Original file line number Diff line number Diff line change 24
24
import org .springframework .web .testfixture .servlet .MockHttpServletRequest ;
25
25
26
26
import static org .assertj .core .api .Assertions .assertThat ;
27
+ import static org .assertj .core .api .Assertions .assertThatCode ;
27
28
28
29
/**
29
30
* Unit tests for {@link UrlPathHelper}.
@@ -166,6 +167,11 @@ public void getLookupPathWithSemicolonContentAndNullPathInfo() {
166
167
assertThat (helper .getLookupPathForRequest (request )).isEqualTo ("/welcome.html;c=d" );
167
168
}
168
169
170
+ @ Test // gh-27303
171
+ public void shouldRemoveSemicolonContentWithReadOnlyInstance () {
172
+ assertThatCode (UrlPathHelper .defaultInstance ::shouldRemoveSemicolonContent ).doesNotThrowAnyException ();
173
+ }
174
+
169
175
170
176
//
171
177
// suite of tests root requests for default servlets (SRV 11.2) on Websphere vs Tomcat and other containers
You can’t perform that action at this time.
0 commit comments