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

Set Field value to a blank value to avoid crashes due to a nil value #1637

Merged

Conversation

AparnaKarve
Copy link
Contributor

@AparnaKarve AparnaKarve commented Jun 30, 2017

Expressions with field values of type Text must contain a blank string at the start in order to prevent crashes when a user clicks on the check mark mid-way before the expression is fully formed.

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

To reproduce the issue (the crash), select Build State as the field value in the Provider Foreman Advanced Search Expression editor. Click on the check mark button without entering a value.

@AparnaKarve
Copy link
Contributor Author

@miq-bot add_label fine/yes,bug,expressions/filters

@miq-bot
Copy link
Member

miq-bot commented Jun 30, 2017

Checked commit AparnaKarve@1bee4d2 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@h-kataria h-kataria added this to the Sprint 64 Ending Jul 3, 2017 milestone Jun 30, 2017
@h-kataria h-kataria merged commit ae3741a into ManageIQ:master Jun 30, 2017
simaishi pushed a commit that referenced this pull request Aug 4, 2017
…valid_value

Set Field value to a blank value to avoid crashes due to a nil value
(cherry picked from commit ae3741a)

https://bugzilla.redhat.com/show_bug.cgi?id=1478409
@simaishi
Copy link
Contributor

simaishi commented Aug 4, 2017

Fine backport details:

$ git log -1
commit 0f3ff35421bda7abe69684b335aeaf0d14dbb082
Author: Harpreet Kataria <hkataria@redhat.com>
Date:   Fri Jun 30 18:21:58 2017 -0400

    Merge pull request #1637 from AparnaKarve/bz1466778_set_exp_value_to_valid_value
    
    Set Field value to a blank value to avoid crashes due to a nil value
    (cherry picked from commit ae3741ad66a56149b14aa67a30e17a110a18354a)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1478409

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