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

rombert pushed a commit to branch issue/SLING-13077
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-integration-tests.git

commit 400e94c9de62d4141c5aae18d6ac5aebeaa158b7
Author: Robert Munteanu <[email protected]>
AuthorDate: Tue Jan 27 14:17:08 2026 +0100

    SLING-13077 - ExportServlet cannot adapt model to javax 
SlingHttpServletRequest when running in a Jakarta Servlet environment
    
    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"));
+    }
 }

Reply via email to