I have implemented WOPI for web and it works perfectly fine in most of the cases. Also all the mandatory test cases are getting passed. But for few specific documents either i get the error
Sorry , this document can not be opened for editing
. or sometimes the document opens via WOPI and whenever i edit the document and close it, WOPI does not call the Post endpoint for contents basically to update the file. It directly calls the unlock endpoint so whatever changes i made in file are gone.
So when i say specific document i mean that -> There are some document where we use libre office to edit the content of docx file via code and then save it to blob storage. So only for those document i get the above issue. I believe some issue is happening while editing the content but i can not wrap my head around what could be the issue. because if the issue was actually with the document or its buffer then i would not even be able to open the document in local .
I tried with multiple documents to edit via wopi but i found that whatever document i updated via libre office via code it does not work in wopi
Shrey Agrawal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.