Grails
  1. Grails
  2. GRAILS-2113

Filters do not called in case of direct mapping to view

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0-RC1, 1.0-RC2, 1.0-RC3
    • Fix Version/s: 1.1-RC1
    • Component/s: Ajax, Commons, Controllers, Security
    • Labels:
      None
    • Environment:
      Ubuntu 7.10, JDK 1.6.0_03

      Description

      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.

        Activity

        Hide
        Vladimir Konkov added a comment -

        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...

        Show
        Vladimir Konkov added a comment - 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...
        Hide
        Graeme Rocher added a comment -

        Views that are mapped directly to with:

        "/foo"(view:"bar")
        

        Now have filters applied to them

        Show
        Graeme Rocher added a comment - Views that are mapped directly to with: "/foo" (view: "bar" ) Now have filters applied to them
        Hide
        Graeme Rocher added a comment -

        Bulk closing bunch of resolved issues

        Show
        Graeme Rocher added a comment - Bulk closing bunch of resolved issues

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Vladimir Konkov
          • Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development