You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2026/01/27 13:07:45 UTC

(sling-org-apache-sling-starter-test-services) branch issue/SLING-13077 created (now 1915aaf)

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

rombert pushed a change to branch issue/SLING-13077
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter-test-services.git


      at 1915aaf  SLING-13077 - ExportServlet cannot adapt model to javax SlingHttpServletRequest when running in a Jakarta Servlet environment

This branch includes the following new commits:

     new 1915aaf  SLING-13077 - ExportServlet cannot adapt model to javax SlingHttpServletRequest when running in a Jakarta Servlet environment

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(sling-org-apache-sling-starter-test-services) 01/01: SLING-13077 - ExportServlet cannot adapt model to javax SlingHttpServletRequest when running in a Jakarta Servlet environment

Posted by ro...@apache.org.
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 <ro...@apache.org>
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;