[
https://issues.apache.org/jira/browse/SLING-7673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Munteanu resolved SLING-7673.
------------------------------------
Resolution: Fixed
Fix makes sense - nowhere do we guarantee that the
{{transformerConfigurations}} array is not null. Applied in
[sling-org-apache-sling-rewriter commit
ea03bf9|https://github.com/apache/sling-org-apache-sling-rewriter/commit/ea03bf9],
thanks [~lukegrover] for your contribution!
> slingwriter configuration not printing when transformers are empty
> ------------------------------------------------------------------
>
> Key: SLING-7673
> URL: https://issues.apache.org/jira/browse/SLING-7673
> Project: Sling
> Issue Type: Bug
> Environment: Running this as part of AEM 6.3 instance
> Symbolic Name: org.apache.sling.rewriter
> Version: 1.2.1.R1777332
> Reporter: Luke Grover
> Assignee: Robert Munteanu
> Priority: Minor
> Fix For: Rewriter 1.2.4
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When no transformer is specified the sling rewriter print configuartion
> response fails to complete normally. This prevents other configurations from
> displaying. So you end up with something like
>
> {code:java}
> Configuration no-transformer-test
> Name : no-transformer-test
> Content Types : [text/html]
> Order : 1
> Active : true
> Valid : true
> Process Error Response : true
> Pipeline :
> Generator :
> htmlparser : {includeTags=[Ljava.lang.String;@53a5f224}
> Transformers :
> {code}
> vs expected
> {code:java}
> Configuration no-transformer-test
> Name : no-transformer-test
> Content Types : [text/html]
> Order : 1
> Active : true
> Valid : true
> Process Error Response : true
> Pipeline :
> Generator :
> htmlparser : {includeTags=[Ljava.lang.String;@53a5f224}
> Transformers :
> Serializer :
> htmlwriter
> Resource path: /apps/sample/config/rewriter/no-transformer-test
> {code}
>
> Looks like it fails here when writing out configurations:
> [https://github.com/apache/sling-org-apache-sling-rewriter/blob/a40b7ffe18af122e1eeb09c1b32735d34a3d167d/src/main/java/org/apache/sling/rewriter/impl/ProcessorConfigurationImpl.java#L245]
> More notes from the [AEM side on their
> forum|https://forums.adobe.com/message/10387734] if needed.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)