You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Harry Metske (JIRA)" <ji...@apache.org> on 2015/08/20 21:33:45 UTC

[jira] [Created] (JSPWIKI-910) support configuring jspwiki with envvars having dots replaced with underscores in the varnames

Harry Metske created JSPWIKI-910:
------------------------------------

             Summary: support configuring jspwiki with envvars having dots replaced with underscores in the varnames
                 Key: JSPWIKI-910
                 URL: https://issues.apache.org/jira/browse/JSPWIKI-910
             Project: JSPWiki
          Issue Type: Improvement
          Components: Core & storage
    Affects Versions: 2.10.1
         Environment: jspwiki 2.10.1
Linux / tomcat 
            Reporter: Harry Metske
            Assignee: Harry Metske


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)