jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-468) Item.isSame() may return true for 2 nodes from different workspaces.
Date Thu, 22 Jun 2006 13:14:30 GMT
    [ http://issues.apache.org/jira/browse/JCR-468?page=comments#action_12417304 ] 

Stefan Guggisberg commented on JCR-468:

for the sake of correctness:

the quote in tobi's previous comment was extracted from a draft version of the next maintenance
release of the spec (jcr 1.0.1) which has yet to be finalized.

here's what the current spec has to say about Item#isSame(Item):

Returns true if this Item object (the Java object instance) represents the same actual repository
item as the object otherItem.This method does not compare the states of the two items. For
example, if two Item objects representing the same actual repository item have been retrieved
through two different sessions and one has been modified, then this method will still return
true when comparing these two objects. Note that if two Item objects representing the same
repository item are retrieved through the same session they will always reflect the same state
(see 7.1.3 Reflecting Item State) so comparing state is not an issue.A RepositoryException
is thrown if an error occurs. 

the current spec is obviously unclear about whether the workspace name has to be taken into
account or not.

as soon as jcr 1.0.1 has been finalized or we've reached consensus within the expert group
about this topic
i'll fix the the implementation in jackrabbit.

> Item.isSame() may return true for 2 nodes from different workspaces.
> --------------------------------------------------------------------
>          Key: JCR-468
>          URL: http://issues.apache.org/jira/browse/JCR-468
>      Project: Jackrabbit
>         Type: Bug

>   Components: JCR API
>     Versions: 1.0, 1.0.1, 1.1, 0.9
>     Reporter: Tobias Bocanegra
>     Assignee: Stefan Guggisberg

> the code in ItemImpl.isSame() only compares the item id, but not the source workspace.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message