Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1441293 - Tag Visibility | Error: undefined method `base_class' for NilClass:Class on selecting container image on containers page
Tag Visibility | Error: undefined method `base_class' for NilClass:Class on s...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
5.7.0
Unspecified Unspecified
high Severity high
: GA
: 5.7.3
Assigned To: Yaacov Zamir
Einat Pacifici
container:tag
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-11 11:38 EDT by Ruslana Babyuk
Modified: 2018-06-05 07:50 EDT (History)
8 users (show)

See Also:
Fixed In Version: 5.7.3.1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-06-28 10:59:55 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: Bug
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management


Attachments (Terms of Use)
container error (36.88 KB, image/png)
2017-04-11 11:38 EDT, Ruslana Babyuk
no flags Details
container error log (5.91 KB, text/plain)
2017-04-11 11:39 EDT, Ruslana Babyuk
no flags Details
images of trying to repruduce (497.86 KB, application/x-xz)
2017-04-19 05:03 EDT, Yaacov Zamir
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:1601 normal SHIPPED_LIVE Important: CFME 5.7.3 security, bug fix and enhancement update 2017-06-28 14:51:52 EDT

  None (edit)
Description Ruslana Babyuk 2017-04-11 11:38:45 EDT
Created attachment 1270819 [details]
container error

Description of problem:


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

How reproducible:
always

Steps to Reproduce:
1.Set up role, group(set one restricted tag) and user
2.Add container provider
3.Set tag to one of container images
4.As restricted user navigate to container detail page
5.Click on 'Container image' field

Actual results:
Error appears

Expected results:
Error should appear 'User ... is not authorized to access 'Container Image'

Additional info:
evm.log error:
ERROR -- : MIQ(container_image_controller-show): User 'testtag' is not authorized to access 'Container Image' record id '2'
Comment 2 Ruslana Babyuk 2017-04-11 11:39 EDT
Created attachment 1270821 [details]
container error log
Comment 3 Yaacov Zamir 2017-04-18 07:23:51 EDT
Can't reproduce:

Please provide more information on how to reproduce, or about affected version. 

------------

On 5.7.2:
ruby-2.2.6
manageiq euwe-3, or commit :b531b1e (used to build 5.7.2)

What I did:
1. Set up role, group(can only see tag: location=>paris) and user

2. Add container provider
3. Add my company tag (location=>paris) to provider and image

4. log out of admin
5. log in as user

6. go to provider
7. container image tag, show the only image with tag, not error.

------------

On current master:
ruby-3.3
managei1-master

Also no bug (the files with error in the log have changed significantly).
Comment 4 Ruslana Babyuk 2017-04-18 10:27:26 EDT
Please repeat steps below:

1. Set up role, group, and user

2. Add container provider
3. Add my company tag to a provider, container1, and container image2(Note: tagged container image2 should be different that used for container1).
 
4. log out of admin
5. log in as user
 
6. go to container1 detail page
7. Click on the "Container Image" field

Affected version: 5.7.2.1
Comment 5 Yaacov Zamir 2017-04-19 05:03 EDT
Created attachment 1272527 [details]
images of trying to repruduce
Comment 6 Yaacov Zamir 2017-04-19 05:10:38 EDT
hi, thanks

what i did ( see attachment 1272527 [details] ) 

1. created role, group and user [ no restrictions ]
2. create container provider, checked I can see container images

3. restrict group to only see: location => paris

4. add tags:
   provider -        location => paris
   container -       location => paris
   container_image - location => new-york [ different that used for container ]

5. log out of admin
6. log in as user

7. go to container detail, click container image, got error

Thanks
Comment 7 Yaacov Zamir 2017-04-19 06:21:33 EDT
submitted upstream:
https://github.com/ManageIQ/manageiq/pull/14802
Comment 8 Yaacov Zamir 2017-04-24 11:58:15 EDT
merged upstream
https://github.com/ManageIQ/manageiq/pull/14802
Comment 9 Pavel Zagalsky 2017-06-11 09:17:30 EDT
Verified on 5.7.3.1
Comment 11 errata-xmlrpc 2017-06-28 10:59:55 EDT
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.

https://access.redhat.com/errata/RHSA-2017:1601

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