Skip to content

Commit

Permalink
Merge pull request #824 from DyfanJones/copy_source_param_redirect
Browse files Browse the repository at this point in the history
prevent copy_source parameter being handled a second time for redirected calls
  • Loading branch information
DyfanJones authored Aug 29, 2024
2 parents 2e950ed + 6ac45b8 commit ddd59d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paws.common/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: paws.common
Type: Package
Title: Paws Low-Level Amazon Web Services API
Version: 0.7.5
Version: 0.7.6
Authors@R: c(
person("David", "Kretch", email = "david.kretch@gmail.com", role = "aut"),
person("Adam", "Banker", email = "adam.banker39@gmail.com", role = "aut"),
Expand Down
3 changes: 3 additions & 0 deletions paws.common/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# paws.common 0.7.6
* fix `handle_copy_source_param` encoding redirected calls.

# paws.common 0.7.5
* build endpoint with host_prefix (#804), thanks to @joseale2310 and @lyschoening for raising issue.
* fix `unix_time` ensure seconds is numeric (#804), thanks to @joseale2310 and @lyschoening for raising issue.
Expand Down
3 changes: 2 additions & 1 deletion paws.common/R/custom_s3.R
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ set_request_url <- function(original_endpoint,

################################################################################
handle_copy_source_param <- function(request) {
if (!(request$operation$name %in% c("CopyObject", "CopyPart"))) {

if (!(request$operation$name %in% c("CopyObject", "CopyPart")) | isTRUE(request$context$s3_redirect)) {
return(request)
}
source <- request$params$CopySource
Expand Down

0 comments on commit ddd59d4

Please sign in to comment.