Object ID Identicy conversion to long fails on old schema
This change fixed a bug which tried to convert non-string object as string Fixes gh-7621
This commit is contained in:
@@ -118,7 +118,7 @@ class AclClassIdUtils {
|
||||
*/
|
||||
private Long convertToLong(Serializable identifier) {
|
||||
Long idAsLong;
|
||||
if (canConvertFromStringTo(Long.class)) {
|
||||
if (conversionService.canConvert(identifier.getClass(), Long.class)) {
|
||||
idAsLong = conversionService.convert(identifier, Long.class);
|
||||
} else {
|
||||
idAsLong = Long.valueOf(identifier.toString());
|
||||
|
||||
Reference in New Issue
Block a user