Registry Mirror
Skip to content

Storage wrapper warnings #1652

Closed
Closed

Description

@MorrisJobke

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?

Activity

  1. icewind1991 commented on Oct 10, 2016

    @icewind1991
    Member

    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)

  2. MorrisJobke commented on Oct 10, 2016

    @MorrisJobke
    MemberAuthor

    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

  3. nickvergessen commented on Oct 12, 2016

    @nickvergessen
    Member

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

  4. MorrisJobke commented on Oct 12, 2016

    @MorrisJobke
    MemberAuthor

    I added the part of the readonly part: #1722

  5. removed their assignment
    on Oct 12, 2016
  6. enoch85 commented on Oct 29, 2016

    @enoch85
    Member

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

  7. enoch85 commented on Nov 17, 2016

    @enoch85
    Member

    @MorrisJobke No backport? :(

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions