Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-662

Change filter ownership script should validate filter is shared with target user

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.1.3.9, 4.2.0.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Critical Points:
      0

      Description

      The change filter ownership script throws an exception like the following when changing the owner to someone the filter is not shared with. The script should validate this before running and give a more specific error message.

      2016-03-16 11:41:51,193 http-bio-12205-exec-142 ERROR u837608 701x6963x1 e2k9sx 10.159.75.46 /rest/scriptrunner/latest/canned/com.onresolve.scriptrunner.canned.jira.admin.ChangeSharedEntityOwnership [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: User (U523111(u523111)) does not have permission to see entity - SearchRequest:38752com.atlassian.jira.exception.PermissionException: User (U523111(u523111)) does not have permission to see entity - SearchRequest:38752        at com.atlassian.jira.favourites.DefaultFavouritesManager.checkPermissions(DefaultFavouritesManager.java:338)        at com.atlassian.jira.favourites.DefaultFavouritesManager.addFavourite(DefaultFavouritesManager.java:40)        at com.atlassian.jira.favourites.FavouritesManager$addFavourite$1.call(Unknown Source)        at com.onresolve.scriptrunner.canned.jira.admin.ChangeSharedEntityOwnership.chownSearchRequest(ChangeSharedEntityOwnership.groovy:197)        at com.onresolve.scriptrunner.canned.jira.admin.ChangeSharedEntityOwnership.doScript(ChangeSharedEntityOwnership.groovy:323)        at com.onresolve.scriptrunner.canned.jira.admin.ChangeSharedEntityOwnership$doScript.callCurrent(Unknown Source)        at com.onresolve.scriptrunner.canned.jira.admin.ChangeSharedEntityOwnership.doScript(ChangeSharedEntityOwnership.groovy:202)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tbatagiannis Thanos Batagiannis
              Reporter:
              amarkham Adam Markham
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: