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

Users with whom I have shared a sub-folder cannot upload to it #1445

Closed
PocketFR opened this issue Apr 13, 2021 · 10 comments · Fixed by nextcloud/server#26980
Closed

Users with whom I have shared a sub-folder cannot upload to it #1445

PocketFR opened this issue Apr 13, 2021 · 10 comments · Fixed by nextcloud/server#26980
Labels
1. to develop Issues that are ready for development bug feature: acl Items related to the groupfolders ACL or "Advanced Permissions" high high priority Nc20 Nc21

Comments

@PocketFR
Copy link

Hello,

I have created a group folder in which I share a subfolder with another user of my nextcloud instance (outside the group)

This user can't upload documents in this folder even though the share allows him to.

See the log below:
2021-04-13 14_23_35-Window

He can however create text documents and folders in this folder.

The problem does not occur with link sharing.

I tried the same folder scheme without using group folders and it works.

Configuration : new installation of nextcloud 21.0.0 updated to 21.0.1 then installation of groupfolder 9.0.0.
No other application than the preinstalled ones has been added.

@heisenbol
Copy link

I was just about to create an issue for this, too. I can confirm the behaviour.
I upgraded from 20.0.8 to 21.0.1 and experienced this issue. PHP version 7.4

@saschier
Copy link

I have the same problem with nextcloud 20.0.9 and groupfolder 8.2.0.

@RP-666
Copy link

RP-666 commented Apr 14, 2021

Same here. Nextcloud 21.0.1 - PHP 7.4 - Group folders 9.0.0

image

@BadBone2k
Copy link

Same error here, Nextcloud 21.0.1 and groupfolders 9.0.0.

@pierreozoux pierreozoux added 1. to develop Issues that are ready for development feature: acl Items related to the groupfolders ACL or "Advanced Permissions" bug high high priority Nc20 Nc21 labels Apr 14, 2021
@mmaridev
Copy link

Same behaviour here, but with different Sabre error:

