Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-910

support configuring jspwiki with envvars having dots replaced with underscores in the varnames

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.10.1
    • 2.10.1
    • Core & storage
    • None
    • jspwiki 2.10.1
      Linux / tomcat

    Description

      Currently you can configure jspwiki's behavior with java system properties and/or environment variables.
      These values take precedence over jspwiki property files.

      However, in some environments this is failing because many jspwiki properties have dots in their keynames (e.g. jspwiki.baseURL), and in a *nix shell environment, envvar names are not allowed to have dots in their name and can not be exported ("jspwiki.baseURL is not an identifier").

      I ran into this issue trying to deploy jspwiki with Apache brooklyn.

      The proposed solution is to replace dots with underscore, so you specify the envvar jspwiki_baseURL, and thereby set property jspwiki.baseURL.

      I will attach a patch.

      Attachments

        1. JSPWIKI-910.patch
          5 kB
          Harry Metske

        Activity

          People

            metskem Harry Metske
            metskem Harry Metske
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: