Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-2552

Drop database removes the DB privileges even if the operation fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.2.0, 2.3.0
    • None
    • Sentry
    • None

    Description

      Command "drop database test_db (without cascade)" runs fail, and throws exception -> InvalidOperationException(message:Database test_db is not empty. One or more tables exist.)
      But DbNotificationListener will create a NotificationEvent, then the privileges on test_db will be removed.
      So should Sentry implement its own NotificationListener and check Event.getStatus before creating a NotificationEvent?

      Attachments

        Activity

          People

            Unassigned Unassigned
            honglun HonglunChen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: