You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Assigned) (JIRA)" <ji...@apache.org> on 2011/11/15 10:11:51 UTC
[jira] [Assigned] (SLING-2282) Java Script Engine does not escape
directory paths
[ https://issues.apache.org/jira/browse/SLING-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler reassigned SLING-2282:
---------------------------------------
Assignee: Carsten Ziegeler
> Java Script Engine does not escape directory paths
> --------------------------------------------------
>
> Key: SLING-2282
> URL: https://issues.apache.org/jira/browse/SLING-2282
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Java 2.0.0
> Reporter: Tobias Bocanegra
> Assignee: Carsten Ziegeler
> Priority: Minor
>
> If you have a java servlet on a path that contains a hyphen, the java script engine does not escape it properly.
> eg:
> servlet on: /apps/myproject/components/my-component/img.png.java,
> the package should be "apps.myproject.components.my_components"
> class name: "img_png"
> but when compiling it reports:
> Compilation errors in
> /apps/geometrixx/myproject/my-component/img.png.java:
> Line 13, column 415 : The declared package
> "apps.myproject.components.my_component" does not match the expected package
> "apps.myproject.components.my-component"
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira