nextcloud-swarm-plugin/lib
Karim Vergnes f0c6881f54
fix(directory):
The issue was twofold, and related to the assumptions made around
directories in the plugin. As it turns out, when creating a directory in
Nextcloud 28, Sabre contacts our plugin in two distinct places:
getMetaData and file_exists. While the getMetaData call succeeds and
populates the MKCOL response, the existence of an oc-fileid HTTP header
depends on file_exists, which will always return false for directories.

This fix involves adding directories as files without Swarm-specific
metadata to the Swarm file mapping database. This approach may introduce
incompatibilities, and require a Migration step to be devised to
populate the table and get rid of the cache-based assumption.

This commit does not remove the cache-based assumption so as to not
break existing file databases.
2024-07-19 16:15:38 +08:00
..
AppInfo add env for swarm access 2024-07-08 11:57:59 +02:00
Auth add env for swarm access 2024-07-08 11:57:59 +02:00
Backend add env for swarm access 2024-07-08 11:57:59 +02:00
Controller add env for swarm access 2024-07-08 11:57:59 +02:00
Db fix(directory): 2024-07-19 16:15:38 +08:00
Migration add env for swarm access 2024-07-08 11:57:59 +02:00
Sabre add env for swarm access 2024-07-08 11:57:59 +02:00
Service add env for swarm access 2024-07-08 11:57:59 +02:00
Settings add env for swarm access 2024-07-08 11:57:59 +02:00
Storage fix(directory): 2024-07-19 16:15:38 +08:00