Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.3.7
-
Fix Version/s: None
-
Component/s: Configuration, Controllers, View technologies
-
Labels:None
-
Environment:Grails 1.3.7, Java 1.6.0_20 on Linux
Description
Placing whitespace between "404" and the mapping in UrlMappings.groovy causes grails to silently ignore the mappings. When deployed with tomcat, the default tomcat 404 page will appear.
Example:
class UrlMappings {
static mappings = {
"404" (controller: "error", action: "notFound") // FAILS
"404"(controller: "error", action: "notFound") // WORKS
}
}
Also related, it will fail if 404 is quoted with single quotes, too.
The reason it's failing in that an error-page tag is never inserted into the generated web.xml. It looks like grails is using a regexp to match mappings in org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin that doesn't handle these cases.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits