-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.1
-
Fix Version/s: 2.3
-
Component/s: Capabilities
-
Labels:None
org.sonatype.nexus.plugins.capabilities.internal.validator.RegexpFieldValidator
actually returns failure instead of success for valid match:
@Override public ValidationResult validate( final Map<String, String> properties ) { if ( properties != null ) { final String value = properties.get( key ); if ( value != null && pattern.matcher( value ).matches() ) { return new DefaultValidationResult().add( key, label + " does not match '" + pattern.pattern() + "'" ); } } return ValidationResult.VALID; }
since DefaultValidationResult is a set of Violation