Swirrl / datahost-prototypes

Eclipse Public License 1.0
0 stars 0 forks source link

Adding a release to a non existent series return HTTP 500 #308

Open xdrcft8000 opened 11 months ago

xdrcft8000 commented 11 months ago

This has only happened when the series creation fails due to using a date as the series name.

Should probably be 422?

recreate with this hurl code:

command:

hurl release404bug.hurl --variable scheme=http --variable host_name=localhost:3000 --variable auth_token="string" --variable series="$date(.+)"

hurl:

PUT {{scheme}}://{{host_name}}/data/{{series}} Accept: application/json Content-Type: application/json Authorization: {{auth_token}} { "dcterms:title": "Test Dataset", "dcterms:description": "A very simple test" }

HTTP 201

PUT {{scheme}}://{{host_name}}/data/{{series}}/release/release-1 Accept: application/json Content-Type: application/json Authorization: {{auth_token}} { "dcterms:title": "Test Release", "dcterms:description": "A very simple Release" }

HTTP 422