diff --git a/changelog/unreleased/forcelock-cleanup.md b/changelog/unreleased/forcelock-cleanup.md new file mode 100644 index 0000000000..e89b860ef0 --- /dev/null +++ b/changelog/unreleased/forcelock-cleanup.md @@ -0,0 +1,5 @@ +Enhancement: Removed support for forcelock + +This workaround is not needed any longer, see also the wopiserver. + +https://github.com/cs3org/reva/pull/3908 diff --git a/pkg/app/provider/wopi/wopi.go b/pkg/app/provider/wopi/wopi.go index 64e8b7bdea..640e0319f2 100644 --- a/pkg/app/provider/wopi/wopi.go +++ b/pkg/app/provider/wopi/wopi.go @@ -252,11 +252,6 @@ func (p *wopiProvider) GetAppURL(ctx context.Context, resource *provider.Resourc q.Add("appinturl", p.conf.AppIntURL) } - if _, ok := opaqueMap["forcelock"]; ok { - // this is to work around an issue with Microsoft Office, cf. cs3org/wopiserver#106 - q.Add("forcelock", "1") - } - httpReq.URL.RawQuery = q.Encode() if p.conf.AppAPIKey != "" {