CommunityPatch icon indicating copy to clipboard operation
CommunityPatch copied to clipboard

title with space accepted and now can't interact with it

Open danengh opened this issue 7 years ago • 2 comments

Tableau Public was a definition I uploaded a while back. The server let me upload it with Spaces in the ID but now I can't interact with it. When I went to delete, I got a message saying it didn't exist. I also couldn't update it either. It does show up on the Community Patch server though in the GUI. Inspecting it shows:

{"message": "Not Found"}

danengh avatar Nov 06 '18 20:11 danengh

Tested and recreated...

curl https://beta2.communitypatch.com/api/v1/titles -X POST -d "$(cat output/Test.json)" -H 'Content-Type: application/json' -H 'Authorization: Bearer {API KEY}'
{"message": "Title 'Testing Issue' created"}

curl https://beta2.communitypatch.com/api/v1/titles/Testing Issue -X DELETE -H 'Authorization: Bearer {API KEY}'
{"message": "The title 'Testing' was not found"}

curl https://beta2.communitypatch.com/api/v1/titles/Testing%20Issue -X DELETE -H 'Authorization: Bearer {API KEY}'
{"message": "The title 'Testing%20Issue' was not found"}

 curl "https://beta2.communitypatch.com/api/v1/titles/Testing Issue" -X DELETE -H 'Authorization: Bearer {API KEY}'
{"message": "The title 'Testing%20Issue' was not found"}

curl https://beta2.communitypatch.com/api/v1/titles -X POST -d "$(cat output/Test.json)" -H 'Content-Type: application/json' -H 'Authorization: Bearer  {API KEY}'
{"message": "Conflict: You have already created a title with the ID 'Testing Issue'"}

https://beta2.communitypatch.com/jamf/v1/81cfffa1f56c6c7de651cece7c0c4b56/patch/Testing%20Issue

Stedders avatar Nov 15 '18 22:11 Stedders

I'll be addressing this as a part of the new environment.

brysontyrrell avatar Mar 11 '20 20:03 brysontyrrell