lksudha / gravl

Automatically exported from code.google.com/p/gravl
0 stars 0 forks source link

cannot delete blog entry because controller name mangled #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. goto http://localhost:8080/gravl/sample/
2. login using admin/admin
3. click on edit
4. click on delete

What is the expected output? What do you see instead?
expect the blog entry to be deleted but instead saw this error:

HTTP ERROR: 404

NOT_FOUND

RequestURI=/gravl/sample%2Fadmin%2Fblog/delete

Powered by Jetty://

What version of the product are you using? On what operating system?
gravl from latest trunk, grails-1.0.3 on MacOSX Leopard

Please provide any additional information below.
in grails-app/views/blogEntry/edit.gsp
the form action name gets mangled
the RequestURI should be /gravl/sample/admin/blog/delete
but is mangled. to fix this, remove the controller from <g:form.
a patched is attached

Original issue reported on code.google.com by son.c...@gmail.com on 12 Aug 2008 at 6:17

Attachments: