nope, loop

This commit is contained in:
2025-12-18 23:19:48 +01:00
parent c3ef6761a9
commit 92562c7489
2 changed files with 3 additions and 8 deletions
@@ -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));
@@ -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;