CommunityPatch
CommunityPatch copied to clipboard
title with space accepted and now can't interact with it
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"}
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
I'll be addressing this as a part of the new environment.