Skip to content

Non-standard behavior of WebDAV server; status code 425 is misused #3203

Description

@cannorin

Describe the bug

The WebDAV implementation of OpenCloud returns 425 if the file is uploaded but the metadata is not yet processed, but it is a misuse of HTTP status code. 425 is meant to be used to indicate that "the server was unwilling to risk processing a request that might be replayed to avoid potential replay attacks" (https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/425, emphasis by me), not that the requested resource is not yet ready.

Steps to reproduce

Upload a file and access it before it is processed.

Expected behavior

It should return 404, or 503 with a Retry-After header.

Actual behavior

It returns 425.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    Qualification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions