Skip to content

Commit

Permalink
Improved the error message in s3 for LDEV-4718
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Feb 1, 2024
1 parent eb3a7d1 commit cc19572
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/lucee/runtime/exp/PageExceptionImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ private static String filterSecrets(String msg, int startIndex) {
if (index != -1) {
secretAccessKey = secretAccessKey.substring(0, index);
}
msg = filterSecrets(StringUtil.replace(msg, secretAccessKey, "{SECRET_ACCESS_KEY}"), atIndex);
msg = StringUtil.replace(msg, secretAccessKey, "{SECRET_ACCESS_KEY}");
return msg;
}
}
if (slashIndex != -1) {
Expand All @@ -160,7 +161,7 @@ private static String filterSecrets(String msg, int startIndex) {
if (index != -1) {
secretAccessKey = secretAccessKey.substring(0, index);
}
msg = filterSecrets(StringUtil.replace(msg, secretAccessKey, "{SECRET_ACCESS_KEY}"), slashIndex);
msg = StringUtil.replace(msg, secretAccessKey, "{SECRET_ACCESS_KEY}");
}
}
}
Expand Down

0 comments on commit cc19572

Please sign in to comment.