Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1358303 - Container auto-tagging from labels breaks refresh on labels with empty value
Container auto-tagging from labels breaks refresh on labels with empty value
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
5.6.0
Unspecified Unspecified
high Severity high
: GA
: 5.6.1
Assigned To: Beni Paskin-Cherniavsky
Tony
container
: ZStream
Depends On: 1358257
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-20 09:22 EDT by Chris Pelland
Modified: 2016-08-19 15:28 EDT (History)
9 users (show)

See Also:
Fixed In Version: 5.6.1.2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1358257
Environment:
Last Closed: 2016-08-18 13:59:20 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Github 9713 None None None 2016-07-20 09:22 EDT
Red Hat Product Errata RHSA-2016:1634 normal SHIPPED_LIVE Important: CFME 5.6.1 security, bug fix, and enhancement update 2016-08-18 17:43:52 EDT

  None (edit)
Comment 2 CFME Bot 2016-07-26 09:25:59 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/90155b96186a036c5e406ee5308921521c524535

commit 90155b96186a036c5e406ee5308921521c524535
Author:     Beni Cherniavsky-Paskin <cben@redhat.com>
AuthorDate: Mon Jul 25 20:00:51 2016 +0300
Commit:     Beni Cherniavsky-Paskin <cben@redhat.com>
CommitDate: Mon Jul 25 20:02:05 2016 +0300

    Fix auto-tagging to handle empty-value labels
    
    Given any-value mapping `foo` -> "Foo" category,
    `foo=` label will create "Foo : <empty value>" tag.
    
    Fixes #9713,
    https://bugzilla.redhat.com/show_bug.cgi?id=1358257
    https://bugzilla.redhat.com/show_bug.cgi?id=1358303

 app/models/container_label_tag_mapping.rb       | 11 +++++++++--
 spec/models/container_label_tag_mapping_spec.rb |  7 ++++---
 2 files changed, 13 insertions(+), 5 deletions(-)
Comment 3 Beni Paskin-Cherniavsky 2016-07-27 09:29:36 EDT
Forgot to mention in description:
after using `rails console` to create the mapping in the DB, 
should restart CFME to reload it.
(it's cached in memory indefinitely; the `ContainerLabelTagMapping.drop_cache` line above affects the rails console process but not an already running instance).
Comment 5 Tony 2016-07-31 07:29:05 EDT
Verified on CFME 5.6.1.0, succeeded attaching label with an empty value.
Comment 7 errata-xmlrpc 2016-08-18 13:59:20 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://rhn.redhat.com/errata/RHSA-2016-1634.html

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