This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-integration-tests.git
The following commit(s) were added to refs/heads/master by this push:
new 27406b1 SLING-13077 - ExportServlet cannot adapt model to javax
SlingHttpServletRequest when running in a Jakarta Servlet environment (#42)
27406b1 is described below
commit 27406b1b30130e5a09960a1e3a3d5f2a35fbfbfa
Author: Robert Munteanu <[email protected]>
AuthorDate: Tue Jan 27 15:44:27 2026 +0100
SLING-13077 - ExportServlet cannot adapt model to javax
SlingHttpServletRequest when running in a Jakarta Servlet environment (#42)
Add a disabled integration test demonstrating the problem
---
.../webapp/integrationtest/scripting/htl/HtlTest.java | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git
a/src/main/java/org/apache/sling/starter/webapp/integrationtest/scripting/htl/HtlTest.java
b/src/main/java/org/apache/sling/starter/webapp/integrationtest/scripting/htl/HtlTest.java
index 7fd75dd..75cf673 100644
---
a/src/main/java/org/apache/sling/starter/webapp/integrationtest/scripting/htl/HtlTest.java
+++
b/src/main/java/org/apache/sling/starter/webapp/integrationtest/scripting/htl/HtlTest.java
@@ -111,4 +111,19 @@ public class HtlTest extends HttpTestBase {
"Expected content to contain 'Request hash code:' followed by
a hash code",
content.matches("(?s).*Request hash code:\\s*\\d+.*"));
}
+
+ // enabled once SLING-13077 is fixed
+ public void disabledTestSlingModelExporterFromJavaxServlet() throws
IOException {
+
+ testClient.mkdirs(HTTP_BASE_URL, "/content/htl");
+
+ testClient.createNode(
+ HTTP_BASE_URL + "/content/htl/model-use-bean",
+ Collections.singletonMap("sling:resourceType",
"sling/test/htl/model"));
+
+ String content =
+ getContent(HTTP_BASE_URL +
"/content/htl/model-use-bean.model.json", CONTENT_TYPE_DONTCARE, null, 200);
+
+ assertTrue("Expected content to contain 'from-sling-model'",
content.contains("from-sling-model"));
+ }
}