summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Kelly <doug.kelly@garmin.com>2013-06-28 10:56:18 -0500
committerDoug Kelly <doug.kelly@garmin.com>2013-06-28 15:56:03 -0500
commit36cf5c0ce9a4c270ccbe76efcce25e66e15d7a4a (patch)
tree6018ee4a143dc698d7087b61395d62d71308b8e0
parent1238ef7a48059257b817b2221aca27696ece05cb (diff)
Correct URL encoding with REST API
According to the REST API, the GroupInfo structure has the group UUID and owner UUIDs URL encoded, with space replaced by a "+". This corrects the GWT frontend to match this behavior. Change-Id: If239a7f9abd9d5a0d677dd2f82dc1e60b711c2a6
-rw-r--r--gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupInfo.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupInfo.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupInfo.java
index 3b4abe5888..f52999020a 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupInfo.java
+++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/groups/GroupInfo.java
@@ -26,7 +26,7 @@ public class GroupInfo extends JavaScriptObject {
}
public final AccountGroup.UUID getGroupUUID() {
- return new AccountGroup.UUID(URL.decodePathSegment(id()));
+ return new AccountGroup.UUID(URL.decodeQueryString(id()));
}
public final native String id() /*-{ return this.id; }-*/;
@@ -46,13 +46,13 @@ public class GroupInfo extends JavaScriptObject {
public final AccountGroup.UUID getOwnerUUID() {
String owner = owner_id();
if (owner != null) {
- return new AccountGroup.UUID(URL.decodePathSegment(owner));
+ return new AccountGroup.UUID(URL.decodeQueryString(owner));
}
return null;
}
public final void setOwnerUUID(AccountGroup.UUID uuid) {
- owner_id(URL.encodePathSegment(uuid.get()));
+ owner_id(URL.encodeQueryString(uuid.get()));
}
protected GroupInfo() {