Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.time.Clock;
import java.time.LocalDate;
import java.time.LocalDateTime;
Expand Down Expand Up @@ -537,7 +539,8 @@ private String convertFileName(Dining dining, String s3Key) {
private String extractS3KeyFrom(String imageUrl) {
// URL format: https://<bucket-name>/<key(경로+파일명)>
String cdnPath = s3Client.getDomainUrlPrefix();
return imageUrl.substring(imageUrl.indexOf(cdnPath) + cdnPath.length());
String encodedKey = imageUrl.substring(imageUrl.indexOf(cdnPath) + cdnPath.length());
return URLDecoder.decode(encodedKey, StandardCharsets.UTF_8);
}

private void preprocessPath(File localImageDirectory, File zipFilePath) {
Expand Down
Loading