Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Unable to update an existing active Saml identity provider and give it a new metadataurl when it's prior one was no longer valid

Abierto
#2,018 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java

Línea de trabajo

Comienza en SamlIdentityProviderConfiguration.validateSamlIdentityProviderDefinition y sigue el endpoint de actualización del proveedor de identidad a través de getIdentityProviderDefinitions y getExtendedMetadataDelegate. Reproduce el caso con un proveedor existente cuyo metadataurl no sea válido y, después, verifica que proporcionar un nuevo metadataurl válido lo actualiza sin fallar, mientras se comprueba que no haya entity IDs duplicados en los demás proveedores.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

in_review unscheduled
What version of UAA are you running?

We're currently using 4.20 but found that the issue exists in the latest code base as well.

What did you do?

We're attempting to update an existing active identity provider whose metadataurl no longer points to a valid URL.

Ex:

  1. create a SAML identity provider with a valid metadataurl
  2. take the metadata provider offline (existing definition now has an invalid metadata url)
  3. use the UAA end point to update the identity provider and provide a new valid metadata url.

This fails b/c of SamlIdentityProviderConfiguration -> validateSamlIdentityProviderDefinition

When it's validating the new properties of the definitions, it actually tries to go and get existing IdentityProviders for that identity zone and calls getExtendedMetadataDelegate on every existing provider (including the existing one that we already know doesn't have a valid metadataurl). downstream that throws an exception unable to fetch metadata and we're not able to update the provider.

for (SamlIdentityProviderDefinition existing : getIdentityProviderDefinitions()) {
ConfigMetadataProvider existingProvider = (ConfigMetadataProvider) getExtendedMetadataDelegate(existing).getDelegate();
if (entityIDToBeAdded.equals(existingProvider.getEntityID()) &&
!(existing.getUniqueAlias().equals(clone.getUniqueAlias()))) {
entityIDexists = true;
break;
}
}

What did you expect to see? What goal are you trying to achieve with the UAA?

I should be able to update an existing IdentityProvider and give it a new valid metadataurl after the current one is no longer valid.

What did you see instead?

It threw an exception unable to fetch metadata

Please include UAA logs if available.

Lenguaje dominante
Java
Estrellas
1.6k
Forks
845
Merge medio
1 d 3 h
PR fusionados (30 d)
24

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cloudfoundry/uaa

Todos los issues de cloudfoundry/uaa

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.