diff --git a/services/collaboration/pkg/connector/fileconnector.go b/services/collaboration/pkg/connector/fileconnector.go index 073a18daf..0a5bc618f 100644 --- a/services/collaboration/pkg/connector/fileconnector.go +++ b/services/collaboration/pkg/connector/fileconnector.go @@ -209,7 +209,7 @@ func (f *FileConnector) Lock(ctx context.Context, lockID, oldLockID string) (*Co Ref: wopiContext.FileReference, Lock: &providerv1beta1.Lock{ LockId: lockID, - AppName: f.cfg.App.LockName + "." + f.cfg.App.Name, + AppName: f.cfg.App.Name, Type: providerv1beta1.LockType_LOCK_TYPE_WRITE, Expiration: &typesv1beta1.Timestamp{ Seconds: uint64(time.Now().Add(lockDuration).Unix()), @@ -235,7 +235,7 @@ func (f *FileConnector) Lock(ctx context.Context, lockID, oldLockID string) (*Co Ref: wopiContext.FileReference, Lock: &providerv1beta1.Lock{ LockId: lockID, - AppName: f.cfg.App.LockName + "." + f.cfg.App.Name, + AppName: f.cfg.App.Name, Type: providerv1beta1.LockType_LOCK_TYPE_WRITE, Expiration: &typesv1beta1.Timestamp{ Seconds: uint64(time.Now().Add(lockDuration).Unix()), @@ -378,7 +378,7 @@ func (f *FileConnector) RefreshLock(ctx context.Context, lockID string) (*Connec Ref: wopiContext.FileReference, Lock: &providerv1beta1.Lock{ LockId: lockID, - AppName: f.cfg.App.LockName + "." + f.cfg.App.Name, + AppName: f.cfg.App.Name, Type: providerv1beta1.LockType_LOCK_TYPE_WRITE, Expiration: &typesv1beta1.Timestamp{ Seconds: uint64(time.Now().Add(lockDuration).Unix()), @@ -518,7 +518,7 @@ func (f *FileConnector) UnLock(ctx context.Context, lockID string) (*ConnectorRe Ref: wopiContext.FileReference, Lock: &providerv1beta1.Lock{ LockId: lockID, - AppName: f.cfg.App.LockName + "." + f.cfg.App.Name, + AppName: f.cfg.App.Name, }, }