Bug 549391

Summary: ISE when audit searching without any machine information
Product: [Community] Spacewalk Reporter: Tomas Lestach <tlestach>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-16 12:56:16 UTC Type: ---
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: 543511    

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