Skip to content

test(coreApiWebdavUploadTUS): expect 400 for invalid TUS upload names#1

Open
michaelstingl wants to merge 1 commit into
reva-655from
reva-655-tus-tests
Open

test(coreApiWebdavUploadTUS): expect 400 for invalid TUS upload names#1
michaelstingl wants to merge 1 commit into
reva-655from
reva-655-tus-tests

Conversation

@michaelstingl

@michaelstingl michaelstingl commented Jun 3, 2026

Copy link
Copy Markdown
Owner

This branch is rhafer's reva-655 (the branch behind the test PR, which bumps reva to the fork that carries the new 400 behavior), plus one commit: the uploadFile.feature update for that change. It lives in a fork as a standalone diff to view or apply, not a pull request against main.

The reva change makes a TUS create with an invalid name return 400 instead of 412. The scenario splits per example with an <http-status-code> column:

  • a name that fails ValidateName expects 400 (12 of the 15 examples)
  • the three folder/file rows stay 412: filename() applies path.Base first, so folder/file becomes the valid leaf file, passes ValidateName, and never reaches the changed branch

lowLevelCreationExtension.feature is unchanged; its missing-Upload-Length case still returns 412.

The per-example outcome comes from the api-integration run on the reva PR.

🤖 drafted with Claude Code, reviewed before submitting.

opencloud-eu/reva#655 changes the TUS create response for an invalid name
from 412 to 400. Update the invalid-name scenario to match.

Each example now carries its own expected status in an <http-status-code>
column. Names that fail ValidateName expect 400. The three folder/file rows
stay 412: filename() applies path.Base first, so "folder/file" becomes the
valid leaf "file" and never reaches the changed branch.

lowLevelCreationExtension.feature is unchanged; its missing-Upload-Length
case still returns 412.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Label error. Requires at least 1 of: Type:Bug, Type:Enhancement, Type:Feature, Type:Breaking-Change, Type:Test, Type:Documentation, Type:Maintenance, Type:Security, Type:Dependencies, Type:DevOps, dependencies. Found:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant