Skip to content

Commit d534508

Browse files
committed
Fixed detection of locks for Collabora
1 parent 73b303f commit d534508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/wopiutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def retrieveWopiLock(fileid, operation, lockforlog, acctok, overridefn=None):
297297
lolockstat = st.statx(acctok['endpoint'], getLibreOfficeLockName(acctok['filename']), acctok['userid'])
298298
lolock = next(st.readfile(acctok['endpoint'], getLibreOfficeLockName(acctok['filename']), acctok['userid'], None))
299299
lolock = lolock.decode()
300-
if 'WOPIServer' not in lolock:
300+
if 'wopiserver' not in lolock:
301301
lolockholder = lolock.split(',')[1] if ',' in lolock else lolockstat['ownerid']
302302
log.info('msg="Found existing LibreOffice lock" lockop="%s" user="%s" filename="%s" token="%s" '
303303
'lockmtime="%ld" holder="%s"' %

0 commit comments

Comments
 (0)