Query Param Arrays Losing All But First Element
Hello, I've been going over some documentation and am not finding anything relevant. We are using the gateway to transmit a call to a Spring API that receives a GET request. This GET takes in an "array" of strings as query params such that each param has the same key, and the values are assembled into an array by Spring. For example:
http://get-stuff.com/?paramList=param1¶mList=param2¶mList=param3
From this, the API gets the array [ param1, param2, param3 ]. The problem is the gateway seems to be stripping off duplicate paramList params, and mutating the the above URL to just:
http://get-stuff.com/?paramList=param1
And we end up losing data. While I'm not a huge fan of the pattern, it's what we have to work with. I'd rather not have to loop through and make a separate call for each param - is there a way to retain the full parameter list or otherwise diagnose what's going on here? The configuration is set up as follows:
#------------------------------------------------------------------
# GATEWAY CONFIGURATION
#------------------------------------------------------------------
management:
endpoints:
web:
exposure:
include: health, prometheus, info, gateway
logging:
level:
org.springframework.cloud.gateway: INFO
info:
app:
version: VERSION_NUMBER # Replaced in Jenkinsfile on build
get_stuff_host: http://get-stuff.com
spring:
cloud:
gateway:
httpclient:
connect-timeout: 3000
response-timeout: 25s
routes:
- id: get_stuff
predicates:
- Method=GET
- Path=/api/get-stuff
filters:
- StripPrefix=1
uri: "${get_stuff_host}"
Please disregard. Issue caused by reversion in app upstream. Thanks!