You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2018/03/08 15:36:00 UTC

[jira] [Created] (SLING-7538) Request attribute not correctly reset

Konrad Windszus created SLING-7538:
--------------------------------------

             Summary: Request attribute not correctly reset
                 Key: SLING-7538
                 URL: https://issues.apache.org/jira/browse/SLING-7538
             Project: Sling
          Issue Type: Bug
          Components: Scripting
    Affects Versions: Scripting HTL Engine 1.0.48-1.3.1
            Reporter: Konrad Windszus


The option `requestAttributes` introduced with SLING-5812 does not correctly reset the request attributes after the request dispatcher returned. The reason for that is that https://github.com/apache/sling-org-apache-sling-scripting-sightly/blob/3b50f91c4f600081f0585e50dfb775c4b2856b89/src/main/java/org/apache/sling/scripting/sightly/impl/engine/extension/ResourceRuntimeExtension.java#L115 does only reset those reset attributes which have been previously attached to the request. In fact also all attributes which have been added initially through the `requestAttributes` option need to be removed as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)