astarte-platform / astarte-dashboard

Astarte dashboard
http://astarte-platform.org
Apache License 2.0
17 stars 17 forks source link

Can't delete Trigger ending in whitespace #373

Closed Annopaolo closed 9 months ago

Annopaolo commented 1 year ago

When listing and displaying a Trigger having a name ending in whitespace, the dashboard correctly displays it. Indeed, the related HTTP request correctly encodes its name in the URL, e.g. https://api.an.astarte.example/realmmanagement/v1/arealm/triggers/trigger%20name%20ends%20in%20whitespace%20. However, deletion fails with "Trigger not found" because the URL does not include the final whitespace https://api.an.astarte.example/realmmanagement/v1/arealm/triggers/trigger%20name%20ends%20in%20whitespace.

davidebriani commented 9 months ago

I am closing this issue since it's fixed in the v1.1 branch and the following versions.