Bug 1341844

Summary: Browsing Repositories provides incorrect URL for
Product: Red Hat Satellite Reporter: Dylan Gross <dgross>
Component: WebUIAssignee: Walden Raines <walden>
WebUI sub component: Katello QA Contact: Adam Ruzicka <aruzicka>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aruzicka, bbuckingham, cwelton
Version: 6.2.0Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/15414
Whiteboard:
Fixed In Version: rubygem-katello-3.0.0.50-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:30:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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