Red Hat Bugzilla – Bug 493173
Wrong message "There was no selection." when deleting custom errata
Last modified: 2009-09-10 16:34:57 EDT
Description of problem:
When deleting custom errata (published or unpublished), "There was no selection. Please make your selection and try again." message is displayed along with
"Deleted errata test-advisoryIIHScFSXW20YL"
Its a display only bug. Errata gets deleted correctly.
Steps to Reproduce:
1. Create a custom errata
2. Go to manage errata -> unpublished
3. delete errata
Following messages are displayed together:
Deleted errata test-advisoryIIHScFSXW20YL
There was no selection. Please make your selection and try again.
Only : Deleted errata test-advisoryIIHScFSXW20YL
vader commit: 21400483fe20cd345e4c7893daaea64c0fdfbb19
master commit: 8e760a06723ed975b1cc5fd60a83f2aca6f55b95
In order to solve this one, the struts config needed a minor change to the action path="/errata/manage/Delete". The change was:
- path="/errata/manage/PublishedErrata.do" />
+ path="/errata/manage/PublishedErrata.do" redirect="true" />
Without this redirect, the request was not sent to the expect url of https://<server>/rhn/errata/manage/PublishedErrata.do. Instead, the user was sent to a url like: https://<server>/rhn/errata/manage/Delete.do?eid=2559&dispatch=Delete+Erratum.
Verified. Not seeing "There was no selection. Please make your selection and try again." message when deleting published or unpublished errata now.
Verified on staged (Satellite-5.3.0-RHEL5-re20090724.0) with updates from Aug 20, 2009
The deletion of a publish or unpublished custom errata results in the following message:
Successfully deleted 1 errata.
moving to RELEASE_PENDING
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.