Closed Prototipo-Erick-Santander closed 1 year ago
We are facing same issue with PutUnlockedFile test. "WordBlankDocument" doesn't return a 0 length stream.
Any updates regarding this ?
Unfortunately, due to the lack of response from the team I simply bypassed this test, and moved on from there, this said, if I'm not mistaken, they do say in the docs that the preferred way of testing is with online with a .wopitest file.
As such, I would advise using the executable for quick tests in the beginning and then moving on to online testing.
Thanks for sharing. So you can confirm online testing don't have this issue for PutUnlockedFile scenario.
I can't say for sure, since I don't remember it that clearly, but I think it doesn't have the issue there.
I got the same issue and resolved it. In my case the following was the scenario:
We are in the process of closing WOPI Validator GitHub. If you still need help with this issue, please reach out to the CSPP partner Yammer channel or contact csppteam@microsoft.com.
The
PutUnlockedFile
test is failing because the resource "WordBlankDocument", doesn't return a 0 length stream nor does it lock a file first, and, since the docs sayI deal with that situation as per the docs and send a
409 Conflict
response when thestream.Length > 0 && lockValue.IsNullOrEmpty()
but then the test fails.From what I saw, the only resource that return a 0 length stream is the
"ZeroByteFile.wopitest"
but the resource being used for this test is "WordBlankDocument", as defined in the TestCases.xmlThe code of the
Resource.cs
ClassIs this a bug of the validator, are the docs wrong? What sould be my course of action here?
Thanks in advance.