Bug 1447997 - Errors are not shown on web when create resource from template contains fake api group
Summary: Errors are not shown on web when create resource from template contains fake ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: XiaochuanWang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-04 11:21 UTC by Xiaolin
Modified: 2017-08-16 19:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-25 14:08:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Description Xiaolin 2017-05-04 11:21:00 UTC
Description of problem:
  Errors are not shown on web when create resource from template contains fake api group

Version-Release number of selected component (if applicable):
dev-preview-int
openshift v3.6.63
kubernetes v1.6.1+5115d708d7

How reproducible:
Always

Steps to Reproduce:
1. Create a template using , https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json
2. $ oc edit template ruby-helloworld-sample, change the "apiVersion“ of the "Secret" object to fake/v1
3. Login to web console, click "Add to Project" , select the created template,ruby-helloworld-sample. Do not fill in any fields,  just click "Create" on next step page.

Actual results:
The "Create" button becomes disabled, the erros about "user cannot create"  are not shown

Expected results:
The page should show the error about "fail to create" or some 403 error.

Additional info:

Comment 2 openshift-github-bot 2017-05-04 17:23:23 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/978c2f748e3c40f40ecffca682a32de9c149a842
Bug 1447997 - Show warning for unsupported resource versions

Show warnings when instantiating a template that contains resource
versions not supported by the server.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1447997

Comment 4 Xiaolin 2017-06-05 08:50:48 UTC
Verified on 

OpenShift Master:    v3.6.94
Kubernetes Master:   v1.6.1+5115d708d7


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