Issue Details (XML | Word | Printable)

Key: GRAILS-2113
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Graeme Rocher
Reporter: Vladimir Konkov
Votes: 3
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Grails

Filters do not called in case of direct mapping to view

Created: 27/Dec/07 01:24 PM   Updated: 10/Feb/09 08:35 AM
Component/s: Ajax, Commons, Controllers, Security
Affects Version/s: 1.0-RC1, 1.0-RC2, 1.0-RC3
Fix Version/s: 1.1-RC1

Time Tracking:
Not Specified

Environment: Ubuntu 7.10, JDK 1.6.0_03


 Description  « Hide
Filters absolutly useless in case of direct mapping to view. Grails as yet have not usefull crosecutting concept solution. Security, logging, use statistics is very hard to implement .

Solution:
Now mapping to view is processed in filter but fulters are called in HandlerInterceptor. Place url mapping rpocessing in HandlerInterceptor with lower order than filters handler interceptor.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Vladimir Konkov added a comment - 27/Jan/08 01:32 AM
As now we developing highly dynamic AJAX application. It's almost finished.
In our case application have relatively simple views that do not require controller. We try to use direct URI to View mapping but in this case filters not called. We have considerable logic in our filters and we hate to use empty controllers only for getting filters to work.

I hope to find understanding...


Graeme Rocher added a comment - 10/Feb/09 08:35 AM
Views that are mapped directly to with:
"/foo"(view:"bar")

Now have filters applied to them