Bug 569456

Summary: [raw-config] in advanced mode with validations,trying to commit with wrong value ends up with 2 records a failure & a success in history
Product: [Other] RHQ Project Reporter: Preethi Thomas <pthomas>
Component: ConfigurationAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: high    
Version: 3.0.0CC: cwelton, jsanda
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-13 20:28:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 565628    
Attachments:
Description Flags
history page none

Description Preethi Thomas 2010-03-01 14:27:34 UTC
Description of problem:

If you commit a config in advanced  mode with an invalid value, the history has 2 records. A failure and a subsequent success. The success has a field with the invalid field as empty.

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


How reproducible:


Steps to Reproduce:
1.Login to RHQ with nsswitch plugin
2.go to configuration->advanced tab.
3.edit
4.enter an invalid value for the passwd (or any field)
5.commit
6. See in history.
  
Actual results:
a failure & a success for a config with invalid value

Expected results:
failure. commit should only be successful if the values are valid.


Additional info:
screen shot for history

Comment 1 Preethi Thomas 2010-03-01 14:28:12 UTC
Created attachment 397078 [details]
history page

Comment 2 Preethi Thomas 2010-03-01 15:34:21 UTC
Here is some more info on this.

The failure & then success for update happens for every commit you make if you edit the values to a valid or invalid entry.

Comment 3 Preethi Thomas 2010-03-02 19:04:28 UTC
With the raw-config test plugin
 go to structured and raw server
 click on Intentory->Connection
 set Fail raw update to yes (Fail raw validation is No)
 go to configuration->advanced tab
 edit
 change some value and commit.
 go to history page to see a failure record immediately followed by a success record.

Comment 4 Corey Welton 2010-09-13 20:28:03 UTC
close wontfix