This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Open
This task was never closed in our old bug tracker.
Feel free to open a new task at Github if you feel this is still relevant.
FS#2166 ACL namespace wildcards
ACL & Authentication
2011-02-07jeje
It would be very handy if ACL would support e.g. * as namespace-wildcard to allow something like
gives me no matches...I've tried to check regular expression syntax, but I'm not such an expert.
2011-02-28jeje
Hi Sergio
I checked again with my wiki and it works for me, all I've done regexp wise is to replace groups like "projekt\:" with "(projekt|\*)\:". Please mind that checking namespace ACL is skipped when the pagename already matches (line 533).
Example matching a pagename (user=test, goups=@user):
If anybody else could verify that the regexp matching is correct (I'm no expert neither) I could go ahead and feed in this change via github...
Regards
Daniel
2011-02-28semotta
I've double checked line 542 spelling and still no luck...I'm testing with the following namespaces:
leve1:level2:level3
acl.auth.php:
* @ALL 1
level1:*:level3:* @ALL 0
it matches when I select level3 namespace, giving to ALL no permission (which is ok);
but gives again no permission when selecting level2 namespace, because line 542 returns
no matches; the same when selecting level1 namespace.
I'm probably missing something...wouldn't I expect read permission to ALL on level2 and level1?
2011-02-28semotta
Sorry, I've mispelled namespaces:
level1:level2:level3 are the correct names for namespaces I'm using.
Can't I edit a comment?
2011-02-28jeje
I can't reproduce this behaviour, your example gives me
- read access to level1 & level2 ($matches = "* @ALL 1") and
- no access to level3 ($matches = "* @ALL 1", "level1:*:level3:* @ALL 0")
just as you expected and intended?
I attached my auth.php to be sure we have the same one...
mine has some additional backslashes....I swear I didn't touched this...
My Dokuwiki is Release 2010-11-07 "Anteater"
Using your auth.php it worked like a charm!
Thanks a lot for you help, and I suggest this mod should goes to final releases,
for it's so useful on large and complex wikis.
Upgraded from Dokuwiki Release 2010-11-07 to 2010-11-07a and there is auth.php as Daniel's copy.
Should notice this mod works on latest Dokuwiki release only. Anyway, very nice work, indeed.
2011-03-02ach
Someone just filed a duplicate feature request about the same issue: FS#2190. As he also added some patches, you guys should look at those and see if anything in there can be merged into these here.
I have never found the time to adapt the ACL form to allow to input wildcards (you can only click on existing pages and namespaces). The ACL form uses quite a bit of jQuery magic which I don't have a clue about...