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

webapp deployment: properties in sling.properties overrule web.xml init parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Launchpad Base 2.5.6
    • Launchpad Base 2.5.8
    • Launchpad
    • None

    Description

      The documentation [1] explictly states, that any parameter in the web.xml will overwrite the variable with the same in sling.properties.

      But looking at the code in Sling.java, I find, that into the init() method the parameters from the web.xml are passed in via the propOverwrite map. This map is first applied, and then the sling.properties (if available) is read and applied.
      This violates both the documentation on site [1] and also the javadoc of the class.

      The impact can be rather huge, as it isn't possible to update parameters which are stored in the sling.properties already with a new version of the web,xml contained in the WAR file. But we need to update the sling.properties file manually.

      [1] http://sling.apache.org/documentation/the-sling-engine/the-sling-launchpad.html#servlet-parameters

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: