You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bu...@apache.org on 2016/04/20 07:10:08 UTC

svn commit: r986138 - in /websites/staging/sling/trunk/content: ./ documentation/the-sling-engine/mappings-for-resource-resolution.html

Author: buildbot
Date: Wed Apr 20 05:10:08 2016
New Revision: 986138

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/the-sling-engine/mappings-for-resource-resolution.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Apr 20 05:10:08 2016
@@ -1 +1 @@
-1739956
+1740049

Modified: websites/staging/sling/trunk/content/documentation/the-sling-engine/mappings-for-resource-resolution.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/the-sling-engine/mappings-for-resource-resolution.html (original)
+++ websites/staging/sling/trunk/content/documentation/the-sling-engine/mappings-for-resource-resolution.html Wed Apr 20 05:10:08 2016
@@ -117,7 +117,10 @@ h2:hover > .headerlink, h3:hover > .head
 <div class="toc">
 <ul>
 <li><a href="#configuration">Configuration</a><ul>
-<li><a href="#properties">Properties</a></li>
+<li><a href="#properties">Properties</a><ul>
+<li><a href="#limitation-of-slingalias-for-principal-with-a-limited-access">Limitation of sling:alias for Principal with a limited access</a></li>
+</ul>
+</li>
 <li><a href="#node-types">Node Types</a></li>
 </ul>
 </li>
@@ -151,6 +154,15 @@ That way you can even make it <a href="/
 <li><code>sling:internalRedirect</code> &ndash; This property when set on a node in the <code>/etc/map</code> tree (see below) causes the current path to be modified internally to continue with resource resolution.</li>
 <li><code>sling:alias</code> &ndash; The property may be set on any resource to indicate an alias name for the resource. For example the resource <code>/content/visitors</code> may have the <code>sling:alias</code> property set to <code>besucher</code> allowing the resource to be addressed in an URL as <code>/content/besucher</code>.</li>
 </ul>
+<h4 id="limitation-of-slingalias-for-principal-with-a-limited-access">Limitation of <code>sling:alias</code> for Principal with a limited access<a class="headerlink" href="#limitation-of-slingalias-for-principal-with-a-limited-access" title="Permanent link">&para;</a></h4>
+<p>Assuming there is</p>
+<ul>
+<li>An User named <code>testuser</code></li>
+<li>An ACE with deny <code>jcr:all</code> in <code>/</code> for <code>everyone</code></li>
+<li>An ACE with allow <code>jcr:read</code> in <code>/content</code> for <code>testuser</code></li>
+</ul>
+<p>If the <code>sling:alias</code> property (e.g. <code>myalias</code>) is set directly in <code>/content</code>, the User <code>testuser</code> will not be able to address the resource <code>/content</code> in an URL as <code>/myalias</code>.
+Instead if the <code>sling:alias</code> property is set in any resource under <code>/content</code> (e.g. <code>/content/visitors</code>) the <code>sling:alias</code> feature will work as usual.</p>
 <h3 id="node-types">Node Types<a class="headerlink" href="#node-types" title="Permanent link">&para;</a></h3>
 <p>To ease with the definition of redirects and aliases, the following node types are defined:</p>
 <ul>
@@ -400,7 +412,7 @@ The bloom filter is handled automaticall
 <h2 id="debugging-issues">Debugging Issues<a class="headerlink" href="#debugging-issues" title="Permanent link">&para;</a></h2>
 <p>Use the Felix Web Console Plugin provided at <code>/system/console/jcrresolver</code> to inspect both the mapping and the resolver map entries. Also you can check what either <code>ResourceResolver.map(...)</code> or <code>ResourceResolver.resolve(...)</code> would return for a given URL/path.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1739956 by kwin on Tue, 19 Apr 2016 16:12:44 +0000
+        Rev. 1740049 by asanso on Wed, 20 Apr 2016 05:09:50 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project