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 2024/09/02 14:00:38 UTC
(sling-site) 01/01: explain that empty strings are invalid alias values (see SLING-12399)
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch doc/SLING-12399
in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit 3394aa69d5e77a8da811bdd174c76e602a4d2899
Author: Julian Reschke <re...@apache.org>
AuthorDate: Mon Sep 2 16:00:30 2024 +0200
explain that empty strings are invalid alias values (see SLING-12399)
---
.../the-sling-engine/mappings-for-resource-resolution.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md b/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md
index 8b77a9449..f6d6c3da3 100644
--- a/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md
+++ b/src/main/jbake/content/documentation/the-sling-engine/mappings-for-resource-resolution.md
@@ -265,7 +265,7 @@ The String Interpolation works with any part of the etc-map tree.
The property `sling:alias` may be set on any resource to indicate an alias name for the resource. For example the resource `/content/visitors` may have the `sling:alias` property set to `besucher` allowing the resource to be addressed in an URL as `/content/besucher` as well as the original path `/content/visitors`. The property `sling:alias` may have multiple values. The first value is used for outgoing mapping, i.e. is the *preferred name* used in links generated by Sling.
-The following characters are not allowed in `sling:alias` values: `/?#`. Using any of those characters somewhere in the value makes Sling disregard the alias mapping. In addition both aliases `.` and `..` are invalid. Invalid aliases are logged with WARN level.
+The following characters are not allowed in `sling:alias` values: `/?#`. Using any of those characters somewhere in the value makes Sling disregard the alias mapping. In addition the aliases `.`, `..` and the empty string are invalid. Invalid aliases are logged with WARN level.
### Impact of Alias Handling
@@ -358,4 +358,4 @@ Note, that these node types only help setting the properties. The implementation
[1]: https://sling.apache.org/apidocs/sling12/org/apache/sling/api/resource/ResourceResolver.html#map-javax.servlet.http.HttpServletRequest-java.lang.String-
[2]: https://sling.apache.org/apidocs/sling12/org/apache/sling/api/resource/ResourceResolver.html#map-java.lang.String-
- [3]: https://sling.apache.org/apidocs/sling12/org/apache/sling/api/resource/mapping/ResourceMapper.html
\ No newline at end of file
+ [3]: https://sling.apache.org/apidocs/sling12/org/apache/sling/api/resource/mapping/ResourceMapper.html