-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permanent file status "This file is locked" after OnlyOffice online editor crashes #7561
Comments
This is supposedly a WOPI lock due to an open web Editor. The web Editor will release the lock after the Editor has been closed. If the lock is stale, the TTL is 30 min. After that, the lock will be released. |
I understand that this lockdown was put in place by the WOPI server. OnlyOffice crashed and I can't release the lock by closing the file, it's not open. The setting is in wopiserver.conf.dist (from examples/ocis_wopi):
It's been 9 hours, the timeout lock has not been released. How can I manually remove a file lock status? |
@zerolabnet could you please do a folder listing while having the dev tools open. Then you need to look for the You should see a |
|
Nice, thanks! We now need to check if 0 means:
|
From what I got from http://www.webdav.org/specs/rfc2518.html#ELEMENT_activelock and http://www.webdav.org/specs/rfc2518.html#HEADER_Timeout, 0 means expired lock. Maybe we're violating the the Webdav spec:
(http://www.webdav.org/specs/rfc2518.html#rfc.section.9.8.p.6) |
From what I see in the oC Web code, Web is not checking the @JammingBen Could you please confirm this? |
Oh yes, this is correct. I didn't even know there is a |
No, we're still checking that. Probably the RFC says, that the lock should go away when expired. In this case it's a backend api bug |
oC10 and sabre dav do not return expired locks. This seems to be a oCIS api bug |
According to the official spec:
You're right, the client should not make any assumptions based on an expired timeout. |
I could reproduce it.
Actual result: the lock is not released Screen.Recording.2023-10-25.at.11.32.05.movCC @kobergj |
The issue is the When using method Action item: Unexported decomposedfs function |
@ScharfViktor Do you know a similar method / workaround for Office files that will be opened with OnlyOffice? |
do you mean how to delete |
As far as I know, sharing is not possible while the file is locked. Tags I don't know... |
@kobergj Maybe i missed the PR, is that already fixed in reva? |
No not fixed yet. I'll do it today 👍 |
Ok, thanks for taking care. I just saw the new tests pull request. @ScharfViktor also opened a lot of other bug tickets related to locking. Seems like a good opportunity to address them in a bulk mode. |
How can I manually remove a file lock status?
The text was updated successfully, but these errors were encountered: