Skip to content

Logging of failedInput in exceptions #14

Description

@mkonietzka

Some of the exception classes like eg

public class UnknownCountryCodeException extends IllegalArgumentException {
    private final String failedInput;

    UnknownCountryCodeException(String failedInput) {
        super("Unknown country code in " + failedInput);
        this.failedInput = failedInput;
    }

    public String getFailedInput() {
        return failedInput;
    }
}

uses the failedInput in the exception message. In environments with an automated logging of exception messages this will lead to print out IBANs in log files. IBANs are in most cases sensitive data, you will not print in log files.

Is there a possibility that you are no longer using `failedInput' in the error message so that the IBAN no longer appears in logfiles?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions