Project

General

Profile

Actions

Bug #14800

open

Satellite 6.1.4 API docs link bug

Added by Zach Huntington-Meath about 8 years ago. Updated almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1303685
Description of problem: When customer opens link "https:satellite.example.com/apidoc/v2/" and clicks on activation key it open URL "https://satellite.example.com/apidoc/apidoc/v2/activation_keys.html" instead of "https://satellite.example.com/apidoc/v2/activation_keys.html"

Version-Release number of selected component (if applicable): 6.1.4

How reproducible:

Steps to Reproduce:
1. Open link "https:satellite.example.com/apidoc/v2/"

2. Now click on Activation Clicks

3. It will open "https://satellite.example.com/apidoc/apidoc/v2/activation_keys.html" instead of "https://satellite.example.com/apidoc/v2/activation_keys.html"

Actual results: It redirects to link "https://satellite.example.com/apidoc/apidoc/v2/activation_keys.html"

Expected results: It should redirect to link "https://satellite.example.com/apidoc/v2/activation_keys.html"

Additional info: This is because when cu opens above link it reads v2.html file.

/var/lib/foreman/public/apipie-cache/apidoc/v2.html
~~~~~~~~~~~~~~~~~~~~~~~
<td>
<a href='../apidoc/v2/activation_keys/index.html'>GET /katello/api/activation_keys</a>
</td>
<tr>
<td>
<a href='../apidoc/v2/activation_keys/index.html'>GET /katello/api/environments/:environment_id/activation_keys</a>
~~~~~~~~~~~~~~~~~~~~~~~
So when cu puts "/" in front of v2 it consider it as an directory due to which its not able to replace apidoc from URL.

Actions

Also available in: Atom PDF