You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my workaround in org.oxerr.peatio.rest.service.PeatioDigest.digestParams(RestInvocation)sutra/peatio-client@eba9e4d, using Java reflection to change the private field RestInvocation#invocationUrl:
// Seems rescu does not support ParamsDigest in QueryParam.// hack to replace the signature in the invocation URL.StringinvocationUrl = restInvocation.getInvocationUrl();
log.debug("old invocationUrl: {}", invocationUrl);
StringnewInvocationUrl = UriBuilder.fromUri(invocationUrl).replaceQueryParam("signature", signature).build().toString();
try {
invocationUrlField.set(restInvocation, newInvocationUrl);
} catch (IllegalArgumentException | IllegalAccessExceptione) {
thrownewRuntimeException(e);
}
log.debug("new invocationUrl: {}", restInvocation.getInvocationUrl());
@QueryParam("signature") ParamsDigest signature
The text was updated successfully, but these errors were encountered: