[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1773) Unable to destroy instance customization

Ovidiu Nichifor (JIRA) jira-events at lists.jboss.org
Thu Oct 25 06:17:01 EDT 2007


Unable to destroy instance customization
----------------------------------------

                 Key: JBPORTAL-1773
                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1773
             Project: JBoss Portal
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Portal Core
    Affects Versions: 2.6.1 Final
         Environment: Fedora Core 7
JVM 1.5.0_12
JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339) (installed with jems-installer 1.2.0.GA with 'ejb3' profile)
JBoss Potal 2.6.1.GA

            Reporter: Ovidiu Nichifor
         Assigned To: Julien Viet


Create & place a window on a region of an ordinary page of your personal dashboard.
Make sure it is visible on your dashboard.
Destroy that window.
Recreate the window with the same name, content type, instance, page parent, region and order as before.

An error will appear in the console:
12:17:12,694 ERROR [AbstractInstance] Was not able to destroy local._4 for customization dashboard:/admin/sample/P, reason is : null
12:17:57,309 ERROR [AbstractInstance] Was not able to destroy local._3 for customization dashboard:/admin/sample/Preferences, reason is : null

It seems that when a window is destroyed the entries from 'JBP_PORTLET_STATE' table are deleted but the customization entry from 'JBP_INSTANCE_PER_USER' is not; this entry references an invalid portlet ref in the previous table.

Sample:

`JBP_PORTLET_STATE`
PK 	PORTLET_ID                    REGISTRATION_ID 	REGISTRATION_TIME 	TERMINATION_TIME 	PARENT_PK
1 	/portal-news-samples.NewsPortlet 	NULL 	2007-10-25 11:57:28 	NULL 	NULL

`JBP_INSTANCE_PER_USER`
PK 	INSTANCE_PK 	SER_STATE 	USER_ID 	PORTLET_REF
1 	16 	[BLOB - NULL] 	dashboard:/admin/default/Preferences 	local._2
2 	16 	[BLOB - NULL] 	dashboard:/admin/sample/Preferences 	local._3
3 	16 	[BLOB - NULL] 	dashboard:/admin/sample/P 	local._4

Your newly created window does exist in the 'OBJECT_NODE' table but the portal will NOT render it anymore, especially if you restart the AS. Done some more debug and ended up with a NoSuchPortletException which is as expected since the persistent state (local._X) is no longer valid.

Also, org.jboss.portal.core.impl.model.instance.AbstarctInstance#destroyCustomization does remove the customization state but does not delete the entry from 'JBP_INSTANCE_PER_USER'.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list