Skip to content

Commit

Permalink
Fixes start index 🚒
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobvogel committed Jun 16, 2023
1 parent d33afd0 commit 3270af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ninja/S3Dispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ private void copyObject(WebContext webContext, Bucket bucket, String key, String
int sourceBucketNameStart = sourcePath.startsWith(PATH_DELIMITER) ? PATH_DELIMITER.length() : 0;
String sourceBucketName =
sourcePath.substring(sourceBucketNameStart, sourcePath.indexOf(PATH_DELIMITER, sourceBucketNameStart));
String sourceKey = sourcePath.substring(sourcePath.indexOf(PATH_DELIMITER, 1) + 1);
String sourceKey = sourcePath.substring(sourcePath.indexOf(PATH_DELIMITER, sourceBucketNameStart) + 1);

Bucket sourceBucket = storage.getBucket(sourceBucketName);
if (!sourceBucket.exists()) {
Expand Down

0 comments on commit 3270af1

Please sign in to comment.