Repository navigation
Closed
Description
The following scenario has been failing frequently with status code check failure:
Check builds:
https://ci.opencloud.eu/repos/3/pipeline/585/487
https://ci.opencloud.eu/repos/3/pipeline/582/505
https://ci.opencloud.eu/repos/3/pipeline/580/505
Scenario Outline: send last chunk twice # /woodpecker/src/github.com/opencloud-eu/opencloud/tests/acceptance/features/coreApiWebdavUploadTUS/lowLevelUpload.feature:45
Given using <dav-path-version> DAV path # FeatureContext::usingOldOrNewOrSpacesDavPath()
And user "Alice" has created a new TUS resource on the WebDAV API with these headers: # TUSContext::userHasCreatedNewTUSResourceWithHeaders()
| Upload-Length | 10 |
| Upload-Metadata | filename ZmlsZS50eHQ= |
When user "Alice" sends a chunk to the last created TUS Location with offset "0" and data "123" using the WebDAV API # TUSContext::userSendsAChunkToTUSLocationWithOffsetAndData()
And user "Alice" sends a chunk to the last created TUS Location with offset "3" and data "4567890" using the WebDAV API # TUSContext::userSendsAChunkToTUSLocationWithOffsetAndData()
And user "Alice" sends a chunk to the last created TUS Location with offset "3" and data "0000000" using the WebDAV API # TUSContext::userSendsAChunkToTUSLocationWithOffsetAndData()
Then the HTTP status code should be "404" # FeatureContext::thenTheHTTPStatusCodeShouldBe()
And the content of file "/file.txt" for user "Alice" should be "1234567890" # FeatureContext::contentOfFileForUserShouldBe()
Examples:
| dav-path-version |
| old |
| new |
| spaces |
Failed step: Then the HTTP status code should be "404"
HTTP status code 409 is not the expected value 404
Failed asserting that 409 matches expected '404'.Also listed here: opencloud-eu/qa#50
CC @individual-it @ScharfViktor
Metadata
Metadata
Assignees
Labels
No labels
Activity
individual-it commentedon Oct 10, 2025
Here what the TUS protocol description says:
Here my guess what happens:
not sure who knows about that codepath @rhafer @micbar @aduffeck , do you think the assumption above is correct? If so I would suggest to accept both 404 and 409 in this test. Alternatively we could wait and retry till eventually 404 is returned because the resource does not exist anymore
individual-it commentedon Dec 8, 2025
@rhafer @micbar @aduffeck what should we do here?
rhafer commentedon Dec 8, 2025
Yes.
If you want to keep the check for the final content of the file I think the correct fix would be to wait for the 404.
It might make sense to introduce another test to check for the 409 by sending 5 or 6 bytes with offset
3multiple times.