Merge pull request #2608 from mposolda/master

KEYCLOAK-2811 FederationProvidersIntegrationTest.testReadOnly failing…
This commit is contained in:
Marek Posolda 2016-04-13 13:50:04 +02:00
commit 59535e4c43

View file

@ -117,6 +117,10 @@ public class MSADUserAccountControlMapper extends AbstractLDAPFederationMapper {
protected ModelException processFailedPasswordUpdateException(ModelException e) { protected ModelException processFailedPasswordUpdateException(ModelException e) {
if (e.getCause() == null || e.getCause().getMessage() == null) {
return e;
}
String exceptionMessage = e.getCause().getMessage().replace('\n', ' '); String exceptionMessage = e.getCause().getMessage().replace('\n', ' ');
Matcher m = AUTH_INVALID_NEW_PASSWORD.matcher(exceptionMessage); Matcher m = AUTH_INVALID_NEW_PASSWORD.matcher(exceptionMessage);
if (m.matches()) { if (m.matches()) {