forjj secrets edit segfault
Created by: clarsonneur
This error happens on a path which should not exist, but stay visible. The error happen when we set a value to this secret path.
$ forjj secrets edit app/jenkins/aws-iam-arn-slave
branch HEAD, build_date 2018-07-28_23:09:14_+0200, build_commit c79be8b102c090bfa12a76e6157273bc6074345e, build_tag false.
WARNING ! forjj/forjfile.(*Forge).Load: Both, a Forjfile and a Forjfile model were loaded. The model has been ignored.
2018/07/31 11:23:29 Organization : 'pdxc-software-factory'
WARNING ! main.(*Forj).init_driver_flags: No actions to add flags.
WARNING ! main.(*Forj).init_driver_flags: No actions to add flags.
WARNING ! main.(*Forj).init_driver_flags: No actions to add flags.
WARNING ! forjj/vendor/github.com/forj-oss/forjj-modules/cli.(*ForjObject).AddInstanceField: Field pro-deployment already added in app-jenkins. Ignored.
2018/07/31 11:23:31 Set default upstream application to 'github'
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x75ef42]
goroutine 1 [running]:
forjj/vendor/github.com/forj-oss/goforjj.(*ValueStruct).Equal(0xc42015bdf8, 0x0, 0x7ffef60198fc)
/go/workspace/src/forjj/vendor/github.com/forj-oss/goforjj/value.go:162 +0x32
forjj/creds.(*yamlSecure).setObjectValue(0xc4201af4a0, 0x8fb4a3, 0x5, 0x7ffef60198f0, 0x3, 0x7ffef60198f4, 0x7, 0x7ffef60198fc, 0x11, 0xc42015bdf8, ...)
/go/workspace/src/forjj/creds/yaml_secure.go:174 +0x147
forjj/creds.(*Secure).SetObjectValue(0xb89af0, 0xc420164ab8, 0x3, 0x8fb4a3, 0x5, 0x7ffef60198f0, 0x3, 0x7ffef60198f4, 0x7, 0x7ffef60198fc, ...)
/go/workspace/src/forjj/creds/creds.go:284 +0x105
main.(*secretsEdit).doEdit(0xb89888)
/go/workspace/src/forjj/secrets_edit.go:124 +0x8dd
main.(*secrets).action(0xb897f0, 0xc420429cf4, 0xc)
/go/workspace/src/forjj/secrets.go:54 +0xb8
main.(*secrets).(main.action)-fm(0xc420429cf4, 0xc)
/go/workspace/src/forjj/app.go:243 +0x3e
main.main()
/go/workspace/src/forjj/forjj.go:52 +0x1ed