Bug 1341844 - Browsing Repositories provides incorrect URL for
Summary: Browsing Repositories provides incorrect URL for
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Walden Raines
QA Contact: Adam Ruzicka
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-01 20:45 UTC by Dylan Gross
Modified: 2021-03-11 14:35 UTC (History)
3 users (show)

Fixed In Version: rubygem-katello-3.0.0.50-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:30:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 15414 0 Normal Closed Browsing Repositories provides incorrect URL for 2020-01-14 00:45:28 UTC

Description Dylan Gross 2016-06-01 20:45:01 UTC
Description of problem:

   After downloading and importing Debugging Certificate into browser, browsing a Repo's "Published At" URL will have invalid links for the Packages.  

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

   Satellite 6.2 Beta

How reproducible:   Seemingly always, with any Repo the customer, or myself have tried.   Customer or Red Hat provided.

Steps to Reproduce:
1.   Download, convert, and import "Debugging Certificate" into browser.
2.   Go to "Content" > "Content View" > (CV name) > 
     "Yum Content" > "Repositories" > (Repo Name)
3.   Click the "Published At" link. It will list the packages.
4.   Click on any Package link

Actual results:

   404 Not found.  
  
   The link for the package leaves off the part of the path.

Example:  

(Incorrect)
   https://sat62beta.redhat.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.1/facter-1.7.6-2.1.el7sat.x86_64.rpm

Expected results:

Package should start download.
In this example, the URL for the package that DOES download has /os/ in it.  Other examples (for like kickstart repos) would be /kickstart/ or a custom repo name. 

(Correct)
   https://farmkvmr7n15.dgross.redhat.com/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.1/os/facter-1.7.6-2.1.el7sat.x86_64.rpm

Additional info:

   Workaround - When you first click the URL in the "Published At" field and it lists the packages, the download links don't work.   However, if you click the "Parent Directory" and then drill back down to the package listing, the links will work and will download correctly.

Comment 2 Walden Raines 2016-06-14 16:21:33 UTC
Created redmine issue http://projects.theforeman.org/issues/15414 from this bug

Comment 4 Walden Raines 2016-06-14 16:35:05 UTC
(In reply to Walden Raines from comment #3)
> PR:
> https://github.com/Katello/katello/compare/master...waldenraines:
> 15414?expand=1

Oops, wrong link - https://github.com/Katello/katello/pull/6125

Comment 5 Bryan Kearney 2016-06-14 20:16:02 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15414 has been closed

Comment 6 Adam Ruzicka 2016-06-28 12:32:11 UTC
VERIFIED.
Satellite 6.2 GA 17.0
katello-3.0.0-8.el7sat.noarch

Followed steps described in comment #0, the 'Published at' URL ends with a '/'. Clicking on the link opens the package listing, clicking on any package begins its download.

Comment 7 Bryan Kearney 2016-07-27 11:30:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501


Note You need to log in before you can comment on or make changes to this bug.