App-hook deletion messages appear in API response but not in UI dialog

XMLWordPrintable

    • 2
    • Severity 2 - Major
    • 31

      Issue Summary

      • Setup a custom app-hook for the project and repository deletion. For example, the custom hook only allows certain project admins to delete the project.
      • The app hook is using the provided EventListeners for ProjectDeletionRequestedEvent and RepositoryDeletionRequestedEvent and then it returns a customised message certain conditions are met.
      • This message is clearly appearing in the network tab of the browser devtools in the response payload but fails to show on the UI dialog. The message was rendering as expected on the UI dialog in version 7.21.

      Steps to Reproduce

      • Setup an app-hook using the EventListeners for ProjectDeletionRequestedEvent and RepositoryDeletionRequestedEvent.
      • Trigger project or repository deletion as a project admin that should be prevented with a custom message.
      • Observe the network tab showing the customized message in the response payload.
      • Observe the UI dialog where the message fails to show.

      Expected Results

      The customized message from the app-hook event listeners should render correctly on the UI dialog during project or repository deletion.

      Actual Results

      • The customized message appears correctly in the response payload in the network tab of the browser devtools but does not render on the UI dialog.
      • This issue is reproducible from version 9.4 onwards and was not present in version 7.21 or 8.19.20.
      • The below message appears in the logs:
        09:35:47,247 DEBUG [http-nio-8801-exec-2] ... Mapping ProjectDeletionCanceledException to REST response 400 - Project
        deletion was canceled. 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

              Assignee:
              Carlos Sanchez Rosa
              Reporter:
              Priyata Waje
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: