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: | Server | Assignee: | Justin Sherrill <jsherril> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Petr Sklenar <psklenar> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 530 | CC: | 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
Xixi
2010-03-26 18:34:47 UTC
Created attachment 402914 [details]
ErrataList.pm.TEST.664593.1.patch
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);
...
fixed in commit 0c2078fb5b1273a346f2b79e2a1ff70ad9cf15c4 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 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 |