You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by GitBox <gi...@apache.org> on 2018/09/18 07:21:34 UTC

[GitHub] asfgit closed pull request #12: Decode jira token

asfgit closed pull request #12: Decode jira token
URL: https://github.com/apache/ignite-teamcity-bot/pull/12
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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 static File resolveWorkDir() {
      * @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;
     }
 
     /**


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services