Skip to content

Crash when a single double quote used and then another given when prompted #112

@LackOfMorals

Description

@LackOfMorals

When using aura-cli tenant get, a double quote was accidentally included at the end of the tenant id. A prompt was given and another double quote entered. aura-cli then crashed. :(

aura-cli tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611"
dquote> "
Unexpected error running CLI with args [tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611
], please report an issue in https://github.com/neo4j/cli

panic: unexpected error [status 403] running CLI with args [tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611
	], please report an issue in https://github.com/neo4j/cli [recovered]
	panic: unexpected error [status 403] running CLI with args [tenant get ad69ee24-25fc-5a66-af02-ff8d3cc23611
	], please report an issue in https://github.com/neo4j/cli

goroutine 1 [running]:
main.main.func1()
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/cmd/main.go:19 +0xc4
panic({0x104ea2660?, 0x1400010e050?})
	/opt/hostedtoolcache/go/1.23.4/x64/src/runtime/panic.go:785 +0x124
github.com/neo4j/cli/neo4j-cli/aura/internal/api.handleResponseError(0x140000d0990, 0x140000de4b0, 0x140000d2620)
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/internal/api/response.go:67 +0xe44
github.com/neo4j/cli/neo4j-cli/aura/internal/api.MakeRequest(0x140000d2620, {0x1400009e420, 0x2e}, 0x14000035c28)
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/internal/api/api.go:77 +0x234
github.com/neo4j/cli/neo4j-cli/aura/internal/subcommands/tenant.NewCmd.NewGetCmd.func2(0x140001bc008, {0x14000095470?, 0x4?, 0x104d7ed7d?})
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/internal/subcommands/tenant/get.go:26 +0xb4
github.com/spf13/cobra.(*Command).execute(0x140001bc008, {0x14000095440, 0x1, 0x1})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0x834
github.com/spf13/cobra.(*Command).ExecuteC(0x140001a2308)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).Execute(0x140000d2620?)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041 +0x1c
main.main()
	/home/runner/work/aura-cli/aura-cli/neo4j-cli/aura/cmd/main.go:28 +0x94
jgiffard@jgWorkMacBookPro ~ %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions