Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-885

Restricting pages in pages.xml with wildcards

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Optional
    • Resolution: Rejected
    • Affects Version/s: 1.1.6.GA
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Environment:

      JBoss AS 5.0.0.Beta1

      Description

      If I have directory structure for pages as such:
      /department/home.xhtml
      /distributor/home.xhtml

      I'll be able to secure it in pages.xml with wildcards as such:
      <page view-id="/*/">
      <restrict />
      </page>

      If I have directory structure as such:
      /order/purchase/home.xhtml
      /order/sales/home.xhtml

      I'll be able to secure it in pages.xml with wildcards as such:
      <page view-id="/order/purchase/*">
      <restrict />
      </page>

      Since with this pattern it only works if we define the role in <restrict> element as such:
      <page view-id="/order/purchase/*">
      <restrict>#

      {s:hasRole('admin')}

      </restrict>
      </page>

      Also this pattern:
      <page view-id="/order/*/">
      <restrict />
      </page>

      And this pattern:
      <page view-id="/*//">
      <restrict />
      </page>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  shane.bryzak Shane Bryzak
                  Reporter:
                  thejavafreak Joshua Jackson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: