Bug 1460145 - [ursxF5mB]The message of forbidden without assign permission to create templateinstance could be more friendly
[ursxF5mB]The message of forbidden without assign permission to create templa...
Product: OpenShift Container Platform
Classification: Red Hat
Component: Service Broker (Show other bugs)
Unspecified Unspecified
medium Severity low
: ---
: 3.7.0
Assigned To: Jim Minter
XiuJuan Wang
Depends On:
  Show dependency treegraph
Reported: 2017-06-09 05:03 EDT by XiuJuan Wang
Modified: 2017-11-28 16:56 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
The error message returned when a user does not have permission to modify a TemplateInstance was improved.
Story Points: ---
Clone Of:
Last Closed: 2017-11-28 16:56:55 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description XiuJuan Wang 2017-06-09 05:03:06 EDT
Description of problem:
The message of forbidden without assign permission to create templateinstance is urgly.

Version-Release number of selected component (if applicable):

oc v3.6.100
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://***:443
openshift v3.6.100
kubernetes v1.6.1+5115d708d7

How reproducible:

Steps to Reproduce:
1.Enable template service broker by admin
2.Create a templateinstance with requester.username that is not the requester user

Actual results:
Show below forbidden message:
The TemplateInstance "instance1" is invalid: spec.requester.username: Forbidden: impersonation forbidden: templateinstances.template.openshift.io "" is forbidden: User "xiuwang" cannot "assign" "templateinstances.template.openshift.io" with name "" in project "xiu3"

Expected results:
The forbidden message should be more friendly

Additional info:
Comment 1 Jim Minter 2017-06-09 06:04:15 EDT
Comment 2 XiuJuan Wang 2017-06-13 22:40:59 EDT
This issue has fixed in [1]
The forbidden info is more friendly.

The TemplateInstance "instance1" is invalid: spec.requester.username: Forbidden: you do not have permission to set username

Server https://***:8443
openshift v3.6.106
kubernetes v1.6.1+5115d708d7

Will move to verified after bug status change to on_qa
Comment 4 XiuJuan Wang 2017-07-05 23:22:58 EDT
Test with oc version v3.6.135, this issue has been fixed, move this bug to verified.
Comment 8 errata-xmlrpc 2017-11-28 16:56:55 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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