Skip to content
New issue

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

Fix for issue #171. #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hakonhagland
Copy link

Refer to the call ListObjectVersions() at line #378 in auto-lib/Paws/S3.pm. This will generate an object of type Paws::S3::ListObjectsVersion, see file auto-lib/Paws/S3/ListObjectVersions.pm. This object has a field _api_uri which is initialized to /{Bucket}?versions. Note that the query string of the previous URI does not contain an "=" sign.

Due to a bug (?) in the URI module, a query string without an "=" sign is not considered a query string.
Unfortunately, this causes $qparam to become empty (i.e. to accidentally delete the versions query parameter) at line #218 in lib/Paws/Net/RestXmlCaller.pm. Which will later turn the GET request
to the REST API into something other than a versions request, and the returned response will not make sense either.

See Using the REST API for more information on expected format of GET request.

Due to a bug (?) in the URI module, a query string without an "=" sign
is not considered a query string. Unfortunately, this causes $qparam to
 become empty (i.e. to delete the "versions" query parameter) at line pplu#218
in lib/Paws/Net/RestXmlCaller.pm. Which will later turn the GET request
to the REST API into something other than a versions request, and the
returned response will not make sense.
@Grinnz
Copy link
Contributor

Grinnz commented Aug 16, 2019

Relevant URI issue: libwww-perl/URI#34

@dakkar
Copy link
Contributor

dakkar commented Jan 18, 2024

this should have been fixed by 0de24da which is already released, please re-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants