Bug 822214
| Summary: | Richfaces kitchensink archetype - accessing wrong facelet is held in session and consequently accessing a correct one causes HTTP Status 500 | ||
|---|---|---|---|
| Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Juraj Huska <jhuska> |
| Component: | Examples, RichFaces | Assignee: | Brian Leathem <bleathem> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavol Pitonak <ppitonak> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 2.0.0.ER5 | CC: | bsutter, jpapouse, kpiwko, ppitonak, rruss |
| Target Milestone: | CR1 | ||
| Target Release: | 2.1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | rf-kitchensink | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-11-30 15:33:45 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Brian Leathem <bleathem> updated the status of jira RF-12254 to Resolved Brian Leathem <bleathem> made a comment on jira RF-12254 Added a resource look-up to the page bean to make sure the view exists Distributed as a part of WFK 2.1.0.GA release. |
Description of problem: When accessing wrong facelet on mobile device and consequently the right application context, then the HTTP Status 500 is returned with error message, which can be viewed in the attached screenshot. It is caused because the PageBean hold the wrong part of the URL in the session, public void setLocation(String location) { this.location = location; this.page = String.format("/mobile/%s.xhtml", location); } Note that I have tried to change the scope of the PageBean to RequestScoped, but then the list with members what not updated with the new created ones. It is noticeable only on mobile devices, as on desktop there is only one view. Version-Release number of selected component (if applicable): Richfaces 4.2.1.Final Steps to Reproduce: 1. load application from generated kitchensink archetype 2 go to List Members view 3. you should be on the URL: http://your.ip.address:8080/contextRoot/#list 4. go to the wrong URL http://your.ip.address:8080/contextRoot/#lis 5. go to the correct URL http://your.ip.address:8080/contextRoot/ and see that 500 is returned