Skip to content

[scd] DSS fail with error 500 when constraint time_end <= time_start #1299

@RustedBones

Description

@RustedBones

Describe the bug

When requesting to create a constraint reference with invalid time bounds (time_end <= time_start), the DSS returns an error 500 with following error:

ERROR: new row for relation "scd_constraints" violates check constraint "scd_constraints_check" (SQLSTATE 23514)

To Reproduce
Call PutConstraintReference endpoint with invalid constraint

Expected behavior
DSS should answer with rejected status code and error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal prioritybugSoftware behaves incorrectly because of this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions