Skip to content

Commit

Permalink
HHQ-5972 I18N:Non-ASCII user name cannot connect via HQAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaron Borenstein committed Feb 16, 2014
1 parent 85b0291 commit 8e42c0f
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Changes in HQApi 6.0.2
*) [HHQ-5972] I18N:Non-ASCII user name cannot connect via HQAPI

Changes in HQApi 6.0.1
*) [HQ-4531] Added policy permissions to available operations for roles

Expand Down
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ http://hudson.hyperic.com/

Version compatibility guide:

HQApi 6.0.2 -> HQ 5.8.1
HQApi 6.0.1 -> HQ 5.8
HQApi 5.x -> HQ 4.6
HQApi 4.x -> HQ 4.5
Expand Down
2 changes: 1 addition & 1 deletion hqapi1-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.hyperic.hq.hqapi</groupId>
<artifactId>parent</artifactId>
<version>6.0.1</version>
<version>6.0.2</version>
</parent>

<artifactId>hqapi1-client</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hqapi1-integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.hyperic.hq.hqapi</groupId>
<artifactId>parent</artifactId>
<version>6.0.1</version>
<version>6.0.2</version>
</parent>

<artifactId>hqapi1-integration-tests</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hqapi1-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.hyperic.hq.hqapi</groupId>
<artifactId>parent</artifactId>
<version>6.0.1</version>
<version>6.0.2</version>
</parent>

<artifactId>hqapi1-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hqapi1-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.hyperic.hq.hqapi</groupId>
<artifactId>parent</artifactId>
<version>6.0.1</version>
<version>6.0.2</version>
</parent>

<artifactId>hqapi1-tools</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hqapi1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.hyperic.hq.hqapi</groupId>
<artifactId>parent</artifactId>
<version>6.0.1</version>
<version>6.0.2</version>
</parent>

<artifactId>hqapi1</artifactId>
Expand Down
3 changes: 3 additions & 0 deletions hqapi1/src/main/java/org/hyperic/hq/hqapi1/HQConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import org.apache.http.NameValuePair;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.auth.params.AuthPNames;
import org.apache.http.client.AuthCache;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
Expand Down Expand Up @@ -376,6 +377,8 @@ private <T> T runMethod(HttpRequestBase method, String uri, ResponseHandler<T> r
localContext.setAttribute(ClientContext.AUTH_CACHE, authCache);

method.getParams().setParameter(ClientPNames.HANDLE_AUTHENTICATION, true);

method.getParams().setParameter(AuthPNames.CREDENTIAL_CHARSET, "UTF-8");

// Disable re-tries
client.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(0, true));
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.hyperic.hq.hqapi</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>6.0.1</version>
<version>6.0.2</version>
<name>Hyperic HQAPI - Parent</name>

<properties>
Expand Down

0 comments on commit 8e42c0f

Please sign in to comment.