Bug 564538

Summary: Facelets error page when package's instructions VIEW link opened to a standalone window
Product: [Other] RHQ Project Reporter: Ondřej Žižka <ozizka>
Component: ContentAssignee: Stefan Negrea <snegrea>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: low    
Version: 1.3CC: cwelton, snegrea
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-02 03:16:13 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 683054, 565635    

Description Ondřej Žižka 2010-02-12 22:37:31 EST

1) Go to Tomcat (8080) > Tomcat VHost (localhost) > Tomcat WAR (/servlets-examples)
2) Follow to CONTENT > NEW
3) Upload any war
4) Now in the "Review Packages", there's a table with Instructions column.
   Open the link in new browser tab/window:
5) You'll get a Facelets error page with some stacktrace.

Even when relying on JavaScript, the links should either point to valid URLs, or some other element should be used. Using href="#" isn't enough in this case because the previous request was POST, thus no params are transferred.

Caused by: java.lang.IllegalStateException: Required request parameter 'id' is missing.
	at org.rhq.core.gui.util.FacesContextUtility.getRequiredRequestParameter(FacesContextUtility.java:106)
	at ...
Comment 1 Ondřej Žižka 2010-02-12 22:40:47 EST
The same happens when you leave JON for a while (e.g. to write a bug-report :) and then click the VIEW link: You are redirected to the login page, and then to the requested URL, which happens to be that parameter-less URL again.
Comment 2 wes hayutin 2010-02-16 11:52:26 EST
Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs.

new = Tracking + FutureFeature + SubBug
Comment 3 wes hayutin 2010-02-16 11:58:13 EST
making sure we're not missing any bugs in rhq_triage
Comment 4 Corey Welton 2010-02-16 15:24:53 EST
Should this be filed under Plugins?
Comment 8 Charles Crouch 2011-03-08 08:08:01 EST
Deploying content via the CONTENT > NEW tabs is not a supported deployment model. Deploying new apps should be done via the INVENTORY tab and the Create New dropdown
Comment 9 Stefan Negrea 2011-10-18 18:31:23 EDT
The old UI generates javascript for navigation. The code does not work because of the GWT integration and GWT navigation mechanism. Since the functionality described by the ticket is not supported anyway, I removed the View link (and associated text) from that component. 

I also removed a navigation link in the History -> Full Package Audit Trail -> View page because of similar behaviour.
Comment 10 Heiko W. Rupp 2013-09-02 03:16:13 EDT
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.