{"reqId":"123456789","level":3,"time":"2021-04-15T15:15:37+00:00","remoteAddr":"1.1.1.1","user":"myuser","app":"PHP","method":"PUT","url":"/remote.php/dav/files/myuser/mydir/myfile.ods","message":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/html/apps/dav/lib/Connector/Sabre/File.php#691","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/sabre/http/lib/Sapi.php:132)","/var/www/html/apps/dav/lib/Connector/Sabre/File.php",691,{"string":"X-Hash-MD5: 97d6c3299b43c423c9ded1416fa6a09c"}]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":691,"function":"header","args":["X-Hash-MD5: --removed--"]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":189,"function":"header","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["X-Hash-MD5: -removed-"]},{"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/Files/Stream/HashWrapper.php","line":71,"function":"call_user_func","args":[{"__class__":"Closure"},"*** sensitive parameter replaced ***"]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/html/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php","line":95,"function":"fclose","args":[null]},{"file":"/var/www/html/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/html/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php","line":95,"function":"fclose","args":[null]},{"file":"/var/www/html/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Linux) mirall/2.5.1git (Nextcloud)","version":"21.0.1.1"}

@JYBLIH
Copy link

JYBLIH commented Apr 16, 2021

Also impacted.
PHP 7.3
Nextcloud 21.0.1
Groupfolders 9.0.0 also tested on another instance in 8.2.0, same issue

{"reqId":"1111111111","level":3,"time":"2021-04-16T06:22:38+00:00","remoteAddr":"<CLIENT IP>","user":"<USERNAME>","app":"core","method":"PUT","url":"/remote.php/webdav/toto/lih-logo.png","message":"unable to rename, source directory is not writable : /var/www/nextcloud/data/toto","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36","version":"21.0.1.1"}
{"reqId":"1111111111","level":3,"time":"2021-04-16T06:22:38+00:00","remoteAddr":"<CLIENT IP>","user":"<USERNAME>","app":"webdav","method":"PUT","url":"/remote.php/webdav/toto/lih-logo.png","message":"renaming part file to final file failed $renameOkay: false, $fileExists: false)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36","version":"21.0.1.1"}
{"reqId":"1111111111","level":4,"time":"2021-04-16T06:22:38+00:00","remoteAddr":"<CLIENT IP>","user":"<USERNAME>","app":"webdav","method":"PUT","url":"/remote.php/webdav/toto/lih-logo.png","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Could not rename part file to final file","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["lih-logo.png",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["toto/lih-logo.png",null,null]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":84,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":296,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36","version":"21.0.1.1"}
{"reqId":"1111111111","level":3,"time":"2021-04-16T06:22:38+00:00","remoteAddr":"<CLIENT IP>","user":"<USERNAME>","app":"PHP","method":"PUT","url":"/remote.php/webdav/toto/lih-logo.png","message":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#691","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132)","/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",691,{"string":"X-Hash-SHA256: 434470981dedec1ee3076d61ad30f3c26eefcfa2852261280b456a6b3acb2685"}]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":691,"function":"header","args":["X-Hash-SHA256: 434470981dedec1ee3076d61ad30f3c26eefcfa2852261280b456a6b3acb2685"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":195,"function":"header","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["X-Hash-SHA256: 434470981dedec1ee3076d61ad30f3c26eefcfa2852261280b456a6b3acb2685"]},{"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":71,"function":"call_user_func","args":[{"__class__":"Closure"},"*** sensitive parameter replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":84,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36","version":"21.0.1.1"}
{"reqId":"1111111111","level":3,"time":"2021-04-16T06:22:38+00:00","remoteAddr":"<CLIENT IP>","user":"<USERNAME>","app":"PHP","method":"PUT","url":"/remote.php/webdav/toto/lih-logo.png","message":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#691","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132)","/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",691,{"string":"X-Hash-SHA1: 27af973e2a0098f1dad37bf01d785b25924a1742"}]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":691,"function":"header","args":["X-Hash-SHA1: 27af973e2a0098f1dad37bf01d785b25924a1742"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":192,"function":"header","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["X-Hash-SHA1: 27af973e2a0098f1dad37bf01d785b25924a1742"]},{"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":71,"function":"call_user_func","args":[{"__class__":"Closure"},"*** sensitive parameter replaced ***"]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":96,"function":"fclose","args":[null]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":84,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36","version":"21.0.1.1"}
{"reqId":"1111111111","level":3,"time":"2021-04-16T06:22:38+00:00","remoteAddr":"<CLIENT IP>","user":"<USERNAME>","app":"PHP","method":"PUT","url":"/remote.php/webdav/toto/lih-logo.png","message":{"Exception":"Error","Message":"Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#691","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132)","/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php",691,{"string":"X-Hash-MD5: 5d05aca2aac866e31e793e9d7c95ce3e"}]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":691,"function":"header","args":["X-Hash-MD5: 5d05aca2aac866e31e793e9d7c95ce3e"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":189,"function":"header","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["X-Hash-MD5: 5d05aca2aac866e31e793e9d7c95ce3e"]},{"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":71,"function":"call_user_func","args":[{"__class__":"Closure"},"*** sensitive parameter replaced ***"]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":96,"function":"fclose","args":[null]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php","line":96,"function":"fclose","args":[null]},{"file":"/var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php","line":75,"function":"stream_close","class":"Icewind\\Streams\\Wrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"stream_close","class":"OC\\Files\\Stream\\HashWrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":84,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36","version":"21.0.1.1"}

@Ornanovitch
Copy link

I just replicated this issue

PHP 7.3
Nextcloud 21.0.1
Groupfolders 9.0.0

I have 6 simultanate errors:

[core] Error: unable to rename, source directory is not writable : /home/visuels

PUT /remote.php/webdav/visuels/Screenshot_2021-04-14%20Forums%20de%20la%20FELINN.png
from 192.168.10.100 by admin at 2021-04-16T10:39:25+00:00
[webdav] Error: renaming part file to final file failed $renameOkay: false, $fileExists: false)

PUT /remote.php/webdav/visuels/Screenshot_2021-04-14%20Forums%20de%20la%20FELINN.png
from 192.168.10.100 by admin at 2021-04-16T10:39:25+00:00
[webdav] Fatal: Sabre\DAV\Exception: Could not rename part file to final file at <<closure>>

0. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
   OCA\DAV\Connector\Sabre\File->put(null)
1. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
   OCA\DAV\Connector\Sabre\Directory->createFile("Screenshot_2021 ... g", null)
2. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
   Sabre\DAV\Server->createFile("visuels/Screens ... g", null, null)
3. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
   Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
4. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
   Sabre\DAV\Server->emit("method:PUT", [Sabre\HTTP\Requ ... }])
5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
   Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
   Sabre\DAV\Server->start()
7. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 84
   Sabre\DAV\Server->exec()
8. /var/www/nextcloud/remote.php line 167
   require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/visuels/Screenshot_2021-04-14%20Forums%20de%20la%20FELINN.png
from 192.168.10.100 by admin at 2021-04-16T10:39:25+00:00
[PHP] Error: Error: Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#691 at <<closure>>

0. <<closure>>
   OC\Log\ErrorHandler::onError(2, "Cannot modify h ... )", "/var/www/nextcl ... p", 691, {string: "X-Hash ... "})
1. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 691
   header("X-Hash-SHA256:  ... d")
2. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 195
   OCA\DAV\Connector\Sabre\File->header("X-Hash-SHA256:  ... d")
3. <<closure>>
   OCA\DAV\Connector\Sabre\File->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
4. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 71
   call_user_func(Closure {}, "*** sensitive parameter replaced ***")
5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
   OC\Files\Stream\HashWrapper->stream_close()
6. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 84
   Sabre\DAV\Server->exec()
7. /var/www/nextcloud/remote.php line 167
   require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/visuels/Screenshot_2021-04-14%20Forums%20de%20la%20FELINN.png
from 192.168.10.100 by admin at 2021-04-16T10:39:25+00:00
[PHP] Error: Error: Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#691 at <<closure>>

 0. <<closure>>
    OC\Log\ErrorHandler::onError(2, "Cannot modify h ... )", "/var/www/nextcl ... p", 691, {string: "X-Hash ... "})
 1. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 691
    header("X-Hash-SHA1: cb ... 5")
 2. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 192
    OCA\DAV\Connector\Sabre\File->header("X-Hash-SHA1: cb ... 5")
 3. <<closure>>
    OCA\DAV\Connector\Sabre\File->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 71
    call_user_func(Closure {}, "*** sensitive parameter replaced ***")
 5. <<closure>>
    OC\Files\Stream\HashWrapper->stream_close()
 6. /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose(null)
 7. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 75
    Icewind\Streams\Wrapper->stream_close()
 8. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    OC\Files\Stream\HashWrapper->stream_close()
 9. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 84
    Sabre\DAV\Server->exec()
10. /var/www/nextcloud/remote.php line 167
    require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/visuels/Screenshot_2021-04-14%20Forums%20de%20la%20FELINN.png
from 192.168.10.100 by admin at 2021-04-16T10:39:25+00:00
[PHP] Error: Error: Cannot modify header information - headers already sent by (output started at /var/www/nextcloud/3rdparty/sabre/http/lib/Sapi.php:132) at /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php#691 at <<closure>>

 0. <<closure>>
    OC\Log\ErrorHandler::onError(2, "Cannot modify h ... )", "/var/www/nextcl ... p", 691, {string: "X-Hash ... "})
 1. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 691
    header("X-Hash-MD5: 091 ... 2")
 2. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 189
    OCA\DAV\Connector\Sabre\File->header("X-Hash-MD5: 091 ... 2")
 3. <<closure>>
    OCA\DAV\Connector\Sabre\File->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 71
    call_user_func(Closure {}, "*** sensitive parameter replaced ***")
 5. <<closure>>
    OC\Files\Stream\HashWrapper->stream_close()
 6. /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose(null)
 7. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 75
    Icewind\Streams\Wrapper->stream_close()
 8. <<closure>>
    OC\Files\Stream\HashWrapper->stream_close()
 9. /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php line 96
    fclose(null)
10. /var/www/nextcloud/lib/private/Files/Stream/HashWrapper.php line 75
    Icewind\Streams\Wrapper->stream_close()
11. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    OC\Files\Stream\HashWrapper->stream_close()
12. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 84
    Sabre\DAV\Server->exec()
13. /var/www/nextcloud/remote.php line 167
    require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/visuels/Screenshot_2021-04-14%20Forums%20de%20la%20FELINN.png

@maltepost
Copy link

I have the same error an accidently opened another issue just 5 minuntes ago. We get "Could not rename part file to final file"-Errors when trying to write files in shared folders which sit in a group folder (group folder/shared folder/...) on two different servers which were updated to version 21.0.1.1. The two backup servers with version 20.0.9 run fine. Any ideas?

[webdav] Fatal: Sabre\DAV\Exception: Could not rename part file to final file at <>

  1. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
    OCA\DAV\Connector\Sabre\File->put(null)
  2. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
    OCA\DAV\Connector\Sabre\Directory->createFile("210412_CDD Proj ... X", null)
  3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
    Sabre\DAV\Server->createFile("Testuser.docume ... X", null, null)
  4. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
  5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit("method:PUT", [Sabre\HTTP\Requ ... }])
  6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
  7. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
  8. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 84
    Sabre\DAV\Server->exec()
  9. /var/www/nextcloud/remote.php line 167
    require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/Testuser.documents/210412_CDD%.DOCX
from 62.84.220.XXX by Testuser at 2021-04-19T10:19:58+00:00

@ppskibinski
Copy link

For me the problem occurred after upgrade from 20.0.8 to 20.0.9
Files can not be created or uploaded to the shared folder located in a group folder by a user that received the share.
It is interesting that text files can be still edited by that user or new versions of other files can by uploaded (a file of the same name must already exist for the other version to be uploaded/overwriten).

I would greatly appreciate a quick fix.

@Ornanovitch
Copy link

Fix incoming

nextcloud/server#26980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Issues that are ready for development bug feature: acl Items related to the groupfolders ACL or "Advanced Permissions" high high priority Nc20 Nc21
Projects
None yet
Development

Successfully merging a pull request may close this issue.