Re: Making JSPWiki viewable only after login
"Christoph Sauer" <[email protected]> Tue, 9 Oct 2007 10:59:56 +0200
| Newsgroups | gmane.comp.java.jspwiki.user |
|---|---|
| Message-ID | <[email protected]> |
Please ignore the message below: I did some modifications on the template and created a "Talk" tab in the PageActions.jsp. I added <wiki:Permission permission="comment"> to this tab, as a result I got the strange sideeffect described below. What we can learn from this is, that it is not trivial to play around with the wiki:Permission tag in the templates :) --Christoph 2007/10/2, Christoph Sauer <[email protected]>: > > Try to view the page from a browser that does not remember you (by > cookie), you should be able to view the pages. The strange thing is that as > soon as you have logged in, JSPWiki 2.4 requires you to log in, even if > you set the policy to give view rights to everybody. If you entered a wrong > login, JSPWiki will show you the rejected message, but if you continue, you > will be able to view the pages (like expected) This seems to be a bug. > > --Christoph > > 2007/10/2, Simon Huggard <[email protected]>: > > > > Hi all. I'm using JSPWiki JSPWiki v2.4.103. > > > > I'd like to make our Wiki viewable only after login. > > > > I've commented out the following option in the jspwiki.policy file: > > > > grant signedBy "jspwiki", > > principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" { > > // permission com.ecyrd.jspwiki.auth.permissions.PagePermission"*:*", > > "view"; > > > > However, it doesn't work. > > Is there something I'm missing? > > > > The application name in the jspwiki.properties is: > > jspwiki.applicationName = Cataloguer's Wiki > > > > So I've also created an entry in the jspwiki.policy file like this: > > > > grant signedBy "Cataloguer's Wiki" > > > > but that doesn't work either. > > > > We're using a different directory name for the wiki itself (it's under > > /webapps/catwiki/), so does this matter? And we're using > > userdatabase.xml under the /webapps/catwiki/WEB-INF/ directory for > > authentication. > > > > Thanks, > > > > Simon > > -- > > _______________________________________ > > Simon Huggard > > Systems Manager > > Information Systems Department > > Monash University Library > > Monash University > > Building 4, Monash University, Vic, Australia 3800 > > Phone: +61 3 9905 9138 Fax: + 61 3 9905 2610 > > Mobile: 0425 774 260 (International : +61 425 774 260) > > _______________________________________________ > > This is the Jspwiki-users mailing list, in which we discuss the > > stable release (even-numbered, 2.4.x, 2.6.x), and user-issues. > > For development discussion, please join jspwiki-dev. > > http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users > > http://www.jspwiki.org/JSPWikiMailingList > > > >