core icon indicating copy to clipboard operation
core copied to clipboard

A log appears in owncloud.log file sharing a folder via link

Open davitol opened this issue 10 years ago • 17 comments

Steps to reproduce

  1. Create a folder
  2. Share it via link
  3. Make it editable
  4. Access the link

Expected behaviour

No logs should be written in owncloud.log file

Actual behaviour

A log appears in owncloud.log file

Server configuration

Operating system: Ubuntu 14.04

Web server: Apache

Database: MySQL

PHP version: 5.5.9

ownCloud version: {"9.1.0.11","versionstring":"9.1.0 RC1","edition":"Enterprise"}

Updated from an older ownCloud or fresh install: Fresh

Are you using external storage, if yes which one: No

Are you using encryption: No

Logs

{"reqId":"VlK0aQ9d3+O0F\/0xspAY","remoteAddr":"82.159.139.58","app":"filesystem","message":"Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.","level":2,"time":"2016-07-12T08:04:15+00:00","method":"PROPFIND","url":"\/public.php\/webdav\/","user":"--"}

Client configuration

browser

Firefox

davitol avatar Jul 12 '16 08:07 davitol

I can confirm this on 9.1 stable using Ubuntu 16.04 and PHP 7 + MySQL 5.7.


Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:23:51+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:23:49+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:23:48+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:43+02:00
Warning filesystem  Storage wrapper 'readonly' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:41+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:39+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:27+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:27+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:25+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:25+02:00
Warning filesystem  Storage wrapper 'readonly' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:17+02:00
Warning filesystem  Storage wrapper 'sharePermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems. 2016-07-25T14:25:14+02:00

enoch85 avatar Jul 25 '16 12:07 enoch85

I have the same problem on OC 9.1.0 (stable) + Ubuntu 14.04.1 + PHP 5 + MySQL 5.5.50 on Federated two Servers:

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

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

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

MaxuNs avatar Aug 25 '16 09:08 MaxuNs

On Remote Server (on Federated) appears:

Fatal webdav Exception: {"Message":"HTTP/1.1 503 Storage not available","Exception":"Sabre\DAV\Exception\ServiceUnavailable","Code":0,"Trace":"#0 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(903): OCA\DAV\Connector\Sabre\ObjectTree->getNodeForPath('Folder_Shared')\n#1 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php(334): Sabre\DAV\Server->getPropertiesForPath('Folder_Shared', Array, 1)\n#2 [internal function]: Sabre\DAV\CorePlugin->httpPropFind(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#3 /var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#4 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(459): Sabre\Event\EventEmitter->emit('method:PROPFIND', Array)\n#5 /var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php(248): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#6 /var/www/owncloud/apps/dav/appinfo/v1/webdav.php(56): Sabre\DAV\Server->exec()\n#7 /var/www/owncloud/remote.php(164): require_once('/var/www/ownclo...')\n#8 {main}","File":"/var/www/owncloud/apps/dav/lib/Connector/Sabre/ObjectTree.php","Line":159,"User":"--"}

MaxuNs avatar Aug 25 '16 09:08 MaxuNs

I too am experiencing this problem using the same versions as reported originally. Any progress? Thanks

mj-mel avatar Aug 25 '16 14:08 mj-mel

9.1.1RC1 has this issue as well (not sure when it appeared for the first time).

tflidd avatar Aug 29 '16 10:08 tflidd

Experience the same error in log @ fresh 9.1.0 (stable) install.

kurdt94 avatar Sep 06 '16 11:09 kurdt94

9.1.1 as well

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

enoch85 avatar Sep 27 '16 11:09 enoch85

Oups, strike my comment, wrong software version

stanelie avatar Oct 04 '16 18:10 stanelie

9.1.1 (stable) on Debian as well

Jenlues avatar Oct 24 '16 14:10 Jenlues

@PVince81 Why backlog?

enoch85 avatar Oct 24 '16 14:10 enoch85

Because low severity and also: there are lots of tickets with high severity that needs attention.

But as it goes for any other tickets, anyone is free to take on this task any time.

PVince81 avatar Oct 24 '16 14:10 PVince81

Makes sense.

enoch85 avatar Oct 24 '16 14:10 enoch85

same with centos 7.2 - php 7 - maraidb 10.1 - owncloud 9.1.1(stable)

ghost avatar Oct 27 '16 07:10 ghost

It's fixed in Nextcloud.... https://github.com/nextcloud/server/pull/1722

enoch85 avatar Oct 29 '16 16:10 enoch85

Well... that's the kind of hack I thought we should rather avoid but fix the core problem instead.

PVince81 avatar Nov 02 '16 09:11 PVince81

Alternative PR that groups the hacks in one place, since it seems we can't avoid hacks at this point: https://github.com/owncloud/core/pull/26520

PVince81 avatar Nov 02 '16 09:11 PVince81

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[bot] avatar Aug 03 '19 07:08 lock[bot]