Skip to content

update study PGN moves API doesn't handle errors well #649

@Siderite

Description

@Siderite

The study update PGN moves API doesn't seem to handle errors at all.

When posting a valid PGN, the study chapter is updated correctly. When posting an invalid PGN, the study chapter content is completely deleted and the API returns 204 like nothing happened.

Expected result would be an HTTP error code and no updates to the existing chapter if the PGN moves cannot be parsed into a valid PGN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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