Uploaded image for project: 'Konveyor Tackle'
  1. Konveyor Tackle
  2. TACKLE-633

[Regression] Job function: Deleting Job function gives" Request failed with status code 500" error

XMLWordPrintable

    • None

      Steps to reproduce:
      1. Login as Admin ->Developer
      2. Controls-->Created Multiple Job Functions
      3. Click on Delete
      Actual Result: Danger alert:Request failed with status code 500

      tackle-hub log :

      {"level":"error","ts":1652953269.5593264,"logger":"api","msg":"Delete failed.","url":"/jobfunctions/34","error":"FOREIGN KEY constraint failed","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/opt/app-root/pkg/mod/github.com/go-logr/zapr@v0.3.0/zapr.go:132\ngithub.com/konveyor/controller/pkg/logging.(*Logger).Error\n\t/opt/app-root/pkg/mod/github.com/konveyor/controller@v0.8.0/pkg/logging/logger.go:109\ngithub.com/konveyor/tackle2-hub/api.(*BaseHandler).deleteFailed\n\t/opt/app-root/src/api/base.go:158\ngithub.com/konveyor/tackle2-hub/api.JobFunctionHandler.Delete\n\t/opt/app-root/src/api/jobfunction.go:129\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\ngithub.com/konveyor/tackle2-hub/auth.AuthorizationRequired.func1\n\t/opt/app-root/src/auth/middleware.go:34\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\ngithub.com/gin-gonic/gin.CustomRecoveryWithWriter.func1\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/recovery.go:99\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\ngithub.com/gin-gonic/gin.LoggerWithConfig.func1\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/logger.go:241\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\ngithub.com/gin-gonic/gin.CustomRecoveryWithWriter.func1\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/recovery.go:99\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\ngithub.com/gin-gonic/gin.LoggerWithConfig.func1\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/logger.go:241\ngithub.com/gin-gonic/gin.(*Context).Next\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\ngithub.com/gin-gonic/gin.(*Engine).handleHTTPRequest\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:489\ngithub.com/gin-gonic/gin.(*Engine).ServeHTTP\n\t/opt/app-root/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:445\nnet/http.serverHandler.ServeHTTP\n\t/usr/lib/golang/src/net/http/server.go:2868\nnet/http.(*conn).serve\n\t/usr/lib/golang/src/net/http/server.go:1933"}

      [GIN] 2022/05/19 - 09:41:09 | 500 | 1.048529ms | 192.168.49.1 | DELETE "/jobfunctions/34"
      [GIN] 2022/05/19 - 09:41:09 | 500 | 1.066408ms | 192.168.49.1 | DELETE "/jobfunctions/34"

              jortel Jeff Ortel
              rhn-support-kpunwatk Karishma Punwatkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: