Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-RC3
-
Fix Version/s: None
-
Component/s: Controllers
-
Labels:
Description
The behavior of redirect to an non existing action is inconsistent. See example below.
TestController.groovy
package foo class TestController { def foo() { redirect(action: noaction) // hangs //redirect(action: "noaction") // returns 404 error code, correct semantically //redirect(action:'bar') // works correctly //redirect(action:bar) // hangs, notice no quotes aroud bar } def bar() { render "bar action" } }
It would be nice if instead of hanging it explicitly failed with an exception.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
numan salati
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Edit [ 10000 ] |
| Description |
The behavior of redirect to an non existing action is inconsistent. See example below.
package foo class TestController { def foo() { redirect(action: noaction) // hangs //redirect(action: "noaction") // returns 404 error code //redirect(action:'bar') // works correctly //redirect(action:bar) // hangs } def bar() { render "bar action" } } It would be nice if instead of hanging it explicitly failed with an exception. |
The behavior of redirect to an non existing action is inconsistent. See example below.
{code:title=TestController.groovy|borderStyle=solid} package foo class TestController { def foo() { redirect(action: noaction) // hangs //redirect(action: "noaction") // returns 404 error code //redirect(action:'bar') // works correctly //redirect(action:bar) // hangs } def bar() { render "bar action" } } {code} It would be nice if instead of hanging it explicitly failed with an exception. |
numan salati
made changes -
| Status | Edit [ 10000 ] | Open [ 1 ] |
numan salati
made changes -
| Status | Open [ 1 ] | Edit [ 10000 ] |
| Description |
The behavior of redirect to an non existing action is inconsistent. See example below.
{code:title=TestController.groovy|borderStyle=solid} package foo class TestController { def foo() { redirect(action: noaction) // hangs //redirect(action: "noaction") // returns 404 error code //redirect(action:'bar') // works correctly //redirect(action:bar) // hangs } def bar() { render "bar action" } } {code} It would be nice if instead of hanging it explicitly failed with an exception. |
The behavior of redirect to an non existing action is inconsistent. See example below.
{code:title=TestController.groovy|borderStyle=solid} package foo class TestController { def foo() { redirect(action: noaction) // hangs //redirect(action: "noaction") // returns 404 error code //redirect(action:'bar') // works correctly //redirect(action:bar) // hangs, notice no quotes aroud bar } def bar() { render "bar action" } } {code} It would be nice if instead of hanging it explicitly failed with an exception. |
numan salati
made changes -
| Status | Edit [ 10000 ] | Open [ 1 ] |
numan salati
made changes -
| Status | Open [ 1 ] | Edit [ 10000 ] |
| Description |
The behavior of redirect to an non existing action is inconsistent. See example below.
{code:title=TestController.groovy|borderStyle=solid} package foo class TestController { def foo() { redirect(action: noaction) // hangs //redirect(action: "noaction") // returns 404 error code //redirect(action:'bar') // works correctly //redirect(action:bar) // hangs, notice no quotes aroud bar } def bar() { render "bar action" } } {code} It would be nice if instead of hanging it explicitly failed with an exception. |
The behavior of redirect to an non existing action is inconsistent. See example below.
{code:title=TestController.groovy|borderStyle=solid} package foo class TestController { def foo() { redirect(action: noaction) // hangs //redirect(action: "noaction") // returns 404 error code, correct semantically //redirect(action:'bar') // works correctly //redirect(action:bar) // hangs, notice no quotes aroud bar } def bar() { render "bar action" } } {code} It would be nice if instead of hanging it explicitly failed with an exception. |
numan salati
made changes -
| Status | Edit [ 10000 ] | Open [ 1 ] |
Burt Beckwith
made changes -
| Workflow | Grails2 [ 70966 ] | jira [ 71555 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 71555 ] | Grails2 [ 80104 ] |
Peter Ledbrook
made changes -
| Last Reviewed | 01/Jan/10 |
Peter Ledbrook
made changes -
| Workflow | Grails2 [ 80104 ] | jira [ 88093 ] |
Peter Ledbrook
made changes -
| Workflow | jira [ 88093 ] | Grails2 [ 96298 ] |