Bug 706930

Summary: when attempting to deploy config file in WebUI, getting "Permission Error."
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: Configuration ManagementAssignee: Tomas Lestach <tlestach>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 541   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-24 15:11:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 462714    

Description Jan Hutař 2011-05-23 14:07:42 UTC
Description of problem:
I have system subscribed in a config channel with one created config file. Deploying by cli (rhncfg-client get) works as expected, but when I try to deploy in WebUI, I'm getting "Permission Error." error page.


Version-Release number of selected component (if applicable):
latest nightly of Satellite
satellite-schema-5.4.0.13-1.el6sat.noarch
spacewalk-java-1.2.39-80.el6sat.noarch

On the client:
rhncfg-actions-5.9.27-15.el6.noarch
rhncfg-client-5.9.27-15.el6.noarch
rhncfg-management-5.9.27-15.el6.noarch
rhncfg-5.9.27-15.el6.noarch


How reproducible:
always on my system


Steps to Reproduce:
1. Create config channel and create config file in it
2. Register RHEL6.0 system to it with installed rhncfg* packages
3. Systems -> <your_system> -> Configuration -> Overview ->
     Centrally-Managed Configuration: -> Deployable: 1 file
     (click on the link "1 file")


Actual results:
Permission Error. 
You do not have the appropriate permission set to access the requested page. You may have reached this error page in one of several ways:
Your login session has expired. For security reasons, RHN Satellite terminates your login session after 60 minutes of inactivity. To sign in again, click here.
You've found an error in our site. Please contact your Support representative with details of how you received this message.
Your browser does not have cookies enabled. The RHN Satellite requires cookies in order to function; if you have disabled them, please re-enable them to use the site.
You've done something naughty. Stop it.


Expected results:
should work as expected


Additional info:
Now I do not have rhn-tools-rhel-x86_64-server-6 on my satellite (I have rhncfg* packages form Prod), so that might be an reason, but even in that case, I should be presented with message similar to what I see in:

Configuration -> Configuration Channels -> <my_channel> -> Deploy all configuration files to all subscribed systems -> confirm with "Deploy Files to Selected Systems":
   Missing Capabilities 
   An operation could not be completed on a system due to a missing capability.
   The server test02-64.rhndev.redhat.com does not have the configfiles.deploy
   client capability. Please enable the capability before proceeding with
   the operation.

Comment 1 Jan Hutař 2011-05-24 09:45:39 UTC
So I have synced RHN Tools channel, added it to the system (using Configuration -> Systems -> Target Systems) and reinstalled rhncfg\* packeges (I guess rhn-profile-sync would do the job as well) and now I do not see that Permission error.

So goal of the bug would be to refine error message as noted above in "Additional info:".

Comment 3 Jan Hutař 2011-05-24 15:11:41 UTC
Discussed this with Tomas and this is more usability issue, not a bug and indeed, I do feel this is not important.