Skip to content

API server return error 500 on artifact quota exhaustion #50

Description

@hnez

The server should return 413 Content Too Large instead of 500 Internal Server Error.
The source of the generic server error is here:

forrest/src/artifacts.rs

Lines 124 to 126 in 7a95060

if !artifact.consume_quota(data.len() as u64) {
bail!("Quota exceeded");
}

Thanks to @Bastian-Krause for reporting this to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions