Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

cf login ran through CliCommand() doesn't update LogCacheEndPoint

Aperta
#3,632 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Inizia dal punto di ingresso per la riproduzione in cf_cli_login_issue.go, righe 28-31, e segui plugin.CliConnection.CliCommand() mentre passi da un endpoint all’altro delle API CF. Confronta ~/.cf/config.json dopo ogni accesso, quindi verifica che cf logs my-app utilizzi il LogCacheEndPoint aggiornato e non restituisca più l’errore 404.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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=1 to 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 LogCacheEndPoint in ~/.cf/config.json is properly updated
  • Install the sample plugin linked above
  • Run cf loginissue some-other-parameters on another CF API endpoint
  • Check that LogCacheEndPoint in ~/.cf/config.json is 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))
Lingua principale
Go
Stelle
1.9k
Fork
990
Merge medio
1g 7h
PR unite (30g)
8

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudfoundry/cli

Tutte le issue di cloudfoundry/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.