Index: repository/engine/src/main/java/org/hippoecm/repository/jackrabbit/HippoLocalItemStateManager.java
===================================================================
*** repository/engine/src/main/java/org/hippoecm/repository/jackrabbit/HippoLocalItemStateManager.java (revision 24927)
--- repository/engine/src/main/java/org/hippoecm/repository/jackrabbit/HippoLocalItemStateManager.java (working copy)
***************
*** 251,257 ****
public void update()
throws ReferentialIntegrityException, StaleItemStateException, ItemStateException, IllegalStateException {
super.update();
! edit();
FilteredChangeLog tempChangeLog = filteredChangeLog;
filteredChangeLog = null;
parameterizedView = false;
--- 251,257 ----
public void update()
throws ReferentialIntegrityException, StaleItemStateException, ItemStateException, IllegalStateException {
super.update();
! forceEditMode();
FilteredChangeLog tempChangeLog = filteredChangeLog;
filteredChangeLog = null;
parameterizedView = false;
***************
*** 292,298 ****
return state;
if (id instanceof HippoNodeId) {
if (!virtualNodes.containsKey((NodeId)id)) {
! edit();
NodeState nodeState = (NodeState)state;
if (isEnabled()) {
nodeState = ((HippoNodeId)id).populate(currentContext, nodeState);
--- 292,298 ----
return state;
if (id instanceof HippoNodeId) {
if (!virtualNodes.containsKey((NodeId)id)) {
! forceEditMode();
NodeState nodeState = (NodeState)state;
if (isEnabled()) {
nodeState = ((HippoNodeId)id).populate(currentContext, nodeState);
***************
*** 315,321 ****
NodeState nodeState = (NodeState)state;
Name nodeTypeName = nodeState.getNodeTypeName();
if (virtualNodeNames.containsKey(nodeTypeName) && !virtualStates.contains(state)) {
! edit();
int type = isVirtual(nodeState);
if ((type & ITEM_TYPE_EXTERNAL) != 0) {
nodeState.removeAllChildNodeEntries();
--- 315,321 ----
NodeState nodeState = (NodeState)state;
Name nodeTypeName = nodeState.getNodeTypeName();
if (virtualNodeNames.containsKey(nodeTypeName) && !virtualStates.contains(state)) {
! forceEditMode();
int type = isVirtual(nodeState);
if ((type & ITEM_TYPE_EXTERNAL) != 0) {
nodeState.removeAllChildNodeEntries();
***************
*** 383,389 ****
if(virtualNodes.containsKey(id)) {
state = (NodeState) virtualNodes.get(id);
} else if(state == null && id instanceof HippoNodeId) {
! edit();
NodeState nodeState;
if (isEnabled()) {
nodeState = ((HippoNodeId)id).populate(currentContext);
--- 383,389 ----
if(virtualNodes.containsKey(id)) {
state = (NodeState) virtualNodes.get(id);
} else if(state == null && id instanceof HippoNodeId) {
! forceEditMode();
NodeState nodeState;
if (isEnabled()) {
nodeState = ((HippoNodeId)id).populate(currentContext);
Index: jackrabbit.patch
===================================================================
*** jackrabbit.patch (revision 24928)
--- jackrabbit.patch (working copy)
***************
*** 96,101 ****
--- 96,114 ----
}
/**
+ ***************
+ *** 246,251 ****
+ --- 250,259 ----
+ return editMode;
+ }
+
+ + public void forceEditMode() {
+ + editMode = true;
+ + }
+ +
+ /**
+ * {@inheritDoc}
+ */
Index: jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java
===================================================================
*** jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SharedItemStateManager.java (revision 923523)
***************
*** 272,278 ****
jackrabbit-core
Jackrabbit Core
! ! 1.5.7-h6
Jackrabbit content repository implementation
--- 285,291 ----
jackrabbit-core
Jackrabbit Core
! ! 1.5.7-h7
Jackrabbit content repository implementation
***************
*** 338,344 ****
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h6
test
--- 351,357 ----
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h7
test
***************
*** 359,365 ****
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h6
commons-logging
--- 372,378 ----
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h7
commons-logging
***************
*** 380,386 ****
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h6
org.slf4j
--- 393,399 ----
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h7
org.slf4j
***************
*** 401,407 ****
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h6
true
--- 414,420 ----
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h7
true
***************
*** 422,428 ****
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h6
test
--- 435,441 ----
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h7
test
***************
*** 443,449 ****
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h6
test
--- 456,462 ----
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h7
test
***************
*** 464,470 ****
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h6
commons-logging
--- 477,483 ----
org.apache.jackrabbit
jackrabbit-core
! ! 1.5.7-h7
commons-logging