Commit eca9d124 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

oomph: Fix redmine API key query.



* Undeclared variables shall not be used with oomph since they are
  demanded every time eclipse is started.
* Instead, use the "key" variable directly to demand the API key during
  the initial setup steps.
* The "PASSWORD" cannot be used since mylyn requires the API key in
  clear text and stores it as such. Thus, we are doomed to use the
  "STRING" variable type.

Issue-Ref: 3406
Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 4aec3127
...@@ -430,8 +430,13 @@ ...@@ -430,8 +430,13 @@
<setupTask <setupTask
xsi:type="setup:VariableTask" xsi:type="setup:VariableTask"
id="mylyn.tracker.api.key" id="mylyn.tracker.api.key"
type="STRING"
name="key" name="key"
value="${redmine.api.key}"/> defaultValue="000000000000000000000000"
storageURI="scope://Installation"
label="">
<description>Redmine API key. Should be set for fortiss AF3 developers to access the redmine issue tracker properly. Please see the installation instructions on how to obtain the key.</description>
</setupTask>
<setupTask <setupTask
xsi:type="setup:VariableTask" xsi:type="setup:VariableTask"
id="mylyn.serverUrl" id="mylyn.serverUrl"
...@@ -464,10 +469,10 @@ ...@@ -464,10 +469,10 @@
userID=""> userID="">
<query <query
summary="AF3" summary="AF3"
url="https://af3-developer.fortiss.org/issues.xml?key=${redmine.api.key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}"> url="https://af3-developer.fortiss.org/issues.xml?key=${key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}">
<attribute <attribute
key="param_key" key="param_key"
value="${redmine.api.key}"/> value="${key}"/>
<attribute <attribute
key="taskPrefix" key="taskPrefix"
value="${serverUrl}/issues/"/> value="${serverUrl}/issues/"/>
...@@ -486,10 +491,10 @@ ...@@ -486,10 +491,10 @@
</query> </query>
<query <query
summary="AF3 - mine" summary="AF3 - mine"
url="https://af3-developer.fortiss.org/issues.xml?key=${redmine.api.key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}&amp;amp;assigned_to=me"> url="https://af3-developer.fortiss.org/issues.xml?key=${key}&amp;amp;project_id=${projectId}&amp;amp;limit=${limit}&amp;amp;assigned_to=me">
<attribute <attribute
key="param_key" key="param_key"
value="${redmine.api.key}"/> value="${key}"/>
<attribute <attribute
key="taskPrefix" key="taskPrefix"
value="${serverUrl}/issues/"/> value="${serverUrl}/issues/"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment