You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Serge Huber (JIRA)" <ji...@apache.org> on 2017/02/15 16:35:41 UTC

[jira] [Resolved] (UNOMI-21) Make the default location configurable instead of hardcoded.

     [ https://issues.apache.org/jira/browse/UNOMI-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Serge Huber resolved UNOMI-21.
------------------------------
    Resolution: Fixed

Settings have been moved to configuration file :

org.apache.unomi.plugins.request.cfg

And the configuration documentation has been updated to document these settings.

> Make the default location configurable instead of hardcoded.
> ------------------------------------------------------------
>
>                 Key: UNOMI-21
>                 URL: https://issues.apache.org/jira/browse/UNOMI-21
>             Project: Apache Unomi
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.0.0-incubating, 1.1.0-incubating
>            Reporter: Serge Huber
>            Priority: Minor
>             Fix For: 1.2.0-incubating
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Currently in the file 
> /Users/loom/java/technologies/apache-git/incubator-unomi/plugins/request/src/main/java/org/apache/unomi/plugins/request/actions/SetRemoteHostInfoAction.java
> We have the following hardcoded location : 
> {code}
>                 session.setProperty("sessionCountryCode", "CH");
>                 session.setProperty("sessionCountryName", "Switzerland");
>                 session.setProperty("sessionCity", "Geneva");
>                 session.setProperty("sessionAdminSubDiv1", "GE");
>                 session.setProperty("sessionAdminSubDiv2", "2500");
>                 session.setProperty("sessionIsp", "Cablecom");
>                 Map<String, Double> location = new HashMap<String, Double>();
>                 location.put("lat", 46.1884341);
>                 location.put("lon", 6.1282508);
>                 session.setProperty("location", location);
>  {code}
> We should make this configurable using OSGi configuration



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)