nope, loop
This commit is contained in:
@@ -518,18 +518,12 @@ public class PretixManager implements SmartInitializingSingleton {
|
|||||||
MultiValueMap<String, String> queryParameters) {
|
MultiValueMap<String, String> queryParameters) {
|
||||||
|
|
||||||
String cleanedPath = path.replace(host, "");
|
String cleanedPath = path.replace(host, "");
|
||||||
int queryIndex = cleanedPath.indexOf('?');
|
|
||||||
if (queryIndex != -1) {
|
|
||||||
cleanedPath = cleanedPath.substring(0, queryIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
logger.debug("method:" + method.toString() + ", path: " + path + ", cleaned path: " + cleanedPath + ", host: "
|
logger.debug("method:" + method.toString() + ", path: " + path + ", cleaned path: " + cleanedPath + ", host: "
|
||||||
+ host);
|
+ host);
|
||||||
|
|
||||||
final String finalPath = cleanedPath;
|
|
||||||
|
|
||||||
WebClient.RequestBodySpec request = webClient.method(method)
|
WebClient.RequestBodySpec request = webClient.method(method)
|
||||||
.uri(uriBuilder -> uriBuilder.path(finalPath).queryParams(queryParameters).build());
|
.uri(uriBuilder -> uriBuilder.path(cleanedPath).queryParams(queryParameters).build());
|
||||||
|
|
||||||
if (payload != null) {
|
if (payload != null) {
|
||||||
request.bodyValue(gson.toJson(payload));
|
request.bodyValue(gson.toJson(payload));
|
||||||
|
|||||||
+2
-1
@@ -729,7 +729,8 @@ public class MembershipManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (orderPositions.has("next") && !orderPositions.get("next").isJsonNull()) {
|
if (orderPositions.has("next") && !orderPositions.get("next").isJsonNull()) {
|
||||||
return fetchAllOrderPositions(orderPositions.get("next").getAsString(), queryParams, result);
|
return fetchAllOrderPositions(orderPositions.get("next").getAsString(),
|
||||||
|
new LinkedMultiValueMap<String, String>(), result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user