TitlePermissions lost when JSPWiki work directory is specified
Date15-Apr-2005 14:49:00 EEST
Versionv2.1.137
Submitter221.134.200.149
Bug criticalityMediumBug
Browser versionInternet Explorer 6
Bug statusClosedBug
PageProvider usedFileSystemProvider
Servlet ContainerTomcat 5.0.28
Operating SystemWindows 2003
URL
Java versionJDK 1.4.2

I have modified permissions in DefaultPermissions.txt to deny edit permissions to known users.

[{SET defaultpermissions='ALLOW view Guest;DENY edit Guest;DENY edit KnownPerson'}]

[{DENY view Guest}]
[{DENY edit Guest}]
[{DENY edit KnownPerson}]

And also specified the following property: jspwiki.auth.administrator=WikiInfoAdmin

Cerated a wikie page WikiInfoAdmin.txt that lists couple of members.

This configuration allows only admin members specified in WikiInfoAdmin.txt to modify wiki pages. And is been working fine.

Recently, I modified the work directory property (After seeing several work directories, within Tomcat temp, created everytime JSPWiki is started).

jspwiki.workDir=c:\jspwiki-temp\

I observe that this is being used fine. As a result, there is only one work directory (across several tomcat process lifetimes). But I also found that none of the above permissions that I setup are being used now. And it defaults to hard-coded permissions. I see a corresponding log text.

Debugging through JSPWiki code, I realize that reference manager now finds an old serialized file in the work directory and successfully deserializes it everytime I restart tomcat. And, for some reason, seem to ignore permissions setup in DefaultPermissions.txt

I also tried the exact same configuration with v2.1.161. Now, DefaultPermissions.txt and WikiInfoAdmin.txt settings are completely ignored irrespective of whether I have jspwiki.workDir is configured or not. Not sure if something is fundamentally changed in v2.1.161


Authentication system is buggy and known not to work. Bugs won't be fixed, the whole thing will be replaced with something new.

(Set jspwiki.auth.useOldAuth = true in your jspwiki.properties to enable old functionality.)

-- JanneJalkanen

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 24-Jun-2007 12:25 by HarryMetske