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

Storage wrapper warnings #1652

Closed
MorrisJobke opened this issue Oct 7, 2016 · 6 comments · Fixed by #2122
Closed

Storage wrapper warnings #1652

MorrisJobke opened this issue Oct 7, 2016 · 6 comments · Fixed by #2122

Comments

@MorrisJobke
Copy link
Member

I see following two warnings in the logs:

Storage wrapper 'readonly' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.
Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.

They are added in owncloud/core#24335

They are registered in

\OC\Files\Filesystem::addStorageWrapper('readonly', function ($mountPoint, $storage) {
and
\OC\Files\Filesystem::addStorageWrapper('sharePermissions', function ($mountPoint, $storage) use ($share) {

I talked with @nickvergessen about this and he proposed to change the check to

if (self::$logWarningWhenAddingStorageWrapper && $wrapperName !== 'readonly') {

@icewind1991 What do do here? Is this the correct approach or should it be done somehow differently?

@icewind1991
Copy link
Member

icewind1991 commented Oct 10, 2016

Easiest solution seems to be to disable the warning with logWarningWhenAddingStorageWrapper from where the wrappers are added (with a comment describing that we know what we're doing here)

@MorrisJobke
Copy link
Member Author

Easiest solution seems to be to disable the warning with logWarningWhenAddingStorageWrapper from where the wrappers are added (with a comment describing that we know what we're doing here)

Then I will do this tomorrow

@nickvergessen
Copy link
Member

At least the one from sharePermissions seems to be a problem?
#1708

@MorrisJobke
Copy link
Member Author

I added the part of the readonly part: #1722

@MorrisJobke MorrisJobke removed their assignment Oct 12, 2016
@enoch85
Copy link
Member

enoch85 commented Oct 29, 2016

And this is one reason I just <3 Nextcloud. Things get fixed.

@enoch85
Copy link
Member

enoch85 commented Nov 17, 2016

@MorrisJobke No backport? :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants