Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0.3
-
Fix Version/s: None
-
Component/s: URL mappings
-
Labels:
-
Environment:OSX (untested on other platforms)
-
Testcase included:yes
Description
When I define a exception url mapping for an exception that extends RuntimeException and url mapping for RuntimeException and a controller that throws an exception that extends RuntimeException the exception url mapping for the extended exception is never used.
Example configuration:
"500" (controller: 'error', action: 'extendedRuntimeException', exception: ExtendedRuntimeException) "500" (controller: 'error', action: 'runtimeException', exception: RuntimeException)
Example controller action:
def throwExtendedRuntimeException() {
throw new ExtendedRuntimeException()
}
A grails example project is attached
the responses from the following requests should be different.
http://localhost:8080/grailsbug1/test/throwExtendedRuntimeException http://localhost:8080/grailsbug1/test/throwRuntimeException
-
Hide
- grailsbug1-bug-report-11052012.zip
- 11/May/12 8:58 AM
- 23 kB
- Dominic Clifton
-
- grails-app/.../ApplicationResources.groovy 0.1 kB
- grails-app/conf/BootStrap.groovy 0.1 kB
- grails-app/conf/BuildConfig.groovy 2 kB
- grails-app/conf/Config.groovy 4 kB
- grails-app/conf/DataSource.groovy 1 kB
- grails-app/conf/UrlMappings.groovy 0.5 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/.../ErrorController.groovy 0.2 kB
- grails-app/.../TestController.groovy 0.2 kB
- grails-app/i18n/messages.properties 3 kB
- grails-app/.../messages_cs_CZ.properties 3 kB
- grails-app/i18n/messages_da.properties 3 kB
- grails-app/i18n/messages_de.properties 4 kB
- grails-app/i18n/messages_es.properties 3 kB
- grails-app/i18n/messages_fr.properties 2 kB
- grails-app/i18n/messages_it.properties 2 kB
- grails-app/i18n/messages_ja.properties 4 kB
- grails-app/i18n/messages_nl.properties 3 kB
- grails-app/.../messages_pt_BR.properties 3 kB
- grails-app/.../messages_pt_PT.properties 3 kB
- grails-app/i18n/messages_ru.properties 4 kB
- grails-app/i18n/messages_sv.properties 3 kB
- grails-app/i18n/messages_th.properties 6 kB
- grails-app/.../messages_zh_CN.properties 2 kB
- grails-app/views/error.gsp 0.3 kB
- grails-app/views/index.gsp 3 kB
- grails-app/views/layouts/main.gsp 2 kB
- src/.../ExtendedRuntimeException.groovy 0.1 kB
- test/unit/.../ErrorControllerTests.groovy 0.3 kB
- test/unit/.../TestControllerTests.groovy 0.3 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
There are no comments yet on this issue.