Closed PhrozenByte closed 3 years ago
Unfortunately I cannot test this since I get
error: patch failed: lib/Files/LocalFolder.php:153
error: lib/Files/LocalFolder.php: patch does not apply
when I try to apply the patch...
@PhrozenByte if you want to test this yourself you should be able to reproduce this issue by following:
- Make your Nextcloud root folder read only by mounting a local external storage to Nextcloud, making it read only and naming it
/
.- Create a second local external storage, name it differently and make it writeable.
- try to create a new website in the second local external storage with the cms_pico app
No need to apply the patch manually, simply clone the branch (or download the source ZIP from https://github.com/nextcloud/cms_pico/archive/refs/heads/bugfix/141.zip) and run composer install
.
Thanks! I've done that in a VM and I can report that it fixes my issues with read only root folder. Thank you! :)
Let's give @matrois a few more days to test this, too.
Nextcloud's file operations API apparently is unable to proberly deal with relative paths (even though the docs tell us otherwise). It …
..
(likely as a security measure - by using the most unsophisticated approach :unamused:).Also see nextcloud/server#26396.
Fixes #141 #165
@szaimen @matrois: Since I still don't know what exactly you guys are doing to cause this issue, I couldn't test it. Please give it a try.