[
https://issues.apache.org/jira/browse/SLING-5978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Radu Cotescu resolved SLING-5978.
---------------------------------
Resolution: Fixed
Fixed in [r1758254|https://svn.apache.org/r1758254].
> 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)