Red Hat Bugzilla – Bug 557260
Hit enter key in URL bar while on rhq/resource/configuration/edit.xhtml causes stack trace
Last modified: 2010-08-12 12:49:53 EDT
Description of problem: Hit enter key in URL bar while on
rhq/resource/configuration/edit.xhtml causes stack trace
Version-Release number of selected component (if applicable):
How reproducible: Always
Steps to Reproduce:
1. Navigate to a copoent with an editable configuration
2. Make some change to the configuration the requires a form submit
3. One the URL bar no longer has the parameter id= in it, hit return.
An Error Occurred:
Cant instantiate class: org.rhq.enterprise.gui.inventory.resource.ResourceUIBean.
See the previously edited resource component
This happens because the Resource ID is a request scoped parameter, and is not saved as a session cookie. For a form submit, the param ID is sent as a post parameter, but when hitting enter in the URL bar, it goes in as a ghet parameter. This makes it very easy to break the site. Fixing this will stablize several other pages as well, where ID currently must be passed explicitly.
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.
new = Tracking + FutureFeature + SubBug
making sure we're not missing any bugs in rhq_triage
Marking this as fixed. Jhon has changed the URL scheme such that we always show the resourceID. Thus, we can't get into the stack trace state without hacking the url directly. T
QA Verified, don't seem to be getting stuck in a state where the URL no longer references resource, so this doesn't occur anymore. It can still occur if someone visits the URL directly, i.e., removing resource or just entering the URL manually, but that's an edge case.
Mass-closure of verified bugs against JON.