GitHub user enjoyy2 edited a discussion: Does the GetVariables transform
convert to String ?
I have a metadata for an web-service created. then calling from postman this
test webservice with some multipart/form-data request. i have a get variables
step set up as:
Name Variable Type Format Length Precision Currency
Decimal Group Trim type
request ${req} Binary none
now, when i do call the web service with .txt, .csv, .py, .xml files in an
multipart form data request, the get variables step does not fail. if i try to
send a .zip file, even if the type of the request field is set to binary, i get
:
2025/08/11 15:33:40 - Get variables.0 - ERROR:
java.lang.StringIndexOutOfBoundsException: Range [8008, 7890) out of bounds for
length 110849
2025/08/11 15:33:40 - Get variables.0 - at
java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
does the get variables step always tries to cast to String the received
request? if so, why ?
le: is the req variable set in the metadata for the webservice the full binary?
-> "req" (binary) containing the full POST body bytes. or this variable is
always casted to string ?
GitHub link: https://github.com/apache/hop/discussions/5611
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]