Bug 1179765 - Null pointer exception on non-modifying update of directory in configuration management
Summary: Null pointer exception on non-modifying update of directory in configuration ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
: 1183661 (view as bug list)
Depends On:
Blocks: sat580-low
TreeView+ depends on / blocked
 
Reported: 2015-01-07 14:11 UTC by Matej Kollar
Modified: 2017-06-21 12:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:12:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.