Bug 564174

Summary: Ugly Facelets exception page on URL with invalid resource ID.
Product: [Other] RHQ Project Reporter: Ondřej Žižka <ozizka>
Component: InventoryAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 1.3CC: cwelton
Target Milestone: ---Keywords: SubBug
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-30 13:58:06 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: 565628    
Attachments:
Description Flags
JON invalid resource ID Facelets exception. none

Description Ondřej Žižka 2010-02-11 22:50:20 UTC
Description of problem:
=======================

The following exception causes Facelets to show their ugly Exception screen. It should be caught and handled gracefully.

--------------------
Caused by: org.rhq.enterprise.server.resource.ResourceNotFoundException: A resource with id 10251 does not exist in inventory.
	at org.rhq.enterprise.server.resource.ResourceManagerBean.getResourceById(ResourceManagerBean.java:518)
--------------------

Btw the same problem is in EmbJopr.

Steps to Reproduce:
===================

Basically, any request to non-existent ID causes this. E.g. browser's back button or history or bookmarks may contain URLs causing this when the resource is deleted.

Expected behavior:
==================

Normal JON page should appear saying that user is trying to reach a resource which was removed.

Comment 1 Ondřej Žižka 2010-02-11 22:51:20 UTC
Created attachment 390379 [details]
JON invalid resource ID Facelets exception.

Comment 2 Ondřej Žižka 2010-02-11 22:53:30 UTC
Facelets header is:  (or similar)

Cant instantiate class: org.rhq.enterprise.gui.inventory.resource.ResourceUIBean.  /rhq/resource/layout/main.xhtml @81,60 test="#{ResourceUIBean.facets.callTime}

Comment 3 wes hayutin 2010-02-16 16:53:00 UTC
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

keyword:
new = Tracking + FutureFeature + SubBug

Comment 4 wes hayutin 2010-02-16 16:58:32 UTC
making sure we're not missing any bugs in rhq_triage

Comment 5 Corey Welton 2010-09-30 13:58:06 UTC
closing per gwt efforts