This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d9ee12  decode jira token - Fixes #12.
4d9ee12 is described below

commit 4d9ee1263c6d96ba50e0e4f69caf79cf8843afd5
Author: Dmitrii Ryabov <[email protected]>
AuthorDate: Tue Sep 18 10:21:12 2018 +0300

    decode jira token - Fixes #12.
    
    Signed-off-by: Dmitriy Pavlov <[email protected]>
---
 .../src/main/java/org/apache/ignite/ci/HelperConfig.java          | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/HelperConfig.java 
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/HelperConfig.java
index 01d6277..181afcb 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/HelperConfig.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/HelperConfig.java
@@ -149,12 +149,14 @@ public class HelperConfig {
      * @return Null or decoded auth token for Github.
      */
     @Nullable static String prepareJiraHttpAuthToken(Properties props) {
-        String pwd = props.getProperty(JIRA_AUTH_TOKEN);
+        String tok = props.getProperty(JIRA_AUTH_TOKEN);
 
-        if (isNullOrEmpty(pwd))
+        if (isNullOrEmpty(tok))
             return null;
 
-        return pwd;
+        tok = PasswordEncoder.decode(tok);
+
+        return tok;
     }
 
     /**

Reply via email to