-
Notifications
You must be signed in to change notification settings - Fork 171
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
Spaces in hostnames #36
Comments
I don't believe spaces are valid characters for hostnames. However, the URL encoding for "space" is %20. So, you may want to try /host/Test%20Server%201. |
Now that I'm using this api myself, I understand the reason for this issue. The nagios object name for a host may not be the actual hostname of the server, and as such, spaces are permitted. Even with url encoding, it comes back is an invalid request. |
…, api server will crash
Fix issue #36 if request URL contains object id with space, api server will crash
@MaxBear - your commit won't work, because "spaces" aren't actually allow in a URL, a urlencoded name that includes spaces: before: |
When I call the API like this:
/host/Test_Server_1 the API responds fine.
however if I try this:
/host/Test Server 1
The API responds with {"content": "Invalid request URI", "success": false}
Can you please advise how i can get details of hostnames with spaces in the name?
Thanks
The text was updated successfully, but these errors were encountered: