WOPI Client (office online) Lock request

2019-07-28 01:24发布

I have strange response from WOPI client (i.e. Office Online) while locking the document, It provides me multiple locks in terms of short json string and long json string.

How could this be possible ? and even if it is, which one I should consider the valid and from whole json string, Which part of json string is actual lock ?

Response contains json string as below:

{"F":6,"E":1,"C":"DF1","M":"df-8f3a7ae03629","P":"59F8D569-8001-4CF1-A5A2-E89C24E18A7F","W":"df-d81ca88d14b7","B":"4B9BA727-DD57-4CE5-8F3D-6A814191DB82","L":"df-94574cd614c8"}

Thanks in advance !!

1条回答
时光不老,我们不散
2楼-- · 2019-07-28 01:49

You store it as-is as 'a string'.

If you enabled SupportsExtendedLockLength in GetFileInfo then the size of the 'lock id' is at most 1024 characters, otherwise 256 characters. Make sure to account for this.

查看更多
登录 后发表回答