fix: [OCISDEV-330] add OCS v2 capabilities endpoint to public paths

Following the same behavior as OCS v1, we added the OCS v2 capabilities
endpoint to the public paths.
This commit is contained in:
Lukas Hirt committed 2025-09-17 14:54:16 +02:00
1 parent f01627339d
commit dcd3dc6a77
2 files changed
+7 -1

No files matched your search

@@ -0,0 +1,5 @@
Bugfix: Add OCS v2 capabilities endpoint to public paths
Following the same behavior as OCS v1, we added the OCS v2 capabilities endpoint to the public paths.
https://github.com/owncloud/ocis/pull/11665
@@ -23,14 +23,15 @@ var (
ProxyWwwAuthenticate = []regexp.Regexp{*regexp.MustCompile("/ocs/v[12].php/cloud/")}
_publicPaths = [...]string{
"/dav/public-files/",
"/remote.php/dav/ocm/",
"/dav/ocm/",
"/ocm/",
"/remote.php/dav/public-files/",
"/dav/public-files/",
"/ocs/v1.php/apps/files_sharing/api/v1/tokeninfo/unprotected",
"/ocs/v2.php/apps/files_sharing/api/v1/tokeninfo/unprotected",
"/ocs/v1.php/cloud/capabilities",
"/ocs/v2.php/cloud/capabilities",
"/ocs/v1.php/cloud/user/signing-key",
"/ocs/v2.php/cloud/user/signing-key",
"/ocs/v2.php/apps/notifications/api/v1/notifications/sse",