本文介绍了WOPI客户端(在线办公室)锁定请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在锁定文档时收到来自WOPI客户端(即Office Online)的奇怪响应,它为我提供了短json字符串和长json字符串方面的多个锁.

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.

这怎么可能?即使是这样,我也应该从整个json字符串中考虑哪一个是有效的,json字符串的哪一部分是实际锁定?

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 ?

响应包含json字符串,如下所示:

Response contains json string as below:

预先感谢!

推荐答案

您将其按原样存储为字符串".

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

如果在GetFileInfo中启用了SupportsExtendedLockLength,则锁ID"的大小最多为1024个字符,否则为256个字符.确保考虑到这一点.

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.

这篇关于WOPI客户端(在线办公室)锁定请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 07:55