Pivotal Cloud Foundry® (PCF) versions 1.5.x and 1.6.x
During the upgrade of PCF from 1.5.x to 1.6.15 or 1.6.x to 1.6.15, the UAA fails to start up and returns 500 errors for all HTTP requests.
The UAA used to store LDAP Yaml configuration "as is", directly from the uaa.yml into the database without going through JSON transformation through an object.
The property ldapdebug in uaa.yml is inserted into the LDAP provider configuration.
UAA 2.7.x is reading/writing the Java class LdapIdentityProviderDefinition as JSON to and from the database. This class does not have the property ldapdebug as it is not a functional property. The class does not ignore unknown JSON properties and is not backwards compatible.
- If you have already started to upgrade and are getting the 500 errors please follow below instructions.
- Manually delete the LDAP provider from the DB issuing the following query DELETE FROM identity_provider WHERE type='ldap'
- Continue the upgrade.
- If you have not started the upgrade yet, upgrade to 1.6.16 instead; as in the version 1.6.16, this issue has been resolved.
Note- Ensure that an old UAA is not restarted, as the bootstrap process for the old UAA will again insert the invalid configuration into the DB.