Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 577355

Summary: When cloning errata - links pointing to erratas under 'Owned Errata' leads to 404 page not found
Product: Red Hat Satellite 5 Reporter: Xixi <xdmoon>
Component: ServerAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Petr Sklenar <psklenar>
Severity: medium Docs Contact:
Priority: urgent    
Version: 530CC: andrew.clements, cperry, psklenar, tao, xdmoon
Target Milestone: ---Keywords: Patch, Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-22 14:04:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 518256    
Attachments:
Description Flags
ErrataList.pm.TEST.664593.1.patch none

Description Xixi 2010-03-26 18:34:47 UTC
Description of problem:
Under a cloned channel -> Errata -> Clone - links to "Owned Errata" points to old .pxt page and trying to access it gives "404 Error - File Not Found". It needs to be updated to .do page.

Version-Release number of selected component (if applicable):
Red Hat Network (RHN) Satellite 5.3.0

System architecture(s):
RHEL 5 U3 i386 platform

How reproducible:
Always.

Steps to Reproduce:
1. Have a satellite with at least 1 channel sync'd, clone this channel (choose original state/no errata).
2. Go to Channels -> Manage Software Channel -> <the cloned channel> -> Errata -> Clone
3. Click on any errata under "Owned Errata"

Actual results:
"404 Error - File Not Found"

Expected results:
It should display the page to manage that errata:
https://<satellte-fqdn>/rhn/errata/manage/Edit.do?eid=<eid>

Additional info:

Comment 2 Xixi 2010-03-26 18:36:43 UTC
Created attachment 402914 [details]
ErrataList.pm.TEST.664593.1.patch

Comment 3 Xixi 2010-03-26 18:38:49 UTC
Attached patch fixes bug on internal reproducer (httpd restart needed).

Code snippets:

/var/www/html/network/software/channels/manage/errata/clone.pxt
...
<rhn-listview class="Sniglets::ListView::ErrataList" mode="potential_for_cloned_channel">
  <formvars>
    <var name="cid" />
  </formvars>
...

/usr/lib/perl5/vendor_perl/5.8.8/Sniglets/ListView/ErrataList.pm
...
    if (defined $row->{OWNED_ERRATA}) {
      my @owned = @{$row->{OWNED_ERRATA}};
      my @ranked = sort compare_owned_errata @owned;

      $default_action ||= 'merge_' . $ranked[0]->{ID};

      $row->{OWNED_ERRATA_LIST} = join("<br/>\n", map { PXT::HTML->link('/network/errata/manage/edit.pxt?eid=' . $_->{ID},$_->{ADVISORY_NAME}) . ' (' .
                                                        ($_->{PUBLISHED} ? '+pub' : '-pub') . ', ' .
                                                        ($_->{LOCALLY_MODIFIED} ? '+mod' : '-mod') . ')' } @owned);
      push(@options, map { { label => 'Merge w/' . $_->{ADVISORY_NAME},
                             value => 'merge_' . $_->{ID} } } @owned);
...

Comment 4 Justin Sherrill 2010-05-13 17:00:02 UTC
fixed in commit 0c2078fb5b1273a346f2b79e2a1ff70ad9cf15c4

Comment 6 Petr Sklenar 2010-06-04 09:26:45 UTC
Test procedure:

1. Have a satellite with at least 1 channel sync'd, clone this channel (choose
original state/no errata).
2. Go to Channels -> Manage Software Channel -> <the cloned channel> -> Errata
-> Clone
3. Click on any errata under "Owned Errata"

OLD:
"404 Error - File Not Found"
it points to edit.pxt:
https://<FQDN_OF_SATELLITE>/network/errata/manage/edit.pxt?eid=1662


NEW:
cobbler-1.6.6-8.el5sat.x86_64
spacewalk-java-0.5.44-77.el5sat.noarch
spacewalk-base-0.5.23-35.el5sat.noarch

page was displayed, can edit erratas
it points to Edit.do:
https://<FQDN_OF_SATELLITE>/rhn/errata/manage/Edit.do?eid=1662
--------
Verified with sat530+,x86_64

Comment 8 errata-xmlrpc 2010-06-22 14:04:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0498.html