We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When making a GET request with array arguments in the URI, only one of the array elements makes it into the URI.
Example request log (here, media_type is the array):
media_type
Nov 4 20:42:16 centos7-katello-devel pulpcore-api: pulp [7b866b689113480690e586b795e92db9]: - - [04/Nov/2021:20:42:16 +0000] "GET /pulp/api/v3/content/container/manifests/?limit=2000&media_type=application%2Fvnd.docker.distribution.manifest.v1%2Bjson&media_type=application%2Fvnd.docker.distribution.manifest.v2%2Bjson&media_type=application%2Fvnd.oci.image.index.v1%2Bjson&offset=0&repository_version=%2Fpulp%2Fapi%2Fv3%2Frepositories%2Fcontainer%2Fcontainer%2F40202db4-20ad-449e-a892-962c66a52282%2Fversions%2F1%2F HTTP/1.1" 200 8812 "-" "OpenAPI-Generator/2.9.0/ruby"
Example VCR snippet that is missing params:
- request: method: get uri: https://centos7-katello-devel.cannolo.example.com/pulp/api/v3/content/container/manifests/?limit=2000&media_type=application/vnd.oci.image.index.v1%2Bjson&offset=0&repository_version=/pulp/api/v3/repositories/container/container/40202db4-20ad-449e-a892-962c66a52282/versions/1/ body: encoding: US-ASCII base64_string: '' headers: Content-Type: - application/json User-Agent: - OpenAPI-Generator/2.9.0/ruby Accept: - application/json Authorization: - Basic ... Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 ...
It seems like only the last array parameter is kept.
The VCR configuration is done here, in case it's helpful: https://github.com/Katello/katello/blob/master/test/support/vcr.rb
Ruby 2.7.3 Gem 3.1.6 Rails 6.0.3.7 VCR 3.0.3
The text was updated successfully, but these errors were encountered:
I am guesting the supported kind of URL query parameter that becomes an array looks like: media_type[]
media_type[]
Sorry, something went wrong.
Digging through the code, this appears to be happening somewhere in Webmock or Addressable.
This may be the underlying issue: bblimke/webmock#764
No branches or pull requests
When making a GET request with array arguments in the URI, only one of the array elements makes it into the URI.
Example request log (here,
media_type
is the array):Example VCR snippet that is missing params:
It seems like only the last array parameter is kept.
The VCR configuration is done here, in case it's helpful: https://github.com/Katello/katello/blob/master/test/support/vcr.rb
Ruby 2.7.3
Gem 3.1.6
Rails 6.0.3.7
VCR 3.0.3
The text was updated successfully, but these errors were encountered: