You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by re...@apache.org on 2026/09/03 11:42:14 UTC

(sling-org-apache-sling-resourceresolver) branch SLING-13327 updated: SLING-13327: add metrics related to observation events related to vanity paths and aliases - fix VP handling

This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch SLING-13327
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resourceresolver.git


The following commit(s) were added to refs/heads/SLING-13327 by this push:
     new 63d9c327 SLING-13327: add metrics related to observation events related to vanity paths and aliases - fix VP handling
63d9c327 is described below

commit 63d9c3273ffca44b3c2638aed1a2c135723b2793
Author: Julian Reschke <ju...@gmx.de>
AuthorDate: Thu Sep 3 12:42:03 2026 +0100

    SLING-13327: add metrics related to observation events related to vanity paths and aliases - fix VP handling
---
 .../java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java b/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
index b515b4d9..a26bf1cf 100644
--- a/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
+++ b/src/main/java/org/apache/sling/resourceresolver/impl/mapping/MapEntries.java
@@ -207,7 +207,7 @@ public class MapEntries implements MapEntriesHandler, ResourceChangeListener, Ex
                     aliasAdded = ah.doAddAlias(resource);
                 }
                 if (ctx.forVanityPath) {
-                    vanityPathAdded = ctx.forAlias && ah.doAddAlias(resource);
+                    vanityPathAdded = vph.doAddVanity(resource);
                 }
                 return vanityPathAdded || aliasAdded;
             } else {