aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws-client/src/main/java')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyCreateQuery.java3
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java4
2 files changed, 3 insertions, 4 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyCreateQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyCreateQuery.java
index 9572bb39616..406b5205b3e 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyCreateQuery.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyCreateQuery.java
@@ -78,8 +78,7 @@ public class PropertyCreateQuery extends CreateQuery<Property> {
public String getUrl() {
StringBuilder url = new StringBuilder();
url.append(PropertyQuery.BASE_URL);
- url.append("/").append(encode(key));
- url.append('?');
+ url.append("?id=").append(encode(key)).append("&");
appendUrlParameter(url, "value", value);
appendUrlParameter(url, "resource", resourceKeyOrId);
return url.toString();
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java
index 5e2abc4547f..3fee1d82af9 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/PropertyQuery.java
@@ -46,10 +46,10 @@ public class PropertyQuery extends Query<Property> {
@Override
public String getUrl() {
StringBuilder url = new StringBuilder(BASE_URL);
+ url.append('?');
if (key != null) {
- url.append("/").append(encode(key));
+ url.append("id=").append(encode(key)).append("&");
}
- url.append('?');
appendUrlParameter(url, "resource", resourceKeyOrId);
return url.toString();
}