Skip to content
Open
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 @@ -207,6 +207,18 @@ public static String extractErrorMessage(ErrorCondition errorCondition) {
if (condition != null) {
message = message + " [condition = " + condition + "]";
}

try {
Map<?, ?> info = errorCondition.getInfo();
String messageWithInfo = message;
if (info != null && !info.isEmpty()) {
messageWithInfo = message + " [info = " + info + "]";
}
return messageWithInfo;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any chance that the map returned by the errorCondition.getInfo() contains privileged information? Specifically contents of something read from disk or unobfuscated passwords or access tokens or similar?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldnt expect that, but its up to the peer to decide what they put in there so its impossible to say what might be in there. Typically nothing, hence whey no client I know of thus far does whats proposed.

}
catch (Exception e) {
return message;
}
}

return message;
Expand Down