You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by st...@apache.org on 2004/09/07 16:45:30 UTC
cvs commit: jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state SessionItemStateManager.java
stefan 2004/09/07 07:45:30
Modified: proposals/jcrri/src/org/apache/slide/jcr/core/state
SessionItemStateManager.java
Log:
jcrri: fixing bug that occurs when a previously removed node is later retrieved by uuid
Revision Changes Path
1.2 +6 -2 jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/SessionItemStateManager.java
Index: SessionItemStateManager.java
===================================================================
RCS file: /home/cvs/jakarta-slide/proposals/jcrri/src/org/apache/slide/jcr/core/state/SessionItemStateManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SessionItemStateManager.java 27 Aug 2004 09:28:48 -0000 1.1
+++ SessionItemStateManager.java 7 Sep 2004 14:45:30 -0000 1.2
@@ -176,8 +176,12 @@
*/
public ItemState getItemState(ItemId id)
throws NoSuchItemStateException, ItemStateException {
+ // first check if the specified item has been transiently removed
+ if (transientStateMgr.hasItemStateInAttic(id)) {
+ throw new NoSuchItemStateException(id.toString());
+ }
try {
- // first check if there's transient state for the specified item
+ // check if there's transient state for the specified item
return transientStateMgr.getItemState(id);
} catch (NoSuchItemStateException nsise) {
// check if there's persistent state for the specified item
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org