incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: Strange permission behaviour
Date Tue, 03 Jun 2008 21:33:30 GMT

Could you take a look at the latest 2.6 branch?  It might be fixed...

/Janne

On 22 May 2008, at 21:04, Steve wrote:

> I've done some more investigation and it seems that the first  
> reference by
> another user to a page (containing TitleBox) after TitleBox has  
> been changed
> causes the page to be re-rendered and the access rules to be re- 
> parsed. It
> looks to me that JSPWikiMarkupParser.handleAccessRule when it  
> parses the
> TitleBox access rules is assigning them to the context 'page' (the  
> containing
> page) rather than the 'realPage' (the TitleBox).  Due to caching,  
> other pages
> containing TitleBox are not affected.
>
> Steve
>
> On Wednesday 21 May 2008, Steve wrote:
>> On Wednesday 21 May 2008, Janne Jalkanen wrote:
>>>> I recently upgraded to 2.6.2 and had a play with the ACL feature.
>>>> After
>>>> adding restrictions to the page TitleBox (like jspwiki.org) pages
>>>> in the wiki
>>>> (e.g. Main) were no longer editable by users that did not have
>>>> permission to
>>>> edit TitleBox.  The debug log seems to suggest that the
>>>> restrictions parsed
>>>> from the TitleBox page are being applied to the Main page (Main  
>>>> has no
>>>> restrictions specified):
>>>> Am I misunderstanding something here?
>>>> (note: The behaviour appears to be obfuscated by page caching).
>>>
>>> Do you have page caching on or off?  Because I can't replicate this
>>> with page caching on...
>>>
>>> /Janne
>>
>> jspwiki.usePageCache is  true
>


Mime
View raw message