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

API request for invalid path returns HTML response #2867

gschueler opened this Issue Oct 20, 2017 · 0 comments


None yet
1 participant

gschueler commented Oct 20, 2017

Issue type: Bug Report

My Rundeck detail

  • Rundeck version: 2.x+

Expected Behavior

Making an API request like http://server/api/10/not/valid should return a status 404 and a json or xml formatted response instead of HTML.

Also, requesting http://server/api/90/not/valid where API version is higher than allowed, should correctly respond with status 400 and result code api.error.api-version.unsupported.

Actual Behavior

http://server/api/10/not/valid results in 403 with HTML body.

http://server/api/90/not/valid results in 403 with HTML body.

How to reproduce Behavior

Request an API path with to invalid endpoint with a valid version, or with an invalid version.

@gschueler gschueler added this to the 2.10.x milestone Oct 20, 2017

@gschueler gschueler closed this in 20f1962 Nov 17, 2017

gschueler added a commit that referenced this issue Nov 17, 2017

Merge pull request #2868 from rundeck/issue/2867
fix #2867 respond correctly to invalid API requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment