Details
-
Bug
-
Status: Done
-
Medium
-
Resolution: Fixed
-
2.2.0, 2.9.0
-
None
-
1
-
Yes
-
Yes
-
No
Description
Problem: https://SERVERIP/swagger/ working but https://SERVERIP/swagger is not
WE need to have some "redirect" to let both URL to work
STR:
- Install latest PMM2 server
- Open URL
- Log in to Grafana with username=admin and password=admin
- Open URL/swagger
Given result: Empty page is displayed and there is an error:
URL/swagger/ works OK, and before URL/swagger redirects to /swagger/, so the problem in redirecting
Expected result:
Swagger is displayed
Success criteria:
- Opening /swagger should display the page
- Opening /swagger.json should display the swagger json object
- Opening /swagger/swagger.json should redirect to /swagger.json and display the swagger json object
- Opening /swagger/ should redirect to /swagger and then display the page
- Opening /swagger/<anything here> should redirect to /swagger and then display the page
- If the user is unauthenticated, opening /swagger should display the page (as it does currently)
- Everything above should work the same in the dev-container (special attention to this swagger test)