When sharing a folder (publicly) that has multiple etherpad links in it, nextcloud (27.1.2) with ownpad (0.9.5) does not support this. The error log shows:
When accessing the shared folder anonymously:
Exception: Call to a member function file_get_contents() on null in file '/var/www/nextcloud/lib/private/Files/Filesystem.php' line 560
When accessing the shared folder while having a user session but via the public share link:
file_get_contents(/var/www/nextcloud/data/testuser/files/test.pad): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#305
Undefined array key 1 at /var/www/nextcloud/apps/ownpad/lib/Service/OwnpadService.php#132
Undefined array key 1 at /var/www/nextcloud/apps/ownpad/lib/Service/OwnpadService.php#132
Sharing and opening individual pads works.
I suspect that the implementation for public shares uses a different way of accessing files, and only the internal version has been appropriately hooked/loads the right MIME options.
To reproduce:
- Create a folder in nextcloud
- Create a pad in the folder
- Share the folder (share via link)
- Open the link in a new window or anonymous browser window
- Observe the above error
When sharing a folder (publicly) that has multiple etherpad links in it, nextcloud (27.1.2) with ownpad (0.9.5) does not support this. The error log shows:
When accessing the shared folder anonymously:
When accessing the shared folder while having a user session but via the public share link:
Sharing and opening individual pads works.
I suspect that the implementation for public shares uses a different way of accessing files, and only the internal version has been appropriately hooked/loads the right MIME options.
To reproduce: