Bug 793424 (JBEPP-508)

Summary: duplicate portlet name between simplest-helloworld and idm-helloworld
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Prabhat Jha <prabhat.jha>
Component: unspecifiedAssignee: Thomas Heute <theute>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.0.1.GACC: epp-bugs
Target Milestone: ---   
Target Release: 5.1.0.ER04   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-508
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-08 18:26:16 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 Prabhat Jha 2010-09-24 16:26:26 UTC
project_key: JBEPP

Otherwise if you deploy both example .war, you get 

java.lang.IllegalArgumentException: Cannot create a content with a content id gatein-simplest-helloworld-1.0.0-GA-SNAPSHOT/SimplestHelloWorldPortlet with an existing different content id gatein-idm-helloworld-1.0.0-GA-SNAPSHOT/SimplestHelloWorldPortlet
	at org.exoplatform.application.registry.impl.CategoryDefinition.createContent(CategoryDefinition.java:132)
	at org.exoplatform.application.registry.impl.ApplicationRegistryServiceImpl.importAllPortlets(ApplicationRegistryServiceImpl.java:525)
	at org.exoplatform.applicationregistry.webui.component.UIApplicationOrganizer$ImportAllApplicationsActionListener.execute(UIApplicationOrganizer.java:270)
	at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
	at org.exoplatform.webui.core.lifecycle.Lifecycle.processAction(Lifecycle.java:56)
	at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)
	at org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle.processAction(UIApplicationLifecycle.java:58)
	at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:137)

Comment 1 Thomas Heute 2010-10-22 09:05:21 UTC
Will be fixed later, as it is part of the examples

Comment 2 Scott Mumford 2010-11-01 01:04:20 UTC
Thomas can you verify the proposed Release Notes Text when you resolve this issue, please?

Comment 3 Scott Mumford 2010-11-01 01:04:20 UTC
Release Notes Docs Status: Added: Not Yet Documented
Release Notes Text: Added: Projected Release Notes text:

A naming duplication in pre-packaged "Hello World" portlet examples would cause an Illegal Argument Exception when both of the  portlet examples were deployed.

This issues has been resolved by renaming the XYZ portlet to ABC.


Comment 4 Scott Mumford 2010-11-03 03:24:26 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue


Comment 5 Thomas Heute 2010-11-08 18:28:06 UTC
There are more than 2 portlets so it would be better to be more explicit.
A portlet-name duplication in "Simplest Hello World" and "IDM Hello World" examples would cause an Illegal Argument Exception when both of the portlet examples were deployed. 

Comment 6 Scott Mumford 2010-11-09 00:28:25 UTC
Thomas, what was the fix?
I assume one of the portlets was renamed, which one and to what? 
I need to update both the Release Notes and the appropriate core doc.

Comment 7 Scott Mumford 2010-11-09 00:28:26 UTC
Release Notes Text: Removed: Projected Release Notes text:

A naming duplication in pre-packaged "Hello World" portlet examples would cause an Illegal Argument Exception when both of the  portlet examples were deployed.

This issues has been resolved by renaming the XYZ portlet to ABC. Added: A naming duplication in the pre-packaged "Simplest Hello World" and "IDM Hello World" portlet examples caused an Illegal Argument Exception when both of the portlet examples were deployed.