2 Replies Latest reply on Mar 12, 2008 12:54 PM by Jaime Martin

    adding restrictions implies parameters don´t work. bug?

    Jaime Martin Apprentice

      Hi,
      I´ve found a very strange behaviour. Please read this and tell me what do you think.
      I´m working with seam 201GA, JBOSS422 and Java 6.
      I had problems with query parameters. I explained them in this
      link.


      But later I´ve realised that with other list pages I´ve checked I don´t have that problems.
      All that list pages where seam-gened so I´ve been trying to find out what have I added that spoils my Firm object seam-gened list.
      After loking and looking at my code I realised that one of the things I have added to the seam gened application are permission restrictions.


      In my pages.xml I have added this.


       <page view-id="/FirmList.xhtml">
              <restrict/>
          </page>    
      


         
      On the other hand, in my security.drl I´ve added the following:



      rule FirmList
      when
          c: PermissionCheck(name == "/FirmList.xhtml")
          Role(name == "adminGral") 
          or 
          Role(name == "adminFirm") 
      then
          c.grant();
      end;
      
      




      As far as permissions are concerned, the code I´ve added works perfectly. I mean you´re only authorised to enter that page (FirmList.xhtml)
      as long as your role is adminGral or adminFirm, but in the list page I have that nasty query parameter lost problem.
      But, if I remove the code I´ve pasted from pages.xml and security.drl then the list page works ok.
      So, adding permission restrictions implies a problem with query parameters. I find it really really strange.
      Is this a bug? would you like me to raise a JIRA?
      regards,
      Jaime