Bug 1441219 - User with channel admin role can manage null-org channels
Summary: User with channel admin role can manage null-org channels
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Ales Dujicek
URL:
Whiteboard:
Depends On:
Blocks: 1340444 1414454
TreeView+ depends on / blocked
 
Reported: 2017-04-11 12:48 UTC by Jan Dobes
Modified: 2017-06-21 12:13 UTC (History)
3 users (show)

Fixed In Version: spacewalk-java-2.5.14-88
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:13:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Dobes 2017-04-11 12:48:19 UTC
Description of problem:
If user has channel admin role, he can access and modify some attributes which he couldn't access and modify using WebUI with any role.

How reproducible:
always

Steps to Reproduce:
1. Try to call channel.access.getOrgSharing (channel.access.setOrgSharing) API with label of null-org channel.

Actual results:
You can access the values.

Expected results:
You can't access these values.

Comment 1 Jan Dobes 2017-04-11 14:03:34 UTC
fixed in spacewalk master:

12bf2e452bb69aaa7159200b6083981f55c44047

Comment 6 Jan Dobes 2017-05-24 15:44:20 UTC
problems from comment #4 and comment #5 fixed in spacewalk master:

398f7291e90a08f9e913922a7f9125a7136f3b55
47ceacfb19ae57c06352c6583e059cd073aeede5

Comment 11 Ales Dujicek 2017-05-30 12:26:10 UTC
right, channel manager of channel can call everything on custom channels, this is OK as well:
setOrgSharing custom-channel - 1
getOrgSharing custom-channel - public
enableUserRestrictions custom-channel - 1
disableUserResttrictions custom-channel - 1

and user cannot be manager of red hat channels


Note You need to log in before you can comment on or make changes to this bug.