portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Watler (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Updated: (JS2-1015) Unattached portlet definitions left in DB after registry unit tests run
Date Mon, 18 May 2009 03:07:45 GMT

     [ https://issues.apache.org/jira/browse/JS2-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Randy Watler updated JS2-1015:
------------------------------

    Attachment: page-manager-ojb-collections.patch
                registry-ojb-collections.patch

Resolved this issue with attached registry-ojb-collections.patch: replaced all OM persistent
collections and lists with removal aware versions as done with DBPM component. Note, however,
that these collections are not synchronized, (the DBPM uses synchronized collections to protect
against concurrent modification exceptions). This patch contains the ability to switch implementations
if desired in the future.

The attached page-manager-ojb-collections.patch contains changes necessary to implement synchronized
collections that are also removal aware. This related problem was discovered while debugging
modifications for the registry component. The patch also upgrades the synchronization of page
manager OM collections to include collections loaded from the database, (only new collections
were synchronized previously). If this is not desired, omit the changes to page-manager-repository.xml
when applying patch.

 

> Unattached portlet definitions left in DB after registry unit tests run
> -----------------------------------------------------------------------
>
>                 Key: JS2-1015
>                 URL: https://issues.apache.org/jira/browse/JS2-1015
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Portlet Registry, Testing
>    Affects Versions: 2.2.0
>         Environment: J2 2.2 trunk
> JDK6/Linux/x86_64
>            Reporter: Randy Watler
>            Assignee: Randy Watler
>             Fix For: 2.2.1
>
>         Attachments: page-manager-ojb-collections.patch, registry-ojb-collections.patch
>
>
> Portlet definition clone tests fail to properly clean up after cloned portlet definition
is removed in unit tests. On the next unit test case invocation w/o clearing the database,
queries for all portlet definitions fail when orphaned portlet definitions w/o a portlet applications
are added to the registry cache and fail.
> Preliminary investigation indicates that the registry OM is not utilizing removal aware
collections for persistent collections, but the test cases are trying to remove persistent
members using operations on the transient collection implementations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message