Bug 976827

Summary: Description text area in General properties tab under Alerts -> Definition is not getting set to blank one it has been edited. Instead it displays the previous value that was stored
Product: [JBoss] JBoss Operations Network Reporter: Varun Khurana <vkhurana>
Component: Monitoring - AlertsAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: low Docs Contact:
Priority: medium    
Version: JON 3.2CC: ckannan
Target Milestone: Alpha-x   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:37:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Varun Khurana 2013-06-21 14:53:27 UTC
Description of problem:
Description text area in General properties tab under RHQ Storage Nodes -> CassandraJVM -> Memory Subsystem -> Alerts -> Definition is not getting set to blank one it has been edited. Instead it displays the previous value that was stored before setting it to blank.

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


How reproducible:
always

Steps to Reproduce:
1. Go to  General properties tab under RHQ Storage Nodes -> CassandraJVM -> Memory Subsystem -> Alerts -> Definition
2. Click on any Alert definition. 
3. Click on Edit  button.
4. Change the value in 'Description' text area to some value. Click on Save.
5. Click on Edit button again. Change the value in 'Description' text area to blank.

Actual results:
It shows the previous value instead of blank in 'Description' text area

Expected results:
It should display blank in 'Description' text area.

Additional info:

Comment 1 Charles Crouch 2013-07-01 19:51:39 UTC
Per 7/1 BZ triage: target jon32

Jirka
If you *blank* out the description of an alert, we dont persist that empty field, instead the old value is maintained. If you edit the decription to have a new value, the new value is persisted. This is not Cassandra specific.

Comment 2 Jirka Kremser 2013-07-31 13:42:24 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=0db28524a
time:    2013-07-31 15:09:45 +0200
commit:  0db28524acf4160725c7b0101b7d923903ea93b0
author:  Jirka Kremser - jkremser
message: [BZ 976827] - Description text area in General properties tab under
         Alerts -> Definition is not getting set to blank one it has
         been edited. Instead it displays the previous value that was
         stored - setting an empty string if
         descriptionField.getValue() == null

Comment 3 Simeon Pinder 2013-08-26 15:36:27 UTC
Moving to ON_QA as available for testing in latest 3.2.x ALPHA 58 build:

https://brewweb.devel.redhat.com//buildinfo?buildID=291947