Permalink
Browse files

Removed unnecessary validation causing user bootstrap to fail

The unnecessary validation on given name and family name was
preventing us from boostrapping a user that did not have a
given name and family name.

Additional bug fix to a schema file as well.

[#40536601]

Change-Id: If1c84a8db97cf5caba376815e47b9a850afb5266
  • Loading branch information...
1 parent e90178f commit f9cf5077773c49edf0fc7ec0e439c9273994f630 @joeldsa joeldsa committed Nov 27, 2012
@@ -203,9 +203,6 @@ private void validate(final ScimUser user) throws InvalidScimResourceException {
if (user.getEmails()==null || user.getEmails().isEmpty()) {
throw new InvalidScimResourceException("An email must be provided.");
}
- if (user.getName()==null || user.getName().getFamilyName()==null || user.getName().getGivenName()==null) {
- throw new InvalidScimResourceException("A given name and a family name must be provided.");
- }
}
private String extractPhoneNumber(final ScimUser user) {
@@ -38,7 +38,7 @@ ALTER TABLE USERS ADD COLUMN phoneNumber VARCHAR(255);
ALTER TABLE USERS ADD COLUMN authorities VARCHAR(1024) default 'uaa.user';
UPDATE USERS set authorities='uaa.user' where authority=0 and authorities not like '%.%';
UPDATE USERS set authorities='uaa.admin,uaa.user' where authority=1 and authorities not like '%.%';
-ALTER TABLE USERS ALTER COLUMN givenyName drop not NULL;
+ALTER TABLE USERS ALTER COLUMN givenName drop not NULL;
ALTER TABLE USERS ALTER COLUMN familyName drop not NULL;
CREATE TABLE SEC_AUDIT (

0 comments on commit f9cf507

Please sign in to comment.