Repository: owncloud/ocis
Pull request #4734 (2022-10-04 12:37:23)

Bump github.com/urfave/cli/v2 from 2.16.3 to 2.17.1
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.16.3 to 2.17.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/urfave/cli/releases">github.com/urfave/cli/v2's releases</a>.</em></p>
<blockquote>
<h2>v2.17.1</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix help results inconsistency by <a href="https://github.com/dearchap"><code>@​dearchap</code></a> in <a href="https://github-redirect.dependabot.com/urfave/cli/pull/1499">urfave/cli#1499</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/urfave/cli/compare/v2.17.0...v2.17.1">https://github.com/urfave/cli/compare/v2.17.0...v2.17.1</a></p>
<h2>v2.17.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Flag-level Action by <a href="https://github.com/xwjdsh"><code>@​xwjdsh</code></a> in <a href="https://github-redirect.dependabot.com/urfave/cli/pull/1337">urfave/cli#1337</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/xwjdsh"><code>@​xwjdsh</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/urfave/cli/pull/1337">urfave/cli#1337</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/urfave/cli/compare/v2.16.6...v2.17.0">https://github.com/urfave/cli/compare/v2.16.6...v2.17.0</a></p>
<h2>v2.16.6</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: Context.Set no such flag by <a href="https://github.com/Torwang1"><code>@​Torwang1</code></a> in <a href="https://github-redirect.dependabot.com/urfave/cli/pull/1497">urfave/cli#1497</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Torwang1"><code>@​Torwang1</code></a> made their first contribution in <a href="https://github-redirect.dependabot.com/urfave/cli/pull/1497">urfave/cli#1497</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/urfave/cli/compare/v2.16.5...v2.16.6">https://github.com/urfave/cli/compare/v2.16.5...v2.16.6</a></p>
<h2>v2.16.5</h2>
<h2>What's Changed</h2>
<ul>
<li>Fix:(issue_1197) Set destination field from altsrc for slice flags by <a href="https://github.com/dearchap"><code>@​dearchap</code></a> in <a href="https://github-redirect.dependabot.com/urfave/cli/pull/1495">urfave/cli#1495</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/urfave/cli/compare/v2.16.4...v2.16.5">https://github.com/urfave/cli/compare/v2.16.4...v2.16.5</a></p>
<h2>v2.16.4</h2>
<h2>What's Changed</h2>
<ul>
<li>Accept the <code>MKDOCS_REMOTE_GITHUB_TOKEN</code> var as intended by <a href="https://github.com/meatballhat"><code>@​meatballhat</code></a> in <a href="https://github-redirect.dependabot.com/urfave/cli/pull/1493">urfave/cli#1493</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/urfave/cli/compare/v2.16.3...v2.16.4">https://github.com/urfave/cli/compare/v2.16.3...v2.16.4</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/urfave/cli/commit/de834931826e135e850fa77be341f68d96d6865a"><code>de83493</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/urfave/cli/issues/1499">#1499</a> from dearchap/issue_557</li>
<li><a href="https://github.com/urfave/cli/commit/a81e201383383fb92b18185198ff722ab99a61bf"><code>a81e201</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/urfave/cli/issues/1337">#1337</a> from xwjdsh/feat/flag-action</li>
<li><a href="https://github.com/urfave/cli/commit/d6395333f1a730ab61b35cc59f4c1d16eb96a585"><code>d639533</code></a> Remove un-needed func</li>
<li><a href="https://github.com/urfave/cli/commit/aecd7c159a4ad6f410794ca11b6e66327ed96fd2"><code>aecd7c1</code></a> Remove un-needed func</li>
<li><a href="https://github.com/urfave/cli/commit/4c9651575ccbac60903dbdeddd4232388066ab63"><code>4c96515</code></a> Approval for public API change</li>
<li><a href="https://github.com/urfave/cli/commit/e925d26b97287729ae1d3a61a5766ba03ce411a2"><code>e925d26</code></a> Fix:(issue_557) Make help output consistent between different invocations</li>
<li><a href="https://github.com/urfave/cli/commit/0ee87b411a343a85c770a3f493d2ef3aae4ad163"><code>0ee87b4</code></a> Fix:(issue_557) Change app help name</li>
<li><a href="https://github.com/urfave/cli/commit/9f465af482aa7b4c2ac26498701a76cb424a8913"><code>9f465af</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/urfave/cli/issues/1497">#1497</a> from Torwang1/main</li>
<li><a href="https://github.com/urfave/cli/commit/3005438a1f3d1b67d2751da307463ddf4a5dd95b"><code>3005438</code></a> fix: Context.Set no such flag</li>
<li><a href="https://github.com/urfave/cli/commit/47f6782a902c671f3629001c1603bb75eab3152a"><code>47f6782</code></a> Add more test cases</li>
<li>Additional commits viewable in <a href="https://github.com/urfave/cli/compare/v2.16.3...v2.17.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/urfave/cli/v2&package-manager=go_modules&previous-version=2.16.3&new-version=2.17.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6652adc8eb9..67df8b27741 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,7 +8,6 @@ The following sections list the changes for unreleased.
 
 * Bugfix - Fix authentication for autoprovisioned users: [#4616](https://github.com/owncloud/ocis/issues/4616)
 * Bugfix - Bring back the settings UI in Web: [#4691](https://github.com/owncloud/ocis/pull/4691)
-* Bugfix - Fix cache stat table config: [#4732](https://github.com/owncloud/ocis/pull/4732)
 * Bugfix - Change the default value for PROXY_OIDC_INSECURE to false: [#4601](https://github.com/owncloud/ocis/pull/4601)
 * Bugfix - Don't run auth-bearer service by default: [#4692](https://github.com/owncloud/ocis/issues/4692)
 * Bugfix - Fix notifications service settings: [#4652](https://github.com/owncloud/ocis/pull/4652)
@@ -17,7 +16,6 @@ The following sections list the changes for unreleased.
 * Bugfix - Mail notifications for group shares: [#4714](https://github.com/owncloud/ocis/pull/4714)
 * Bugfix - Fix unfindable entities from shares/publicshares: [#4651](https://github.com/owncloud/ocis/pull/4651)
 * Bugfix - Graph service now forwards trace context: [#4582](https://github.com/owncloud/ocis/pull/4582)
-* Bugfix - Make tokeninfo endpoint unprotected: [#4715](https://github.com/owncloud/ocis/pull/4715)
 * Bugfix - Fix wopi access to public shares: [#4631](https://github.com/owncloud/ocis/pull/4631)
 * Enhancement - Add Email templating: [#4564](https://github.com/owncloud/ocis/pull/4564)
 * Enhancement - Add webURL to space root: [#4588](https://github.com/owncloud/ocis/pull/4588)
@@ -43,13 +41,6 @@ The following sections list the changes for unreleased.
 
    https://github.com/owncloud/ocis/pull/4691
 
-* Bugfix - Fix cache stat table config: [#4732](https://github.com/owncloud/ocis/pull/4732)
-
-   We have aligned the cache table config for the gateway and the dataprovider to make them
-   actually use the same cache instance.
-
-   https://github.com/owncloud/ocis/pull/4732
-
 * Bugfix - Change the default value for PROXY_OIDC_INSECURE to false: [#4601](https://github.com/owncloud/ocis/pull/4601)
 
    We've changed the default value for PROXY_OIDC_INSECURE to `false`. Previously the default
@@ -111,12 +102,6 @@ The following sections list the changes for unreleased.
 
    https://github.com/owncloud/ocis/pull/4582
 
-* Bugfix - Make tokeninfo endpoint unprotected: [#4715](https://github.com/owncloud/ocis/pull/4715)
-
-   Make the tokeninfo endpoint unprotected as it is supposed to be available to the public.
-
-   https://github.com/owncloud/ocis/pull/4715
-
 * Bugfix - Fix wopi access to public shares: [#4631](https://github.com/owncloud/ocis/pull/4631)
 
    I've added a request check to the public share authenticator middleware to allow wopi to access
diff --git a/changelog/unreleased/fix-cache-config.md b/changelog/unreleased/fix-cache-config.md
deleted file mode 100644
index 105517d2a1a..00000000000
--- a/changelog/unreleased/fix-cache-config.md
+++ /dev/null
@@ -1,5 +0,0 @@
-Bugfix: Fix cache stat table config
-
-We have aligned the cache table config for the gateway and the dataprovider to make them actually use the same cache instance.
-
-https://github.com/owncloud/ocis/pull/4732
diff --git a/changelog/unreleased/tokeninfo-endpoint-auth.md b/changelog/unreleased/tokeninfo-endpoint-auth.md
deleted file mode 100644
index 856dfcb5817..00000000000
--- a/changelog/unreleased/tokeninfo-endpoint-auth.md
+++ /dev/null
@@ -1,5 +0,0 @@
-Bugfix: Make tokeninfo endpoint unprotected
-
-Make the tokeninfo endpoint unprotected as it is supposed to be available to the public.
-
-https://github.com/owncloud/ocis/pull/4715
diff --git a/go.mod b/go.mod
index e96a8603f99..f91f8116d11 100644
--- a/go.mod
+++ b/go.mod
@@ -5,7 +5,7 @@ go 1.18
 require (
 	github.com/CiscoM31/godata v1.0.5
 	github.com/Masterminds/semver v1.5.0
-	github.com/MicahParks/keyfunc v1.4.0
+	github.com/MicahParks/keyfunc v1.3.0
 	github.com/ReneKroon/ttlcache/v2 v2.11.0
 	github.com/armon/go-radix v1.0.0
 	github.com/blevesearch/bleve/v2 v2.3.4
@@ -63,7 +63,7 @@ require (
 	github.com/test-go/testify v1.1.4
 	github.com/thejerf/suture/v4 v4.0.2
 	github.com/tus/tusd v1.9.2
-	github.com/urfave/cli/v2 v2.16.3
+	github.com/urfave/cli/v2 v2.17.1
 	github.com/xhit/go-simple-mail/v2 v2.12.0
 	go-micro.dev/v4 v4.8.1
 	go.etcd.io/bbolt v1.3.6
diff --git a/go.sum b/go.sum
index e5f1a753cc7..a858609d9b4 100644
--- a/go.sum
+++ b/go.sum
@@ -102,8 +102,8 @@ github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3Q
 github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y=
 github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZCSYp4Z0m2dk6cEM60=
 github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o=
-github.com/MicahParks/keyfunc v1.4.0 h1:/qTnDiQJSM0pkUvKRVb82jvvm0SAOffAqKSIrgUqwdI=
-github.com/MicahParks/keyfunc v1.4.0/go.mod h1:IdnCilugA0O/99dW+/MkvlyrsX8+L8+x95xuVNtM5jw=
+github.com/MicahParks/keyfunc v1.3.0 h1:+3nQWlJ3UYdAr1syqHjF3cRE+pWCOCFCqCo2allP8oM=
+github.com/MicahParks/keyfunc v1.3.0/go.mod h1:GWZYIBflWXRPShQPMFRrUg+8buvyD0IWeg3Fi2rcrME=
 github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
 github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
 github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA=
@@ -544,6 +544,7 @@ github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keL
 github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
 github.com/golang-jwt/jwt/v4 v4.1.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
 github.com/golang-jwt/jwt/v4 v4.3.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
+github.com/golang-jwt/jwt/v4 v4.4.1/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
 github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs=
 github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
 github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 h1:gtexQ/VGyN+VVFRXSFiguSNcXmS6rkKT+X7FdIrTtfo=
@@ -1213,8 +1214,8 @@ github.com/uber-go/atomic v1.3.2/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex
 github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
 github.com/urfave/cli v1.22.4/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
 github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
-github.com/urfave/cli/v2 v2.16.3 h1:gHoFIwpPjoyIMbJp/VFd+/vuD0dAgFK4B6DpEMFJfQk=
-github.com/urfave/cli/v2 v2.16.3/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI=
+github.com/urfave/cli/v2 v2.17.1 h1:UzjDEw2dJQUE3iRaiNQ1VrVFbyAtKGH3VdkMoHA58V0=
+github.com/urfave/cli/v2 v2.17.1/go.mod h1:1CNUng3PtjQMtRzJO4FMXBQvkGtuYRxxiR9xMa7jMwI=
 github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
 github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
 github.com/valyala/fasttemplate v1.1.0/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
diff --git a/services/proxy/pkg/middleware/authentication.go b/services/proxy/pkg/middleware/authentication.go
index d32decfe59a..90ad1e6fba8 100644
--- a/services/proxy/pkg/middleware/authentication.go
+++ b/services/proxy/pkg/middleware/authentication.go
@@ -24,8 +24,7 @@ var (
 	_publicPaths = [...]string{
 		"/dav/public-files/",
 		"/remote.php/dav/public-files/",
-		"/ocs/v1.php/apps/files_sharing/api/v1/tokeninfo/unprotected",
-		"/ocs/v2.php/apps/files_sharing/api/v1/tokeninfo/unprotected",
+		"/remote.php/ocs/apps/files_sharing/api/v1/tokeninfo/unprotected",
 		"/ocs/v1.php/cloud/capabilities",
 	}
 )
diff --git a/services/search/pkg/search/provider/events.go b/services/search/pkg/search/provider/events.go
index af62c78410e..525daf3e8da 100644
--- a/services/search/pkg/search/provider/events.go
+++ b/services/search/pkg/search/provider/events.go
@@ -38,12 +38,7 @@ func (p *Provider) handleEvent(ev interface{}) {
 		}
 		statRes, err := p.statResource(ownerCtx, ref, owner)
 		if err != nil {
-			p.logger.Error().Err(err).
-				Str("storageid", ref.GetResourceId().GetStorageId()).
-				Str("spaceid", ref.GetResourceId().GetSpaceId()).
-				Str("opaqueid", ref.GetResourceId().GetOpaqueId()).
-				Str("path", ref.GetPath()).
-				Msg("failed to make stat call for the restored resource")
+			p.logger.Error().Err(err).Msg("failed to stat the changed resource")
 			return
 		}
 
@@ -51,20 +46,10 @@ func (p *Provider) handleEvent(ev interface{}) {
 		case rpc.Code_CODE_OK:
 			err = p.indexClient.Restore(statRes.Info.Id)
 			if err != nil {
-				p.logger.Error().Err(err).
-					Str("storageid", ref.GetResourceId().GetStorageId()).
-					Str("spaceid", ref.GetResourceId().GetSpaceId()).
-					Str("opaqueid", ref.GetResourceId().GetOpaqueId()).
-					Str("path", ref.GetPath()).
-					Msg("failed to restore the changed resource in the index")
+				p.logger.Error().Err(err).Msg("failed to restore the changed resource in the index")
 			}
 		default:
-			p.logger.Error().Interface("statRes", statRes).
-				Str("storageid", ref.GetResourceId().GetStorageId()).
-				Str("spaceid", ref.GetResourceId().GetSpaceId()).
-				Str("opaqueid", ref.GetResourceId().GetOpaqueId()).
-				Str("path", ref.GetPath()).
-				Msg("failed to stat the restored resource")
+			p.logger.Error().Interface("statRes", statRes).Msg("failed to stat the changed resource")
 		}
 
 		return
@@ -137,21 +122,11 @@ func (p *Provider) handleEvent(ev interface{}) {
 
 	statRes, err := p.statResource(ownerCtx, ref, owner)
 	if err != nil {
-		p.logger.Error().Err(err).
-			Str("storageid", ref.GetResourceId().GetStorageId()).
-			Str("spaceid", ref.GetResourceId().GetSpaceId()).
-			Str("opaqueid", ref.GetResourceId().GetOpaqueId()).
-			Str("path", ref.GetPath()).
-			Msg("failed to make stat call for changed resource")
+		p.logger.Error().Err(err).Msg("failed to stat the changed resource")
 		return
 	}
 	if statRes.Status.Code != rpc.Code_CODE_OK {
-		p.logger.Error().Interface("statRes", statRes).
-			Str("storageid", ref.GetResourceId().GetStorageId()).
-			Str("spaceid", ref.GetResourceId().GetSpaceId()).
-			Str("opaqueid", ref.GetResourceId().GetOpaqueId()).
-			Str("path", ref.GetPath()).
-			Msg("failed to stat the changed resource")
+		p.logger.Error().Interface("statRes", statRes).Msg("failed to stat the changed resource")
 		return
 	}
 
diff --git a/services/storage-system/pkg/revaconfig/config.go b/services/storage-system/pkg/revaconfig/config.go
index b7026b18080..e97580250bc 100644
--- a/services/storage-system/pkg/revaconfig/config.go
+++ b/services/storage-system/pkg/revaconfig/config.go
@@ -112,17 +112,14 @@ func StorageSystemFromStruct(cfg *config.Config) map[string]interface{} {
 						"simple": map[string]interface{}{
 							"cache_store":    "noop",
 							"cache_database": "system",
-							"cache_table":    "stat",
 						},
 						"spaces": map[string]interface{}{
 							"cache_store":    "noop",
 							"cache_database": "system",
-							"cache_table":    "stat",
 						},
 						"tus": map[string]interface{}{
 							"cache_store":    "noop",
 							"cache_database": "system",
-							"cache_table":    "stat",
 						},
 					},
 				},
diff --git a/services/storage-users/pkg/revaconfig/config.go b/services/storage-users/pkg/revaconfig/config.go
index 873b84984c4..333815d2c43 100644
--- a/services/storage-users/pkg/revaconfig/config.go
+++ b/services/storage-users/pkg/revaconfig/config.go
@@ -57,19 +57,16 @@ func StorageUsersConfigFromStruct(cfg *config.Config) map[string]interface{} {
 							"cache_store":    cfg.Cache.Store,
 							"cache_nodes":    cfg.Cache.Nodes,
 							"cache_database": cfg.Cache.Database,
-							"cache_table":    "stat",
 						},
 						"spaces": map[string]interface{}{
 							"cache_store":    cfg.Cache.Store,
 							"cache_nodes":    cfg.Cache.Nodes,
 							"cache_database": cfg.Cache.Database,
-							"cache_table":    "stat",
 						},
 						"tus": map[string]interface{}{
 							"cache_store":    cfg.Cache.Store,
 							"cache_nodes":    cfg.Cache.Nodes,
 							"cache_database": cfg.Cache.Database,
-							"cache_table":    "stat",
 						},
 					},
 				},


Test patch:
diff --git a/services/proxy/pkg/middleware/authentication_test.go b/services/proxy/pkg/middleware/authentication_test.go
index 17c151aebac..1188fefa343 100644
--- a/services/proxy/pkg/middleware/authentication_test.go
+++ b/services/proxy/pkg/middleware/authentication_test.go
@@ -13,8 +13,7 @@ var _ = Describe("authentication helpers", func() {
 		},
 		Entry("public files path", "/remote.php/dav/public-files/", true),
 		Entry("public files path without remote.php", "/remote.php/dav/public-files/", true),
-		Entry("token info path", "/ocs/v1.php/apps/files_sharing/api/v1/tokeninfo/unprotected", true),
-		Entry("token info path", "/ocs/v2.php/apps/files_sharing/api/v1/tokeninfo/unprotected", true),
+		Entry("token info path", "/remote.php/ocs/apps/files_sharing/api/v1/tokeninfo/unprotected", true),
 		Entry("capabilities", "/ocs/v1.php/cloud/capabilities", true),
 	)
 })