Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11486

ProjectPermissionModificationRequestedEvent not raised when setting default project permission

    XMLWordPrintable

Details

    Description

      A ProjectPermissionModificationRequestedEvent is not raised when changing the default permission of a project from "No Access" to something else.

      Steps to reproduce

      1. Create a project and set the default project permission to "No Access".
      2. Add an event listener (e.g. to a plugin) which listens to ProjectPermissionModificationRequestedEvent and logs a message when the listener is triggered.
      3. Change the default project permission from "No Access" to something else (e.g. PROJECT_READ).

      Expected

      A ProjectPermissionModificationRequestedEvent is raised (and a message is logged via the event listener).

      Actual

      No ProjectPermissionModificationRequestedEvent is raised (and no message is logged via the event listener).

      Note changing the default project permission from PROJECT_READ to PROJECT_WRITE or vice versa does raise the ProjectPermissionModificationRequestedEvent. Only changing the permission to or from "No Access" does not raise the event.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              voseghale VICTOR-OSEGHALE
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: