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-test-services.git
commit 1915aafe62aef0a04d9ec77f117767873004abb8 Author: Robert Munteanu <[email protected]> AuthorDate: Tue Jan 27 14:06:40 2026 +0100 SLING-13077 - ExportServlet cannot adapt model to javax SlingHttpServletRequest when running in a Jakarta Servlet environment Allow the existing DummyModel to be exported. --- .../java/org/apache/sling/starter/testservices/models/DummyModel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/starter/testservices/models/DummyModel.java b/src/main/java/org/apache/sling/starter/testservices/models/DummyModel.java index 62c43ec..3510075 100644 --- a/src/main/java/org/apache/sling/starter/testservices/models/DummyModel.java +++ b/src/main/java/org/apache/sling/starter/testservices/models/DummyModel.java @@ -21,9 +21,11 @@ package org.apache.sling.starter.testservices.models; import javax.annotation.PostConstruct; import org.apache.sling.api.SlingHttpServletRequest; +import org.apache.sling.models.annotations.Exporter; import org.apache.sling.models.annotations.Model; -@Model(adaptables = SlingHttpServletRequest.class) +@Model(adaptables = SlingHttpServletRequest.class, resourceType = "sling/test/htl/model") +@Exporter(name = "jackson", extensions = "json") public class DummyModel { private String message;
