Red Hat Bugzilla – Bug 563987
[raw-config]Commits fails to check if the file is actually changed or not and commits even without changes.
Last modified: 2010-09-13 16:24:55 EDT
Description of problem:
Commits fails to check if the file is actually changed or not and commits even without changes.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Login to RHQ server with agent running
2. Select the any of the resources from the test plugin
3. Click on the configure tab
4. Click on Edit
5.do not change anything and click on commit
It saves over & over again when you click on commit even if nothing has changed (jsanda: There are two issues here. The first is navigation which has been resolved. The second is that committing from raw mode when no changes have been made still allows you to perform an update.
It used behave correctly From structured . no update will happen if there are no changes and this is the expected behavior).
Commit should check if the files are actually changed. No update will happen if there are no changes and this is the expected behavior.
After a bit of investigation and some testing with the raw-config-test plugin, no commit happens neither for RawServer (which supports raw only) nor for StructuredServer (which supports structured only) when the configuration has not been changed.
If you try to update StructuredAndRawServer (supports structured and raw) from the structured tab without having clicked on the raw tab, no commit happens. If you click on the raw tab though, which results in a translation operation, then try to update without modifying the configuration, a commit will happen. If however you go directly to the raw tab, bypassing translation, then you will get the expected results. You can go directly to the raw tab by submitting a GET for /rhq/resource/configuration/edit.xhtml?id=<resource_id>&tab=raw
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.
new = Tracking + FutureFeature + SubBug
making sure we're not missing any bugs in rhq_triage
This may actually be a bug in the test plugin itself. The execution path for determing whether or not the config has actually changed is the same regardless of the configuration format, be it structured, raw, or both. And I am only seeing this with the Structured and Raw Server from the test plugin.
Preethi, have you observed this for other resources?
Closing as Wontfix