You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2015/12/07 18:20:11 UTC
[jira] [Created] (SLING-5358) Description for OSGi configuration of
org.apache.sling.servlets.resolver.SlingServletResolver
servletresolver.servletRoot is wrong
Konrad Windszus created SLING-5358:
--------------------------------------
Summary: Description for OSGi configuration of org.apache.sling.servlets.resolver.SlingServletResolver servletresolver.servletRoot is wrong
Key: SLING-5358
URL: https://issues.apache.org/jira/browse/SLING-5358
Project: Sling
Issue Type: Bug
Components: Servlets
Affects Versions: Servlets Resolver 2.3.10
Reporter: Konrad Windszus
Priority: Minor
The description of that property of the OSGi configuration says:
{quote}
The default root path assumed when registering a Servlet whose Servlet registration properties define a relative path. The default value is "/apps". This path should be part of the search path configured in the Resource Resolver Factory otherwise a thus registered servlet may not be found.
{quote}
https://github.com/apache/sling/blob/trunk/bundles/servlets/resolver/src/main/resources/OSGI-INF/metatype/metatype.properties#L36
The default value is actually 0 not "/apps" (https://github.com/apache/sling/blob/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java#L137).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)