Description
Describe the bug
When uploading test payload, it is IMO unnecessarily strict on the owner name. In the UI our team is called Hybrid-cloud-experience-perfscale but to upload stuff, it needs to have the user as hybrid-cloud-experience-perfscale-team , i.e. all lowercase and with suffix -team. My main issue is with the all lowercase requirement even though the UI name has capital H.
To Reproduce
Create schema with "uri:my-schema" and team that's called "My-team" in UI.
$ curl -X POST --silent --show-error -H "Content-Type: application/json" -H "X-Horreum-API-Key: $HORREUM_API_TOKEN" "https://horreum.address.TODOREPLACE/api/run/data?test=my-test&start=2025-03-20T07:00:00Z&stop=2025-03-20T07:10:00Z&owner=My-team-team&access=PUBLIC&schema=uri:my-schema" --data '{}' This user does not have permissions to upload run for owner=My-team-team
Vs.
$ curl -X POST --silent --show-error -H "Content-Type: application/json" -H "X-Horreum-API-Key: $HORREUM_API_TOKEN" "https://horreum.address.TODOREPLACE/api/run/data?test=my-test&start=2025-03-20T07:00:00Z&stop=2025-03-20T07:10:00Z&owner=my-team-team&access=PUBLIC&schema=uri:my-schema" --data '{}' 58307
Version
What is the version of Horreum ?
0.17.1
Java
What is the version of Java ?
java -version
as on prod as of 30 minutes before creating this ticket
PostgreSQL
What is the version of PostgreSQL ?
psql --version
as on prod as of 30 minutes before creating this ticket
OS
Fedora 40 Workstation ed.
Browser
Firefox 136.0.1
Also shoutout to @jhutar for figuring this out