Uncatched index error at runtime
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 62/100
Línea de trabajo
Comienza con commands/html5_base_command.go en la línea 272 y, después, sigue la llamada desde commands/html5_list_command.go en las líneas 161 y 207 para cf html5-list -di <my-destination-service-name> -u. Reproduce el comando si es posible y determina por qué el acceso al índice informado provoca un panic; se considera terminado cuando el comando devuelve una salida sin un error de ejecución de Go.
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.
- 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
- Lenguaje dominante
- Go
- Estrellas
- 1.9k
- Forks
- 989
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 1 día
-
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 1 día
-
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 1 día
-
Add zsh shell completionAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
cloudfoundry/cli#3794 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
cloudfoundry/cli#3787 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de cloudfoundry/cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
OpenTollGate/tollgate-module-basic-go#833 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
siyuan-note/siyuan#20353 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
attributes-natural-language "en-US" is rejected by PAPPL >= 1.4.12 printers (RFC 8011 requires lowercase)Posiblemente ocupada @ChrisEdgington la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
OpenPrinting/ipp-usb#140 ·