cf login ran through CliCommand() doesn't update LogCacheEndPoint
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu từ điểm bắt đầu tái hiện trong cf_cli_login_issue.go, các dòng 28-31, và theo dõi plugin.CliConnection.CliCommand() trong khi chuyển đổi giữa hai endpoint API CF. So sánh ~/.cf/config.json sau mỗi lần đăng nhập, sau đó xác minh rằng cf logs my-app sử dụng LogCacheEndPoint đã được cập nhật và không còn trả về lỗi 404.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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))
- Ngôn ngữ chính
- Go
- Star
- 1.9k
- Fork
- 989
- Merge trung bình
- 4 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudfoundry/cli
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
cloudfoundry/cli#3866 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
cloudfoundry/cli#3863 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
cloudfoundry/cli#3851 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Add zsh shell completionĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
cloudfoundry/cli#3794 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
cloudfoundry/cli#3787 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của cloudfoundry/cli
Issue tương tự
-
bug(hub,chat): Wave-2 web chat sendAgentRouted does not update RecordChannel reply affinity to 'web'Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
GoogleCloudPlatform/scion#2448 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
customer issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
dolthub/go-mysql-server#3988 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug keploy
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
grpc/grpc-go#9481 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
SocialGouv/iterion#2195 ·
Maintainer thường phản hồi trong vòng 1 ngày