Skip to content

Hides nodes from listing that the user has no access to#22731

Merged
DeepDiver1975 merged 1 commit intomasterfrom
hide-nodes-from-listening
Mar 1, 2016
Merged

Hides nodes from listing that the user has no access to#22731
DeepDiver1975 merged 1 commit intomasterfrom
hide-nodes-from-listening

Conversation

@LukasReschke
Copy link
Member

Fixes #22578, most of it are integration tests. The integration tests are not nice but do work ™️

… we need at some point clean them up a bit, the existing structure with the "use" trait is rather strange IMHO …

@DeepDiver1975 THX

@LukasReschke LukasReschke added this to the 9.0-current milestone Feb 29, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @DeepDiver1975, @blizzz and @PVince81 to be potential reviewers

@LukasReschke LukasReschke changed the title Hides nodes from listening that the user has no access to Hides nodes from listing that the user has no access to Feb 29, 2016
@LukasReschke LukasReschke force-pushed the hide-nodes-from-listening branch from 6a82ca7 to a264af0 Compare February 29, 2016 15:45
@LukasReschke
Copy link
Member Author

Ok. I'll adjust this to completely cover #22578. Should be easier than thought…

@LukasReschke LukasReschke force-pushed the hide-nodes-from-listening branch 3 times, most recently from ae3e0f3 to b10a703 Compare February 29, 2016 18:50
@LukasReschke
Copy link
Member Author

@DeepDiver1975 Please take a look. THX.

@rullzer
Copy link
Contributor

rullzer commented Feb 29, 2016

Nice. Tested a few webdav calls and 404 is returned properly now. (So Basically did the intergration tests by hand :P).

👍

And yes we need to look at the intergration tests ;)

@LukasReschke LukasReschke force-pushed the hide-nodes-from-listening branch 3 times, most recently from 1742595 to 4f4086c Compare February 29, 2016 19:37
@LukasReschke
Copy link
Member Author

Yay. The integration tests are failing due to the fact that https://github.com/php/php-src/blob/97294aca7e066443291cc2d77f8674ac23eabb32/sapi/cli/php_http_parser.c#L78-L105 does not support MKCALENDAR. Adjusting this PR and filing one to PHP then……

@LukasReschke
Copy link
Member Author

Well. There is already one at php/php-src#1417. Anyways, PR has been adjusted.

@LukasReschke LukasReschke force-pushed the hide-nodes-from-listening branch from 4f4086c to d04edfa Compare February 29, 2016 19:53
@blizzz
Copy link
Contributor

blizzz commented Feb 29, 2016

Tested using cadaver and LDAP users, works 👍

$node = $this->server->tree->getNodeForPath($uri);

switch(get_class($node)) {
case 'OCA\DAV\CardDAV\AddressBook':
Copy link
Member

Choose a reason for hiding this comment

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

what about calendars?

Copy link
Member Author

Choose a reason for hiding this comment

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

SabreDAV uses "Node" there as error message which is the default. Apparently only for AddressBooks it uses a custom error message.

We have integration tests in place below to ensure that we notice the case when SabreDAV changes the error message.

DeepDiver1975 added a commit that referenced this pull request Mar 1, 2016
Hides nodes from listing that the user has no access to
@DeepDiver1975 DeepDiver1975 merged commit 25a4571 into master Mar 1, 2016
@DeepDiver1975 DeepDiver1975 deleted the hide-nodes-from-listening branch March 1, 2016 08:22
@lock
Copy link

lock bot commented Aug 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar names can be enumerated

5 participants