Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-128

"default project permissions" with default level of No Access causes exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.1, 4.3.1
    • Fix Version/s: 4.3.4
    • Labels:
      None
    • Critical Points:
      0.7

      Description

      Default project permissions event handler gives the following exception, which means the correct permissions are not set on the project:

      2016-05-24 12:26:57,224 INFO  [http-bio-8443-exec-229] jatrue @JXTPG9x746x1203528x0 10e4o8j 10.19.154.46 "POST /projects HTTP/1.1" c.a.s.i.p.DefaultProjectService Created new project: (TEST) TEST default permissions
      2016-05-24 12:26:57,268 ERROR [AtlassianEvent::thread-4] jatrue @JXTPG9x746x1203528x0 10e4o8j 10.19.154.46 "POST /projects HTTP/1.1" c.o.scriptrunner.stash.InnerListener *************************************************************************************
      2016-05-24 12:26:57,270 ERROR [AtlassianEvent::thread-4] jatrue @JXTPG9x746x1203528x0 10e4o8j 10.19.154.46 "POST /projects HTTP/1.1" c.o.scriptrunner.stash.InnerListener Event handler failed: event: com.atlassian.stash.event.ProjectCreatedEvent file: null
      java.lang.NullPointerException: Permission is null
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) ~[guava-11.0.2-atlassian-02.jar:na]
      	at com.atlassian.stash.internal.CommonValidations.validatePermission(CommonValidations.java:20) ~[stash-service-impl-3.11.4.jar:na]
      	at com.atlassian.stash.internal.CommonValidations.validateProjectPermission(CommonValidations.java:34) ~[stash-service-impl-3.11.4.jar:na]
      	at com.atlassian.stash.internal.user.DefaultPermissionAdminService.grantAllProjectPermission(DefaultPermissionAdminService.java:789) ~[stash-service-impl-3.11.4.jar:na]
      	at com.atlassian.stash.user.PermissionAdminService$grantAllProjectPermission$0.call(Unknown Source) ~[na:na]
      	at com.onresolve.scriptrunner.canned.stash.events.DefaultProjectPermissions.doScript(DefaultProjectPermissions.groovy:70) ~[na:na]
      	... 23 frames trimmed
      

        Attachments

          Activity

            People

            Assignee:
            jechlin Jamie Echlin
            Reporter:
            jechlin Jamie Echlin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: