Description of problem: When one presses "Update Configuration File", on page /rhn/configuration/file/FileDetails.do?cfid=1 (Configuration -> Configuration files -> some directory) while looking at directory (not file) and have not changed anything, he/she gets Null pointer exception. Version-Release number of selected component (if applicable): How reproducible: always/deterministic Steps to Reproduce: 1. create new config channel, in channel create $DIRECTORY 2. navigate to Configuration -> Configuration files -> $DIRECTORY 3. press "Update Configuration File" Actual results: Null pointer exception Expected results: Not much (well, nothing has changed...) Additional info: It works when for example permissions are changed.
*** Bug 1183661 has been marked as a duplicate of this bug. ***
fixed in spacewalk master: 7beded1c2d7d1248349186b29872d8a100d4b0b3
possible improvement: implement some check if binary file changed, currently new revision is created every time user clicks on "Update Configuration File" button
Verified with spacewalk-java-2.5.14-71 Used reproducer from OP. The exception is not thrown, nothing happens at all, which is correct. When modifying some info, it gets changed correctly.