From db7f81792810dc2a235cb9406777704cf7d1b70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Fri, 16 Aug 2019 23:41:01 +0200 Subject: [PATCH] Fix for issue #171. 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 #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. --- auto-lib/Paws/S3/ListObjectVersions.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-lib/Paws/S3/ListObjectVersions.pm b/auto-lib/Paws/S3/ListObjectVersions.pm index fd4787de82..7d749c31c5 100644 --- a/auto-lib/Paws/S3/ListObjectVersions.pm +++ b/auto-lib/Paws/S3/ListObjectVersions.pm @@ -12,7 +12,7 @@ package Paws::S3::ListObjectVersions; use MooseX::ClassAttribute; class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListObjectVersions'); - class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?versions'); + class_has _api_uri => (isa => 'Str', is => 'ro', default => '/{Bucket}?versions='); class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET'); class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::S3::ListObjectVersionsOutput'); class_has _result_key => (isa => 'Str', is => 'ro');