cf login ran through CliCommand() doesn't update LogCacheEndPoint
Los mantenedores suelen responder en 4 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Comienza por el punto de entrada para reproducir el problema en cf_cli_login_issue.go, líneas 28-31, y sigue plugin.CliConnection.CliCommand() mientras alternas entre los dos endpoints de la API de CF. Compara ~/.cf/config.json después de cada inicio de sesión y verifica que cf logs my-app use el LogCacheEndPoint actualizado y ya no devuelva el error 404.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Please fill out the issue checklist below and provide ALL the requested information.
- I reviewed open and closed github issues that may be related to my problem.
- I tried updating to the latest version of the CF CLI to see if it fixed my problem.
- I attempted to run the command with
CF_TRACE=1to help debug the issue. - I am reporting a bug that others will be able to reproduce.
Describe the bug and the command you saw an issue with
When calling the cf login command through the plugin.CliConnection.CliCommand() the LogCacheEndPoint in the ~/.cf/config.json file is never updated.
https://github.com/the8tre/cf-cli-login-issue/blob/4d086d0c6fa0ab8f1b439824ab6633700b7ba730/cf_cli_login_issue.go#L28-L31
What happened
As the LogCacheEndPoint is not properly updated, calls to cf logs my-app fail with a Failed to retrieve logs from Log Cache: unexpected status code 404 error.
Expected behavior
The LogCacheEndPoint field of ~/.cf/config.json should be properly updated with the right url using the right CF API domain.
Exact Steps To Reproduce
Here is a GitHub repository with a sample cf cli plugin that reproduces the issue:
https://github.com/the8tre/cf-cli-login-issue#
- Run
cf login your-own-parameters - Check that
LogCacheEndPointin~/.cf/config.jsonis properly updated - Install the sample plugin linked above
- Run
cf loginissue some-other-parameterson another CF API endpoint - Check that
LogCacheEndPointin~/.cf/config.jsonis not updated
Provide more context
- platform and shell details:
- MacOS Tahoe 26.1, any terminal (MacOS Terminal, iTerm, Ghostty)
- Windows 11 Enterprise - 24H2 - 26100.7092
- version of the CLI you are running:
- MacOS: cf version 8.16.0+4b92b73.2025-09-18
- Windows: cf version 8.16.0+4b92b73e4.2025-09-18
- version of the CC API Release you are on
Notes regarding V6 and V7 CLI support:
- V6:
- Minimum supported version of CF Deployment: v7.0.0 (CAPI Release: 1.74.0 (APIs 2.128.0 and 3.63.0))
- Maximum supported version of CF Deployment: v13.4.0 (CAPI Release: 1.94.0 (APIs 2.149.0 and 3.84.0))
- V7:
- Minimum supported version of CF Deployment: v13.5.0 (CAPI Release: 1.95.0 (APIs 2.150.0 and 3.85.0))
- Lenguaje dominante
- Go
- Estrellas
- 1.9k
- Forks
- 990
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 8
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudfoundry/cli
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
cloudfoundry/cli#3866 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
cloudfoundry/cli#3863 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 4 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
cloudfoundry/cli#3851 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 4 días
-
Add zsh shell completionAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
cloudfoundry/cli#3794 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
cloudfoundry/cli#3787 · 1 comentario ·
Los mantenedores suelen responder en 4 días
Todos los issues de cloudfoundry/cli
Issues similares
-
bug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug P2 reliability
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
afreidah/s3-orchestrator#1564 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
blinklabs-io/gouroboros#2577 ·
Los mantenedores suelen responder en 1 día
-
agentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día