Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore custom attributes that have a nil name #14055

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

gtanzillo
Copy link
Member

@gtanzillo gtanzillo commented Feb 23, 2017

Fixes a bug where building reportable fields from custom attributes blows up when the name is nil.

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

/cc @Fryguy @jrafanie @lpichler

Fixes a bug where building reportable fields from custom attributes blows up when the name is nil.

https://bugzilla.redhat.com/show_bug.cgi?id=1426029
@gtanzillo gtanzillo force-pushed the bz-1426029-nil-custom-attr branch from 0a1d7c5 to b18c510 Compare February 23, 2017 20:39
@miq-bot
Copy link
Member

miq-bot commented Feb 23, 2017

Checked commit gtanzillo@b18c510 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🏆

Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed with @agrare, it makes sense to try to figure out and fix anything inserting nil names in the custom attributes but since we don't validate the name, we should probably not blow up if a nil name custom attribute makes it in the system. 👍

@jrafanie jrafanie merged commit 9fd7e20 into ManageIQ:master Feb 23, 2017
@jrafanie jrafanie added this to the Sprint 55 Ending Feb 27, 2017 milestone Feb 23, 2017
@jrafanie jrafanie deleted the bz-1426029-nil-custom-attr branch February 23, 2017 21:23
@jrafanie jrafanie self-assigned this Feb 23, 2017
simaishi pushed a commit that referenced this pull request Feb 23, 2017
@simaishi
Copy link
Contributor

Euwe backport details:

$ git log -1
commit 097c0a7abd1d3d56e48e1966c60e914948eed96b
Author: Joe Rafaniello <[email protected]>
Date:   Thu Feb 23 16:23:42 2017 -0500

    Merge pull request #14055 from gtanzillo/bz-1426029-nil-custom-attr
    
    Ignore custom attributes that have a nil name
    (cherry picked from commit 9fd7e20a92717fa5e2d55bae38f2d7649263bd60)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1426433

agrare pushed a commit to agrare/manageiq that referenced this pull request Apr 19, 2017
…m-attr

Ignore custom attributes that have a nil name
(cherry picked from commit 9fd7e20)

https://bugzilla.redhat.com/show_bug.cgi?id=1426433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants