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

Sightly generated Java classes for component scripts might not run correctly if the Sightly engine is updated on the instance

    XMLWordPrintableJSON

Details

    Description

      When upgrading the Sightly scripting engine on a Sling instance the engine will not recompile Java classes generated for component scripts unless the component scripts are modified or the Java classes are manually deleted from the org.apache.sling.commons.fsclassloader bundle's data folder.

      This can lead to issues during those classes' execution since the engine's internals might change from one version to the other.

      The Sightly scripting engine should generate its Java classes similar to the JSP scripting engine, by prefixing the classes' packages with a Sightly specific package name (e.g. org.apache.sling.scripting.sightly) and wipe this file-system backed folder upon startup if the classes were generated by a previous version of the engine.

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: