Skip to content

Commit 16ac8da

Browse files
committed
Fixes #9137 - "Well known" Filters should be ordered correctly
1 parent b27ad24 commit 16ac8da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

grails-plugin-controllers/src/main/groovy/org/grails/plugins/web/controllers/ControllersGrailsPlugin.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,19 +91,19 @@ class ControllersGrailsPlugin extends Plugin {
9191
forceEncoding = filtersForceEncoding
9292
}
9393
urlPatterns = catchAllMapping
94-
order = Ordered.HIGHEST_PRECEDENCE + 10
94+
order = FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER + 10
9595
}
9696

9797
hiddenHttpMethodFilter(FilterRegistrationBean) {
9898
filter = bean(HiddenHttpMethodFilter)
9999
urlPatterns = catchAllMapping
100-
order = Ordered.HIGHEST_PRECEDENCE + 20
100+
order = FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER + 20
101101
}
102102

103103
grailsWebRequestFilter(FilterRegistrationBean) {
104104
filter = bean(GrailsWebRequestFilter)
105105
urlPatterns = catchAllMapping
106-
order = Ordered.HIGHEST_PRECEDENCE + 30
106+
order = FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER + 30
107107
}
108108

109109

0 commit comments

Comments
 (0)