Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xdrcft8000 opened this issue Nov 22, 2023 · 0 comments
Open

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

xdrcft8000 opened this issue Nov 22, 2023 · 0 comments

Comments

@xdrcft8000
Copy link
Contributor

xdrcft8000 commented Nov 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant