From 80ece29dc5127f77320e061b924e2e991ccb090f Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Fri, 26 Nov 2010 12:10:13 +0000 Subject: [PATCH] [LMS-1858] changed validation to ignore case SVN: 18907 --- .../openbis/generic/server/dataaccess/PropertyValidator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/PropertyValidator.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/PropertyValidator.java index 50465466c57..1c447787512 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/PropertyValidator.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/PropertyValidator.java @@ -369,7 +369,8 @@ public final class PropertyValidator implements IPropertyValueValidator + "Expected '<CODE> (<TYPE>)'.", value); } if (materialTypeOrNull != null - && identifierOrNull.getTypeCode().equals(materialTypeOrNull.getCode()) == false) + && identifierOrNull.getTypeCode() + .equalsIgnoreCase(materialTypeOrNull.getCode()) == false) { throw UserFailureException.fromTemplate( "Material '%s' is of wrong type. Expected: '%s'.", value, -- GitLab