Bug 484852

Summary: Internal Server Error when getting details from a package that is not in any channel
Product: [Community] Spacewalk Reporter: Santi Saez <santisaez>
Component: WebUIAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.4CC: cperry, jesusr
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: 2009-09-17 07:10:07 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: 456553    

Description Santi Saez 2009-02-10 10:45:54 UTC
I get a "Internal Server Error" in Spacewalk when:

Systems -> Software -> List / Remove -> Select a package

If selected package is not in any channel Spacewalk reports a "Internal Server Error" error.

Full catalina.out is available at:

http://pastebin.com/f377cd03a

And Apache log at:

http://pastebin.com/f44fc6551 

Using Spacewalk 0.4 + CentOS 5.2:

# rpm -qa spacewalk centos-release
spacewalk-0.4.2-3.el5
centos-release-5-2.el5.centos

Clifford Perry adds more info in the Spacewalk list [1]:

"The issue is that you have packages installed on a client system which do not have packages uploaded on the Spacewalk system. So you go look at the systems package profile, click on to select a specific package - this performs a DB lookup for more details. Sounds like we did not make a proper lookup on if we know details or not - get a Null (or empty data) and this results within the ISE. Other than uploading the package, no short term solution, or stop doing that - please file the bug and hopefully we can get it fixed."

[1] https://www.redhat.com/archives/spacewalk-list/2009-February/msg00192.html

Comment 1 Jesus M. Rodriguez 2009-03-26 04:00:05 UTC
fixed 9f17fb3f98a22685630be5b45ab3b32e9ae0720a

user taken to meaningful error pages instead of ISEs.
    Added a new Struts exception handler for NoSuchPackageException.
    Cleaned up PackageDetailsAction to handle errors and be better
    organized. PackageManager was not handling an empty DataResult which
    is a bad thing, now returns null which is handled by the caller.
    Added 2 negative tests for the changes made to PackageManager.

Comment 2 Jesus M. Rodriguez 2009-04-14 14:12:48 UTC
Spacewalk 0.5 released.

Comment 3 Miroslav Suchý 2009-09-17 07:10:07 UTC
Spacewalk 0.5 has been released for long time ago.