Bug 793424 (JBEPP-508) - duplicate portlet name between simplest-helloworld and idm-helloworld
Summary: duplicate portlet name between simplest-helloworld and idm-helloworld
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-508
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: unspecified
Version: 5.0.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0.ER04
Assignee: Thomas Heute
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-24 16:26 UTC by Prabhat Jha
Modified: 2012-02-28 16:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-08 18:26:16 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-508 0 None None None Never

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.



Note You need to log in before you can comment on or make changes to this bug.