Title | Granting permision to Groups doesnot work in the Policy file or ACL |
Date | 01-Feb-2006 21:54:43 EET |
Version | 2.3.72-alpha |
Submitter | Jameslee |
Bug criticality | LightBug |
Browser version | IE 6.0 and FireFox1.0.7 |
Bug status | NewBug |
PageProvider used | |
Servlet Container | Tomcat 5.0 |
Operating System | NT 4 |
URL | |
Java version | JDK 1.4 |
On my Main page, there are several links to the different sub-pages, I have some groups each of them can only access one of the links. I want to grant the Group "SocialCommittee" the permission only on "*.SocialCommittee*" pages and view only on Main. I tried 2 ways, 1st is through the ACL - , but still couldnot view the "*.SocialCommittee*" pages when I logged on the main page as any one of the "SocialCommittee"; If I set ACL as , and logged in Main page as "GautamKumra", I could see the "*.SocialCommittee*" pages. 2nd is through the Policy file - If I comment out all the settings for Role "Authenticated" or even remove the whole section for "Authenticated", and grant some permission to the Wiki group "SocialCommittee" I just created in the jspwiki.policy, and reboot the Wiki, after I login the Main page as any one of "SocialCommittee", I get the "Forbidden page", I cannot view any page, even the Main. If I just grant the "edit, rename" on "*.Main" to "Authenticated", no change to the group "SocialCommittee". After I login the Main page as any one of "SocialCommittee", I can "view&edit" the Main page, but get the "Forbidden page" on any other pages.
Thank you !
Content of jspwiki.policy ... grant signedBy "jspwiki" principal com.ecyrd.jspwiki.auth.authorize.Role "Authenticated" { // permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:Main", "edit,rename"; };
grant signedBy "jspwiki" principal com.ecyrd.jspwiki.auth.authorize.Group "SocialCommittee" { permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:Main", "view"; permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:SocialCommittee*", "edit,rename,upload,delete"; permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "createPages,createGroups"; permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editPreferences"; permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", "editProfile"; }; ...
Content of GroupSocialCommittee.txt file This is a wiki group. Edit this page to see its members.