Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix case-insensitive match in ACL checking #147

Merged
merged 1 commit into from Nov 25, 2012

Conversation

kazmiya
Copy link
Contributor

@kazmiya kazmiya commented Nov 25, 2012

A modified version of #146.

  • Added proper handling of @ALL group
  • Added unit tests

ACL checking of DokuWiki is currently always case-sensitive
regardless of auth backend setting ($auth->isCaseSensitive).
This commit enables case-insensitive match in the same way
of auth_isMember().
protected $oldAuth;
protected $oldAuthAcl;

function setup() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should call the parent::setup() method setup DokuWikis test environment.
When doing this you can delete the $this->oldConfig stuff.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied this test file from _test/tests/inc/auth_aclcheck.test.php as a working example, so I didn't notice that the parent::setUp() is recommended.

By the way, almost all test files in _test/tests directory have no parent::setUp(). Do I really need to fix this?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would say it's not mandatory but a nice to have ;-)

@dom-mel
Copy link
Collaborator

dom-mel commented Nov 25, 2012

anyway -> 👍

@splitbrain
Copy link
Collaborator

@dom-mel how about this: I merge this PR and you'll check our test cases for bad style setup() routines?

@dom-mel
Copy link
Collaborator

dom-mel commented Nov 25, 2012

Yes

dom-mel added a commit that referenced this pull request Nov 25, 2012
Fix case-insensitive match in ACL checking
@dom-mel dom-mel merged commit e4a8ea5 into dokuwiki:master Nov 25, 2012
@kazmiya
Copy link
Contributor Author

kazmiya commented Nov 27, 2012

Thanks for merging.

splitbrain added a commit that referenced this pull request Apr 9, 2020
WIP: Lookups aka Non-Page Tables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants