Bug 754934 - Error message changed - try to remove provider "Red Hat"
Summary: Error message changed - try to remove provider "Red Hat"
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Katello
Classification: Retired
Component: Client
Version: 1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: 766906 768390
TreeView+ depends on / blocked
 
Reported: 2011-11-18 09:33 UTC by Garik Khachikyan
Modified: 2015-01-04 21:58 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-01-19 17:29:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Garik Khachikyan 2011-11-18 09:33:53 UTC
Description of problem:
since last builds seems there is "changed" the error message returning back during provider delete of "Red Hat". now it says:
---
User admin is not allowed to access api/providers/destroy

Version-Release number of selected component (if applicable):
katello-0.1.108-2.el6.x86_64
katello-cli-0.1.13-1.git.0.28ff7d5.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. try to invoke: `provider delete --org ACME_Corporation --name "Red Hat"`
2.
3.
  
Actual results:
Error is: User admin is not allowed to access api/providers/destroy

Expected results:
"Error while deleting provider [ Red Hat ]: Red Hat provider can not be deleted,"

Additional info:

Comment 1 Ivan Necas 2011-11-18 09:46:06 UTC
Aligned with UI, we unified the way that red hat provider is checked before deleting and this way doesn't provide custom error messages yet.

I will discuss with UI team the best way to handle this.

Comment 2 Bryan Kearney 2011-12-15 15:02:04 UTC
this looks like a permissions issue.

Comment 3 Lukas Zapletal 2012-01-19 17:29:33 UTC
If the provider is "Red Hat" type, there is hardcoded permission that does not allow to delete it. Its a feature. For now it is designed this way, the error message is not nice, but this is it for V1.

[root@ofed katello]# kk provider delete --org ACME_Corporation --name "Red Hat"
User admin is not allowed to access api/providers/destroy


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