Burkhard Pauli created SLING-6346:
-------------------------------------
Summary: 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
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)