[GitHub] incubator-hawq pull request #1256: HAWQ-1485. Fix exception of decryptPasswo...

2017-06-15 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-hawq/pull/1256


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-hawq pull request #1256: HAWQ-1485. fix exception of decryptPasswo...

2017-06-14 Thread interma
Github user interma commented on a diff in the pull request:

https://github.com/apache/incubator-hawq/pull/1256#discussion_r122109467
  
--- Diff: 
ranger-plugin/admin-plugin/src/main/java/org/apache/hawq/ranger/service/RangerServiceHawq.java
 ---
@@ -112,7 +119,7 @@ private void decryptPassword(Map 
configs) throws Exception {
 // when decrypt failed do nothing
 LOG.warn("decrypt_password failed: " + e);
 }
-configs.put("password", normal_password);
+configs.put("password_jdbc", normal_password);
--- End diff --

put the decrypted password into a new field, so it doesn't influence the 
BaseClient decrypt it again.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-hawq pull request #1256: HAWQ-1485. fix exception of decryptPasswo...

2017-06-14 Thread interma
GitHub user interma opened a pull request:

https://github.com/apache/incubator-hawq/pull/1256

HAWQ-1485. fix exception of decryptPassword twice in lookupResource()

In my earlier PR,  *decryptPassword()* is called in the beginning of 
*lookupResource()*, but *BaseClient* (a ranger lib) also need decrypt password 
in some situation, decrypt twice will cause a exception.

This PR fixed this issue. 

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/interma/interma-hawq hawq-1485

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-hawq/pull/1256.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1256


commit ee200369c80df50947571fb04b51684ec19f02be
Author: interma 
Date:   2017-06-14T10:22:50Z

HAWQ-1485. fix exception of decryptPassword twice in lookupResource()




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---