Fix user-facing typos in error messages (#29326)

Update resource file and tests accordingly

Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
This commit is contained in:
Dimitri Papadopoulos Orfanos 2024-05-16 09:55:41 +02:00 committed by GitHub
parent b4e7d9b1aa
commit 64a145e960
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 24 additions and 24 deletions

View file

@ -24,7 +24,7 @@ public class PropertiesFileProfileConfigResolver extends PropertiesProfileConfig
}
}
} catch (IOException e) {
throw new ProfileException("Failed to load profile propeties file", e);
throw new ProfileException("Failed to load profile properties file", e);
}
return properties;
}

View file

@ -51,7 +51,7 @@ public class LDAPTransaction extends AbstractKeycloakTransaction {
logger.trace("Transaction commit! Updating LDAP attributes for object " + ldapUser.getDn() + ", attributes: " + ldapUser.getAttributes());
}
if (ldapUser.isWaitingForExecutionOnMandatoryAttributesComplete()) {
throw new ModelValidationException("LDAPObject cannot be commited because some mandatory attributes are not set: "
throw new ModelValidationException("LDAPObject cannot be committed because some mandatory attributes are not set: "
+ ldapUser.getMandatoryAttributeNamesRemaining());
}

View file

@ -169,7 +169,7 @@ public final class ArrayFrob {
throw new IllegalArgumentException(_ex);
}
throw new IllegalArgumentException(String.format("Not An Expected Convertion type from %s to %s", _o.getClass(), _c));
throw new IllegalArgumentException(String.format("Not An Expected Conversion type from %s to %s", _o.getClass(), _c));
}
public static Object[] type(Object[] _old, Class<Object> _c) {

View file

@ -40,7 +40,7 @@ public class GlobalHandler implements org.freedesktop.dbus.interfaces.Peer, org.
}
}
if (null == intro) {
throw new UnknownObject("Introspecting on non-existant object");
throw new UnknownObject("Introspecting on non-existent object");
} else {
return "<!DOCTYPE node PUBLIC \"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN\" "
+ "\"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd\">\n" + intro;

View file

@ -54,7 +54,7 @@ notReplyWithSpecifiedTime="No reply within specified time"
missingTransport="No transport present"
notDBusInterface="Not A DBus Interface"
notDBusSignal="Not A DBus Signal"
convertionTypeNotExpected="Not An Expected Convertion type from {0} to {1}"
convertionTypeNotExpected="Not An Expected Conversion type from {0} to {1}"
notConnected="Not Connected"
notPrimitiveType="Not a primitive type"
invalidDBusCode="Not a valid D-Bus type code: "

View file

@ -122,7 +122,7 @@ public class CreateCmd extends AbstractRequestCmd {
out.println(" -a, --admin-root URL URL of Admin REST endpoint root if not default - e.g. http://localhost:8080/admin");
out.println();
out.println();
out.println("Nested attributes are supported by using '.' to separate components of a KEY. Optionaly, the KEY components ");
out.println("Nested attributes are supported by using '.' to separate components of a KEY. Optionally, the KEY components ");
out.println("can be quoted with double quotes - e.g. my_client.attributes.\"external.user.id\". If VALUE starts with [ and ");
out.println("ends with ] the attribute will be set as a JSON array. If VALUE starts with { and ends with } the attribute ");
out.println("will be set as a JSON object. If KEY ends with an array index - e.g. clients[3]=VALUE - then the specified item");

View file

@ -131,7 +131,7 @@ public class UpdateCmd extends AbstractRequestCmd {
out.println(" -a, --admin-root URL URL of Admin REST endpoint root if not default - e.g. http://localhost:8080/admin");
out.println();
out.println();
out.println("Nested attributes are supported by using '.' to separate components of a KEY. Optionaly, the KEY components ");
out.println("Nested attributes are supported by using '.' to separate components of a KEY. Optionally, the KEY components ");
out.println("can be quoted with double quotes - e.g. my_client.attributes.\"external.user.id\". If VALUE starts with [ and ");
out.println("ends with ] the attribute will be set as a JSON array. If VALUE starts with { and ends with } the attribute ");
out.println("will be set as a JSON object. If KEY ends with an array index - e.g. clients[3]=VALUE - then the specified item");

View file

@ -173,7 +173,7 @@ public class CreateCmd extends AbstractAuthOptionsCmd {
printOut("Response from server: " + readFully(response));
}
} catch (UnrecognizedPropertyException e) {
throw new RuntimeException("Failed to process HTTP reponse - " + e.getMessage(), e);
throw new RuntimeException("Failed to process HTTP response - " + e.getMessage(), e);
} catch (IOException e) {
throw new RuntimeException("Failed to process HTTP response", e);
}

View file

@ -350,7 +350,7 @@ public class UpdateCmd extends AbstractAuthOptionsCmd {
out.println(" -c, --compressed Don't pretty print the output");
out.println();
out.println();
out.println("Nested attributes are supported by using '.' to separate components of a KEY. Optionaly, the KEY components ");
out.println("Nested attributes are supported by using '.' to separate components of a KEY. Optionally, the KEY components ");
out.println("can be quoted with double quotes - e.g. my_client.attributes.\"external.user.id\". If VALUE starts with [ and ");
out.println("ends with ] the attribute will be set as a JSON array. If VALUE starts with { and ends with } the attribute ");
out.println("will be set as a JSON object. If KEY ends with an array index - e.g. clients[3]=VALUE - then the specified item");

View file

@ -129,7 +129,7 @@ public class UpdateTokenCmd extends AbstractAuthOptionsCmd {
out.println("Usage: " + CMD + " update-token CLIENT [ARGUMENTS]");
out.println();
out.println("Command to reissue, and set a new registration access token if an old one is lost or becomes invalid.");
out.println("It requires an authenticated session using an account with administrator priviliges.");
out.println("It requires an authenticated session using an account with administrator privileges.");
out.println();
out.println("Arguments:");
out.println();

View file

@ -133,7 +133,7 @@ public class InfinispanCacheInitializer extends BaseCacheInitializer {
}
if (errors >= maxErrors) {
throw new RuntimeException("Maximum count of worker errors occured. Limit was " + maxErrors + ". See server.log for details");
throw new RuntimeException("Maximum count of worker errors occurred. Limit was " + maxErrors + ". See server.log for details");
}
if (!anyFailure) {

View file

@ -204,7 +204,7 @@ public class LoggingOptions {
public static final Option<Boolean> LOG_GELF_INCLUDE_STACK_TRACE = new OptionBuilder<>("log-gelf-include-stack-trace", Boolean.class)
.category(OptionCategory.LOGGING)
.description("If set to true, occuring stack traces are included in the 'StackTrace' field in the GELF output.")
.description("If set to true, occurring stack traces are included in the 'StackTrace' field in the GELF output.")
.defaultValue(Boolean.TRUE)
.deprecated()
.build();

View file

@ -153,7 +153,7 @@ Logging:
DEPRECATED. Include message parameters from the log event. Default: true.
Available only when GELF is activated.
--log-gelf-include-stack-trace <true|false>
DEPRECATED. If set to true, occuring stack traces are included in the
DEPRECATED. If set to true, occurring stack traces are included in the
'StackTrace' field in the GELF output. Default: true. Available only when
GELF is activated.
--log-gelf-level <level>

View file

@ -153,7 +153,7 @@ Logging:
DEPRECATED. Include message parameters from the log event. Default: true.
Available only when GELF is activated.
--log-gelf-include-stack-trace <true|false>
DEPRECATED. If set to true, occuring stack traces are included in the
DEPRECATED. If set to true, occurring stack traces are included in the
'StackTrace' field in the GELF output. Default: true. Available only when
GELF is activated.
--log-gelf-level <level>

View file

@ -366,7 +366,7 @@ Logging:
DEPRECATED. Include message parameters from the log event. Default: true.
Available only when GELF is activated.
--log-gelf-include-stack-trace <true|false>
DEPRECATED. If set to true, occuring stack traces are included in the
DEPRECATED. If set to true, occurring stack traces are included in the
'StackTrace' field in the GELF output. Default: true. Available only when
GELF is activated.
--log-gelf-level <level>

View file

@ -367,7 +367,7 @@ Logging:
DEPRECATED. Include message parameters from the log event. Default: true.
Available only when GELF is activated.
--log-gelf-include-stack-trace <true|false>
DEPRECATED. If set to true, occuring stack traces are included in the
DEPRECATED. If set to true, occurring stack traces are included in the
'StackTrace' field in the GELF output. Default: true. Available only when
GELF is activated.
--log-gelf-level <level>

View file

@ -318,7 +318,7 @@ Logging:
DEPRECATED. Include message parameters from the log event. Default: true.
Available only when GELF is activated.
--log-gelf-include-stack-trace <true|false>
DEPRECATED. If set to true, occuring stack traces are included in the
DEPRECATED. If set to true, occurring stack traces are included in the
'StackTrace' field in the GELF output. Default: true. Available only when
GELF is activated.
--log-gelf-level <level>

View file

@ -2366,7 +2366,7 @@ public class DefaultPicketLinkLogger implements PicketLinkLogger {
@Override
public RuntimeException maximumNumberOfClientsReachedforPool(String max) {
return new RuntimeException("Pool reached miximum number of clients within the pool (" + max + ")");
return new RuntimeException("Pool reached maximum number of clients within the pool (" + max + ")");
}
@Override

View file

@ -148,7 +148,7 @@ public class SAMLServletSessionTimeoutTest extends AbstractSAMLServletAdapterTes
AuthnStatementType authType = (AuthnStatementType) statements.stream()
.filter(statement -> statement instanceof AuthnStatementType)
.findFirst().orElseThrow(() -> new RuntimeException("SamlReponse doesn't contain AuthStatement"));
.findFirst().orElseThrow(() -> new RuntimeException("SamlResponse doesn't contain AuthStatement"));
assertThat(authType.getSessionNotOnOrAfter(), notNullValue());
XMLGregorianCalendar expectedSessionTimeout = XMLTimeUtil.add(authType.getAuthnInstant(), SESSION_LENGTH_IN_SECONDS * 1000);