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 2015/01/05 17:17:34 UTC

[jira] [Created] (SLING-4282) [Sightly] Fully qualified Use POJOs are not correctly identified in the repository

Radu Cotescu created SLING-4282:
-----------------------------------

             Summary: [Sightly] Fully qualified Use POJOs are not correctly identified in the repository
                 Key: SLING-4282
                 URL: https://issues.apache.org/jira/browse/SLING-4282
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: Radu Cotescu
             Fix For: Scripting Sightly Engine 1.0.0


Fully qualified POJOs in {{data-sly-use}} may not be correctly identified in the JCR repository if the paths where they are stored contain dashes or underscores due to Java class name restrictions.

The code used for detecting the location of classes that have underscores in their names should search for repository paths containing both "-" and "_".

Example:
{code:html}
<div data-sly-use.obj="apps.my_project.components.Pojo">...</div>
{code}

could identify the following paths:
# {{/apps/my_project/components/Pojo.java}}
# {{/apps/my-project/components/Pojo.java}}



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