You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Justin Edelson (JIRA)" <ji...@apache.org> on 2016/11/30 16:21:59 UTC

[jira] [Updated] (SLING-6346) Exporter always return null if related sling model is adapted from SlingHttpServletReqeust

     [ https://issues.apache.org/jira/browse/SLING-6346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Edelson updated SLING-6346:
----------------------------------
    Fix Version/s: Sling Models Impl 1.3.6

> Exporter always return null if related sling model is adapted from SlingHttpServletReqeust
> ------------------------------------------------------------------------------------------
>
>                 Key: SLING-6346
>                 URL: https://issues.apache.org/jira/browse/SLING-6346
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Sling Models Impl 1.3.4
>            Reporter: Burkhard Pauli
>            Assignee: Justin Edelson
>              Labels: easyfix
>             Fix For: Sling Models Impl 1.3.6
>
>
> The new exporter feature for Sling Models always return null if the adaptables is set to SlingHttpServletReqeust for the relevant Sling Model.
> Example:
> {code}
> @Model(adaptables = SlingHttpServletRequest.class,
>        adapters = TestModel.class,
>        resourceType = "core/wcm/components/test")
> @Exporter(name = "jackson",
>           extensions = "json")
> public class TestModel {
>     @ValueMapValue
>     private String test;
>     public String getTest() {
>         return test;
>     }
> }
> {code}
> Issue will be fixed with:
> https://github.com/apache/sling/pull/187



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)