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

kwin pushed a commit to branch http-whiteboard-and-sling
in repository https://gitbox.apache.org/repos/asf/sling-site.git

commit 5cf96aa78ad3de7640c341089d5b2c0f41a2369d
Author: Konrad Windszus <[email protected]>
AuthorDate: Wed Apr 12 08:58:52 2023 +0200

    Clarify usage of OSGi HTTP Whiteboard with Sling
    
    This outlines the limitations discovered in SLING-11677
---
 src/main/jbake/content/documentation/the-sling-engine/servlets.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/main/jbake/content/documentation/the-sling-engine/servlets.md 
b/src/main/jbake/content/documentation/the-sling-engine/servlets.md
index f25c3484b..661ecfda7 100644
--- a/src/main/jbake/content/documentation/the-sling-engine/servlets.md
+++ b/src/main/jbake/content/documentation/the-sling-engine/servlets.md
@@ -316,3 +316,8 @@ If a resource type has no explicit resource super type, the 
resource super type
 ## Error Handler Servlet(s) or Scripts
 
 Error handling support is described on the 
[Errorhandling](/documentation/the-sling-engine/errorhandling.html) page.
+
+## OSGi HTTP Whiteboard Servlets
+
+For certain edge cases even in an OSGi runtime running Sling certain servlets 
are still registered leveraging the [OSGi HTTP 
Whiteboard](https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.http.whiteboard.html)
 instead of leveraging the Sling servlet registration outlined above.
+Note though, that whenever the Sling engine bundle is deployed it registers a 
Servlet with the OSGi HTTP Whiteboard for path `/` which will take precedence 
by default over all other servlets registered through OSGi Http Whiteboad 
leveraging the *default* servlet context 
(SLING-11677)[https://issues.apache.org/jira/browse/SLING-11677]. Therefore, 
all servlets registered via OSGi HTTP Whiteboard need to be registered with a 
custom context having a `service.ranking` higher than the one from [...]

Reply via email to