Skip to content
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

Validation for set cmd attributes (profile, url, etc) #147

Open
sureshanaparti opened this issue Mar 27, 2024 · 0 comments
Open

Validation for set cmd attributes (profile, url, etc) #147

sureshanaparti opened this issue Mar 27, 2024 · 0 comments

Comments

@sureshanaparti
Copy link
Contributor

sureshanaparti commented Mar 27, 2024

There should be some validation (atleast null/empty checks, invalid urls) for the values set through the set cmd in cli.

Checked (in cmk 6.3.0 / 6.4.0 RC1) with some empty values for profile and url, these are updated without any errors and the cmds after that doesn't work.

(cmk) 🐱 > set profile
Loaded in-built API cache. Failed to read API cache, please run 'sync'.
Loaded server profile: 
Url:         
Username:    
Domain:      
API Key:     
Total APIs:  754

(cmk) 🐱 > list hosts details=min
Please provide either apikey/secretkey or username/password to make an API call
🙈 Error: failed to authenticate to make API call
(cmk) 🐱 > set url
(cmk) 🐱 > list hosts details=min
🙈 Error: Get "?apiKey=LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q&command=listHosts&details=min&response=json&signature=kwv%2FgM82BQpTrmw9byW97agy7lQ%3D": unsupported protocol scheme ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant