Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2282

Java Script Engine does not escape directory paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Scripting Java 2.0.0
    • Scripting Java 2.0.2
    • Scripting
    • None

    Description

      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"

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            tripod Tobias Bocanegra
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: