You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The knife job output and knife job status commands do not do proper input validation (i.e. require job ID and/or node). Because these arguments are not enforced, an empty value is passed to the Push Jobs API and then it returns a 404.
Steps to Reproduce:
Type knife job output without specifying a job ID or a node.
Expected Result:
It should tell me that I need to specify the correct arguments.
Actual Result:
Because the arguments are not validated, knife-push blindly makes an API call to https://chefserver.lxc/organizations/demo/pushy/jobs//output//stdout (note how it has not filled in the job ID and node name) which returns a 404 to the user.
ERROR: The object you are looking for could not be found │
Response: <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not Fou│
nd</H1>The requested document was not found on this server.<P><HR><ADDRESS│
>mochiweb+webmachine web server</ADDRESS></BODY></HTML>
The text was updated successfully, but these errors were encountered:
Version:
knife push 1.0.2
Environment:
ChefDK 1.0.3
Scenario:
The
knife job output
andknife job status
commands do not do proper input validation (i.e. require job ID and/or node). Because these arguments are not enforced, an empty value is passed to the Push Jobs API and then it returns a 404.Steps to Reproduce:
Type
knife job output
without specifying a job ID or a node.Expected Result:
It should tell me that I need to specify the correct arguments.
Actual Result:
Because the arguments are not validated,
knife-push
blindly makes an API call tohttps://chefserver.lxc/organizations/demo/pushy/jobs//output//stdout
(note how it has not filled in the job ID and node name) which returns a 404 to the user.The text was updated successfully, but these errors were encountered: