Project

General

Profile

Actions

Bug #14800

open

Satellite 6.1.4 API docs link bug

Added by Zach Huntington-Meath almost 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 #1

Updated by Zach Huntington-Meath almost 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Zach Huntington-Meath
Actions #2

Updated by Eric Helms almost 8 years ago

  • translation missing: en.field_release set to 143
Actions #3

Updated by Justin Sherrill almost 8 years ago

  • translation missing: en.field_release changed from 143 to 114
  • Difficulty set to medium
Actions #4

Updated by Bryan Kearney over 6 years ago

  • Status changed from Assigned to Closed

I can not reproduce this any longer. Closing this out.

Actions #5

Updated by Eric Helms over 6 years ago

  • Project changed from Katello to Foreman
  • Category deleted (API)
  • Status changed from Closed to New
Actions #6

Updated by Tomer Brisker over 6 years ago

  • Subject changed from Satellite 6.1.4 API docs link bug *Consultant in field* to Satellite 6.1.4 API docs link bug
  • Category set to API
  • Assignee deleted (Zach Huntington-Meath)

This is possibly a bug in apipie. Going to <foreman>/apidoc/v2 works fine, but going to <foreman>/apidoc/v2/ causes all links to point to the wrong url.

Actions #7

Updated by Tomer Brisker over 5 years ago

  • Target version deleted (Katello Backlog)
  • Triaged set to No
Actions #8

Updated by Leos Stejskal almost 3 years ago

  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF