Skip to content

Do not allow sharing of the users root folder - #22660

Merged
DeepDiver1975 merged 1 commit into
masterfrom
fix_22656
Feb 26, 2016
Merged

DeepDiver1975 merged 1 commit into
masterfrom
fix_22656

Conversation

@rullzer

@rullzer rullzer commented Feb 25, 2016

Copy link
Copy Markdown
Contributor

Sharing of the users root folder should not be allowed as it is very
weird UX. Also many of our clients have no proper way of displaying
this.

Also added intergration tests to make sure we won't allow it in the
future.

Fixes #22656

@rullzer rullzer added this to the 9.0.1-next-maintenance milestone Feb 25, 2016
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @SergioBertolinSG, @MorrisJobke and @nickvergessen to be potential reviewers

Comment thread lib/private/share20/manager.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

14:33:28 ..................................................PHP Fatal error: Uncaught Error: Call to a member function isSubNode() on null in /ssd/jenkins/workspace/server-master-linux-php7-ci/database/sqlite/label/SLAVE/lib/private/share20/manager.php:201

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like this needs another nested !is_null 🙈

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah fixed the unit test... I did not mock enough...

Sharing of the users root folder should not be allowed as it is very
weird UX. Also many of our clients have no proper way of displaying
this.

Added unit test

Also added intergration tests to make sure we won't allow it in the
future.
@nickvergessen

Copy link
Copy Markdown
Contributor

Looks good 👍

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works 👍

DeepDiver1975 added a commit that referenced this pull request Feb 26, 2016
Do not allow sharing of the users root folder
@DeepDiver1975
DeepDiver1975 merged commit 62d7885 into master Feb 26, 2016
@DeepDiver1975
DeepDiver1975 deleted the fix_22656 branch February 26, 2016 09:49
@MorrisJobke MorrisJobke modified the milestones: 9.0-current, 9.0.1-next-maintenance Feb 26, 2016
@lock

lock Bot commented Aug 7, 2019

Copy link
Copy Markdown

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.

API shares root-folder without ID

6 participants