| Summary: | Portlet's context-root cannot contain slashes | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 5 | Reporter: | Bruno Machado <bmachado> |
| Component: | Portal | Assignee: | hfnukal <hfnukal> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.1.0.GA | CC: | epp-bugs |
| Target Milestone: | --- | ||
| Target Release: | 5.1.1.CR01 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/JBEPP-854 | ||
| Whiteboard: | context epp5 portlet | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-19 14:50:54 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: | |
|
Description
Bruno Machado
2011-03-16 00:18:38 UTC
Link: Added: This issue is related to GTNPORTAL-434 Link: Added: This issue is related to GTNPORTAL-1834 Link: Removed: This issue is related to GTNPORTAL-434 Help Desk Ticket Reference: Added: https://c.na7.visual.force.com/apex/Case_View?id=500A0000006kBBVIA2&sfdc.override=1 Steps to Reproduce: Removed: And this is also how the error can be reproduced, using $EPP_HOME/portletbridge/examples/seamEAR.ear:
1. Explode seamEAR.ear
2. Change context-root to contain a slash '/':
<module>
<web>
<web-uri>seamBookingPortlet.war</web-uri>
<context-root>/oag/ade</context-root>
</web>
</module>
3. Deploy the application
4. Start the server
5. Import all applications
6. Add the seamBookingPortlet to a new page:
11:59:46,926 ERROR [STDERR] org.gatein.pc.api.NoSuchPortletException: No such portlet /oag.ade
11:59:46,926 ERROR [STDERR] at org.gatein.pc.portlet.container.ContainerPortletInvoker.getPortlet(ContainerPortletInvoker.java:99)
(If instead of importing all applications you try to add just the SeamBookingPortlet to a category, this already fails with a java.lang.NullPointerException.) Added: And this is also how the error can be reproduced, using $EPP_HOME/portletbridge/examples/seamEAR.ear:
1. Explode seamEAR.ear
2. Change context-root to contain a slash '/':
<module>
<web>
<web-uri>seamBookingPortlet.war</web-uri>
<context-root>/portalBookingDemo/demo</context-root>
</web>
</module>
3. Deploy the application
4. Start the server
5. Import all applications
6. Add the seamBookingPortlet to a new page:
11:59:46,926 ERROR [STDERR] org.gatein.pc.api.NoSuchPortletException: No such portlet /portalBookingDemo.demo
11:59:46,926 ERROR [STDERR] at org.gatein.pc.portlet.container.ContainerPortletInvoker.getPortlet(ContainerPortletInvoker.java:99)
(If instead of importing all applications you try to add just the SeamBookingPortlet to a category, this already fails with a java.lang.NullPointerException.)
Needs new PC version which is bets now so postponed. Backporting is possible. Upgrading PC is not necessary for this fix. Release Notes Text: Added: When slashes were used in context path of portlet, it caused error. Release Notes Docs Status: Added: Documented as Resolved Issue Release Notes Text: Removed: When slashes were used in context path of portlet, it caused error. Added: In previous versions of JBoss Enterprise Portal Platform, an error would be encountered when slashes were used in the context path of a portlet. This issue has been corrected in this release. Security: Removed: RHT+eXo Added: Public |