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-models-impl.git

commit 624f8541fbfe00d4b9a7f5c51817af0e6b082dc9
Merge: 3ef0e23 b14addb
Author: Robert Munteanu <[email protected]>
AuthorDate: Wed Feb 11 18:56:48 2026 +0100

    SLING-13077 - ExportServlet cannot adapt model to javax 
SlingHttpServletRequest when running in a Jakarta Servlet environment (#77)
    
    - ensure that when accessing adaptables and we find a 
SlingHttpServletRequest.class there is also
    SlingJakartaHttpServletRequest.class present.
    - use SlingBindings instead of SlingBindings in the ExporterServlet. This 
allows BindingValueProvider
    instances to see the legacy 'request' and 'response' variables.
    - extend constructor matching in compatibility mode to match parameters of 
type
    SlingHttpServletRequest with adaptables of type 
SlingJakartaHttpServletRequest.

 .../apache/sling/models/impl/ExportServlet.java    | 12 ++--
 .../models/impl/LegacyAdaptablesExtender.java      | 64 ++++++++++++++++++++++
 .../sling/models/impl/ModelAdapterFactory.java     |  7 ++-
 .../models/impl/ModelPackageBundleListener.java    |  5 +-
 4 files changed, 77 insertions(+), 11 deletions(-)

Reply via email to