Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1179765

Summary: Null pointer exception on non-modifying update of directory in configuration management
Product: Red Hat Satellite 5 Reporter: Matej Kollar <mkollar>
Component: WebUIAssignee: Jan Dobes <jdobes>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: lhellebr, pstudeni, tlestach
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:12:37 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:
Bug Depends On:    
Bug Blocks: 1358815    

Description Matej Kollar 2015-01-07 14:11:39 UTC
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.

Comment 1 Jan Dobes 2015-01-22 16:10:54 UTC
*** Bug 1183661 has been marked as a duplicate of this bug. ***

Comment 2 Jan Dobes 2015-01-23 13:16:23 UTC
fixed in spacewalk master:

7beded1c2d7d1248349186b29872d8a100d4b0b3

Comment 3 Jan Dobes 2015-01-23 13:21:10 UTC
possible improvement:

implement some check if binary file changed, currently new revision is created every time user clicks on "Update Configuration File" button

Comment 6 Lukáš Hellebrandt 2017-04-21 10:47:31 UTC
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.