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

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.2.0, 2.3.0
    • Fix Version/s: None
    • Component/s: Sentry
    • Labels:
      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

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

              Dates

              • Created:
                Updated: