Bug 549391 - ISE when audit searching without any machine information
Summary: ISE when audit searching without any machine information
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 0.8
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space08
TreeView+ depends on / blocked
 
Reported: 2009-12-21 15:07 UTC by Tomas Lestach
Modified: 2010-02-16 12:59 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-16 12:56:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Tomas Lestach 2009-12-21 15:07:58 UTC
Description of problem:
When having no machine audit information in systemlogs, getting ISE, when audit search is triggered

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

How reproducible:
always

Steps to Reproduce:
1. Make sure, you have no subdirectories in /var/satellite/systemlogs/
2. Navigate to WebUI - Audit - Search
3. Press search button
  
Actual results:
ISE with following traceback:
java.lang.NullPointerException
        at com.redhat.rhn.manager.audit.AuditManager.getAuditLogs(AuditManager.java:100)
        at com.redhat.rhn.frontend.action.audit.AuditSearchAction.execute(AuditSearchAction.java:218)
...

Expected results:
No ISEs, no exceptions.

Comment 1 Tomas Lestach 2009-12-21 15:14:35 UTC
Just adding a check for a null return value.

spacewalk.git: 4531e96e8a2d5b6bed5c9598e9d8810932310f8d

Comment 2 Michael Mráka 2010-02-16 12:59:22 UTC
Spacewalk 0.8 has been released


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