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

Bug 1445225

Summary: Unsynced package removal leads to permission error
Product: Red Hat Satellite 5 Reporter: Lukáš Hellebrandt <lhellebr>
Component: WebUIAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: tkasparek, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.5.14-76-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:16:49 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:
Bug Depends On:    
Bug Blocks: 1358815    

Description Lukáš Hellebrandt 2017-04-25 09:54:11 UTC
Description of problem:
Permission error caused by trying to open details of a package on the removal confirmation page if the package is not synced (i.e. not clickable in the original package list)

Version-Release number of selected component (if applicable):
Reproduced both on 5.8 and 5.7, probably everywhere

How reproducible:
Deterministic

Steps to Reproduce:
1. Have a system registered with some packages installed that are not synced in a satellite
2. Go ty Systems -> <system> -> Software -> Packages -> List/Remove
3. The non-synced package should not be clickable
4. Select it and click Remove Packages
5. On the confirmation page, the package is now shown as clickable. Click it.
6. Permission error

Actual results:
Permission error

Expected results:
Not sure. The package is not synced. But permission error is not cool.

Additional info:
catalina.out log with traceback attached

Comment 2 Grant Gainey 2017-04-27 17:29:05 UTC
spacewalk.master:
b7fee3c808e3ea94c8c164590ce6b33d6bedf343

Comment 5 Lukáš Hellebrandt 2017-05-11 09:59:24 UTC
Verified with spacewalk-java-2.5.14-80.

The package is now not clickable in step 5 of reproducer from OP.