Skip to content

Commit 6ac45b8

Browse files
committed
prevent copy_source parameter being handled a second time for redirected calls
1 parent 2e950ed commit 6ac45b8

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

paws.common/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: paws.common
22
Type: Package
33
Title: Paws Low-Level Amazon Web Services API
4-
Version: 0.7.5
4+
Version: 0.7.6
55
Authors@R: c(
66
person("David", "Kretch", email = "[email protected]", role = "aut"),
77
person("Adam", "Banker", email = "[email protected]", role = "aut"),

paws.common/NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# paws.common 0.7.6
2+
* fix `handle_copy_source_param` encoding redirected calls.
3+
14
# paws.common 0.7.5
25
* build endpoint with host_prefix (#804), thanks to @joseale2310 and @lyschoening for raising issue.
36
* fix `unix_time` ensure seconds is numeric (#804), thanks to @joseale2310 and @lyschoening for raising issue.

paws.common/R/custom_s3.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ set_request_url <- function(original_endpoint,
484484

485485
################################################################################
486486
handle_copy_source_param <- function(request) {
487-
if (!(request$operation$name %in% c("CopyObject", "CopyPart"))) {
487+
488+
if (!(request$operation$name %in% c("CopyObject", "CopyPart")) | isTRUE(request$context$s3_redirect)) {
488489
return(request)
489490
}
490491
source <- request$params$CopySource

0 commit comments

Comments
 (0)