Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0.Final
    • Fix Version/s: None
    • Component/s: View Configuration
    • Labels:
      None
    • Environment:

      Kubuntu, JBoss 7.1.0.Final

      Description

      I have a scenario where I want all pages in a /secured/home/ folder to be visible when a user is logged in.
      All other pages under /secured/* can only be visible if the user is also active. I thus have the following ViewConfig

      MyViewConfig.java
      @ViewConfig
      public interface Pages {
          static enum Pages1 {
              @ViewPattern("/pages/secured/home/*")
              @LoginView("/pages/public/login.xhtml?faces-redirect=true")
              @AccessDeniedView("/pages/public/login.xhtml?faces-redirect=true")
              @FacesRedirect
              @LoggedIn
              HOME_PAGE,
      
      	@ViewPattern("/pages/secured/*")
              @LoginView("/pages/public/login.xhtml?faces-redirect=true")
              @AccessDeniedView("/pages/public/login.xhtml?faces-redirect=true")
              @FacesRedirect
      	@ActiveUser
              @LoggedIn
              ACTIVE_USER_PAGES;
        }
      }
      

      Based on the Seam Faces documentation:

      If conflicting annotations are found, the annotation paired with the most specific matching view pattern takes precedence.

      as seen here: http://docs.jboss.org/seam/3/faces/latest/reference/en-US/html/viewconfig.html#viewconfig.enum.

      This does not seem to work, because even though I specified a more specific path for all pages under /secured/home, the @ActiveUser annotation is still called (ie the ACTIVE_USER_PAGES ViewPattern is used), resulting in an AccessDenied redirection even though it should have just displayed the page in /secured/home.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                andriese Andries Ehlers
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: