This is an automated email from the ASF dual-hosted git repository.
baedke pushed a commit to branch OAK-11516
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/OAK-11516 by this push:
new 57005e0865 OAK-11516:
org.apache.jackrabbit.oak.jcr.observation.QueuingHandler uses paths where names
are expected
57005e0865 is described below
commit 57005e086501060bd99b4ab68f3b873094e3e6b6
Author: Manfred Baedke <[email protected]>
AuthorDate: Fri Feb 21 14:40:26 2025 +0100
OAK-11516: org.apache.jackrabbit.oak.jcr.observation.QueuingHandler uses
paths where names are expected
Fixed.
---
.../jackrabbit/oak/jcr/observation/EventFactory.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git
a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventFactory.java
b/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventFactory.java
index f8409633f7..b708e8cf1b 100644
---
a/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventFactory.java
+++
b/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/EventFactory.java
@@ -212,7 +212,7 @@ public class EventFactory {
@Override
public Map<?, ?> getInfo() {
Map<Object, Object> builder = new HashMap<>();
- builder.put("srcChildRelPath", mapper.getJcrName(name));
+ builder.put("srcChildRelPath", mapper.getJcrPath(itemPath));
builder.put("destChildRelPath", mapper.getJcrName(destName));
builder.putAll(createInfoMap(primaryType, mixinTypes));
return Collections.unmodifiableMap(builder);
@@ -242,18 +242,18 @@ public class EventFactory {
/**
* Path of the parent node of the item this event is about.
*/
- private final String parent;
+ private final String parentPath;
/**
* Name of the item this event is about.
*/
- protected final String name;
+ protected final String itemPath;
private final String identifier;
- EventImpl(String parent, String name, String identifier) {
- this.parent = parent;
- this.name = name;
+ EventImpl(String parentPath, String itemPath, String identifier) {
+ this.parentPath = parentPath;
+ this.itemPath = itemPath;
this.identifier = identifier;
}
@@ -262,7 +262,7 @@ public class EventFactory {
@Override
public String getPath() {
return PathUtils.concat(
- mapper.getJcrPath(parent), mapper.getJcrName(name));
+ mapper.getJcrPath(parentPath),
mapper.getJcrPath(itemPath));
}
@Override