Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit f9cf5077773c49edf0fc7ec0e439c9273994f630 1 parent e90178f
@joeldsa joeldsa authored
View
3  common/src/main/java/org/cloudfoundry/identity/uaa/scim/jdbc/JdbcScimUserProvisioning.java
@@ -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) {
View
2  uaa/src/main/resources/org/cloudfoundry/identity/uaa/schema-cloudfoundry.sql
@@ -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 (
Please sign in to comment.
Something went wrong with that request. Please try again.