Skip to content

Storage wrapper warnings #1652

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions