Bug 564174 - Ugly Facelets exception page on URL with invalid resource ID.
Summary: Ugly Facelets exception page on URL with invalid resource ID.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: RHQ Project
Classification: Other
Component: Inventory
Version: 1.3
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: rhq_triage
TreeView+ depends on / blocked
 
Reported: 2010-02-11 22:50 UTC by Ondřej Žižka
Modified: 2010-09-30 13:58 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-09-30 13:58:06 UTC
Embargoed:


Attachments (Terms of Use)
JON invalid resource ID Facelets exception. (118.97 KB, text/html)
2010-02-11 22:51 UTC, Ondřej Žižka
no flags Details

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


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