Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-2078

IdP registry service - nil pointer

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • hms-0.7
    • None
    • Identity Management
    • None
    • HMSIDM Sprint 24
    • 1
    • 1
    • None

      Description

      Request  below:

      /api/hmsidm/v1/domains/0be769dc-07d3-4beb-b205-0fc99fa1ffea/update -X PUT -H 'Content-Type: application/json' -d '{"domain_name": "domain.example", "domain_type": "rhel-idm"}'

      When running

      Unexpected response

      [PANIC RECOVER] runtime error: invalid memory address or nil pointer dereference goroutine 3420 [running]:
      github.com/labstack/echo/v4/middleware.RecoverWithConfig.func1.1.1()
      /opt/app-root/src/go/pkg/mod/github.com/labstack/echo/v4@v4.10.0/middleware/recover.go:93 +0x14e
      panic({0x12441c0, 0x1b79b20})
      /usr/lib/golang/src/runtime/panic.go:838 +0x207
      github.com/hmsidm/internal/usecase/interactor.domainInteractor.registerOrUpdateRhelIdm({}, 0xc0002d2370, 0xc000563600)
      /go/src/app/internal/usecase/interactor/domain_interactor.go:233 +0x37
      github.com/hmsidm/internal/usecase/interactor.domainInteractor.commonRegisterUpdate({}, {0xc000698b58, 0x8}, {0xc00011233b, 0x24}, 0xc0002d2370)
      /go/src/app/internal/usecase/interactor/domain_interactor.go:342 +0x1fd
      github.com/hmsidm/internal/usecase/interactor.domainInteractor.Update({}, 0xc0002d0a80, {0xc00011233b, 0x24}, 0xc0002a25e0, 0xc0002d2370?)
      /go/src/app/internal/usecase/interactor/domain_interactor.go:224 +0x90

      Expected

      Not nil response; if some error should arise because the validation, raise an error; but not a stack traces.

              cheimes@redhat.com Christian Heimes
              cheimes@redhat.com Christian Heimes
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: