You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2016/08/26 14:49:20 UTC

[jira] [Updated] (SLING-5978) Make Sightly throw compilation errors when unknown data-sly-* plugins are used

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

Radu Cotescu updated SLING-5978:
--------------------------------
    Fix Version/s: Scripting Sightly Compiler 1.0.0
                   Scripting Sightly Engine 1.0.20

> Make Sightly throw compilation errors when unknown data-sly-* plugins are used
> ------------------------------------------------------------------------------
>
>                 Key: SLING-5978
>                 URL: https://issues.apache.org/jira/browse/SLING-5978
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting Sightly Compiler 1.0.0
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>            Priority: Minor
>             Fix For: Scripting Sightly Engine 1.0.20, Scripting Sightly Compiler 1.0.0
>
>
> The current version of the {{MarkupHandler#obtainPlugin}} \[0\] method throws an {{UnsupportedOperationException}} whenever an unknown {{data-sly-*}} plugin is used. Instead, the method should just generate an error in the AST stream.
> \[0\] - https://github.com/apache/sling/blob/1aa2c8be782ecb858de9030501e67edc4aba1357/bundles/scripting/sightly/compiler/src/main/java/org/apache/sling/scripting/sightly/impl/html/dom/MarkupHandler.java#L403



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