Uncatched index error at runtime
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
Direzione di ricerca
Inizia da commands/html5_base_command.go alla riga 272, quindi traccia la chiamata da commands/html5_list_command.go alle righe 161 e 207 per cf html5-list -di <my-destination-service-name> -u. Riproduci il comando, se possibile, e determina perché l’accesso all’indice segnalato provoca un panic; il lavoro è completato quando il comando restituisce un output senza un errore di runtime di Go.
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=1to help debug the issue. - I am reporting a bug that others will be able to reproduce.
- I am not sure
Describe the bug and the command you saw an issue with
Provide details on what you were trying to do (and why).
I tried to get the url of a html5 app from the html5 repo using the cf cli command as pointed out in https://help.sap.com/docs/bas/developing-html5-application/run-your-deployed-html5-application?locale=en-US.
I have installed the plugin for html5 repo.
I executed the following:
cf html5-list -di <my-destination-service-name> -u
What happened
A clear and concise description of what happen.
I received the following cli output:
Getting list of HTML5 applications available via destinations in org <my-org-name> / space <my-space-name> as <my-acount-email>...
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
cf-html5-apps-repo-cli-plugin/commands.(*HTML5Command).GetHTML5Context(0x1657960, {{0xc000018180, 0x15}, {0xc00018c090, 0x15}, {0xc0001c0510, 0x24}, {0xc0000163e0, 0xc}, {0xc00001a570, ...}})
go/src/cf-html5-apps-repo-cli-plugin/commands/html5_base_command.go:272 +0x176a
cf-html5-apps-repo-cli-plugin/commands.(*ListCommand).ListDestinationApps(0x1657960, {0x205a97eed, 0x1375aa1}, 0x1, {0x0, 0x0})
go/src/cf-html5-apps-repo-cli-plugin/commands/html5_list_command.go:207 +0x3e5
cf-html5-apps-repo-cli-plugin/commands.(*ListCommand).Execute(0x1657960, {0xc0000921b0, 0x3, 0x3})
go/src/cf-html5-apps-repo-cli-plugin/commands/html5_list_command.go:161 +0xd3b
main.(*HTML5Plugin).Run(0x1372128, {0x13fd370, 0xc000186190}, {0xc0000921a0, 0x4, 0x4})
go/src/cf-html5-apps-repo-cli-plugin/html5_plugin.go:46 +0x23d
cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin.Start({0x13f22a8, 0x1688570})
go/src/cf-html5-apps-repo-cli-plugin/vendor/github.com/cloudfoundry/cli/plugin/plugin_shim.go:30 +0x2d8
main.main()
go/src/cf-html5-apps-repo-cli-plugin/html5_plugin.go:68 +0x27
Expected behavior
A clear and concise description of what you expected to happen.
an output and no go error.
Exact Steps To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:
see above
Provide more context
- platform and shell details
- macOS 15.7.2 iTerm
- version of the CLI you are running
cf version 8.17.0+7ea11c1.2025-11-19
- version of the CC API Release you are on
- I don't know
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cloudfoundry/cli
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
cloudfoundry/cli#3866 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
cloudfoundry/cli#3863 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
cloudfoundry/cli#3851 · 1 commento · 1 reazione ·
-
Add zsh shell completion Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
cloudfoundry/cli#3794 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
cloudfoundry/cli#3787 · 1 commento ·
Tutte le issue di cloudfoundry/cli
Issue simili
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
microsoft/agent-framework-go#1179 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
[Bug]: OLLAMA_KEEP_ALIVE="5m" / "24h" crashes Ollama embedding and vision models with ValueError Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
infiniflow/ragflow#20223 · 1 reazione ·
-
bug needs triage pkg/translator/faro
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
open-telemetry/opentelemetry-collector-contrib#51484 · 1 commento ·