You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description:
hypersistence.utils.enable_types_contributor setting can hold arbitrary values except boolean. For, instance "abc" string. Moreover, setting hypersistence.utils.enable_types_contributor to true has no effect - type contributor is still disabled
Expected behavior:
I expect to get some exception, indicating that the setting hold invalid value.
Additional context:
I guess the problem is this code snippet io.hypersistence.utils.hibernate.type.HibernateTypesContributor (or more specifically in Boolean.getBoolean call):
Boolean enableTypesContributor = (Boolean) configurationService.getSetting(ENABLE_TYPES_CONTRIBUTOR, value -> {
if(value instanceof Boolean) {
return value;
}
if(value instanceof String) {
return Boolean.getBoolean((String) value);
}
throw new HibernateException(
String.format("The value [%s] of the [%s] setting is not supported!", value, ENABLE_TYPES_CONTRIBUTOR)
);
});
The text was updated successfully, but these errors were encountered:
Bug description:
hypersistence.utils.enable_types_contributor setting can hold arbitrary values except boolean. For, instance "abc" string. Moreover, setting hypersistence.utils.enable_types_contributor to true has no effect - type contributor is still disabled
To Reproduce:
Apply settings listed below
Expected behavior:
I expect to get some exception, indicating that the setting hold invalid value.
Additional context:
I guess the problem is this code snippet io.hypersistence.utils.hibernate.type.HibernateTypesContributor (or more specifically in Boolean.getBoolean call):
The text was updated successfully, but these errors were encountered: