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

"Change dashboard or filter ownership" filter broken

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.1.3.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      JIRA 6.4.12

    • Critical Points:
      0

      Description

      Summary

      Steps to reproduce:

      1. Create user using uppercase user name (e.g TEST1, TEST2)
      2. Create filter (e.g. ABCDEF)
      3. "Change dashboard or filter ownership" click

      Expected Results

      Change filter ownership

      Actual Results

      Builtin Scripts JIRA.png

      com.atlassian.jira.exception.PermissionException: User (TEST2(test2)) does not have permission to see entity - SearchRequest:10100
      	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)
      

      Dev Info.

      com/onresolve/scriptrunner/canned/jira/admin/ChangeSharedEntityOwnership.groovy

      186        GenericValue gv = gd.findByPrimaryKey("SearchRequest", ["id": searchRequest.getId()])
      187        log.debug gv
      188        gv.set('author', targetUser)
      189        gv.set('user', targetUser)
      190        gv.store()
      

      targetUser String is username. But searchrequest table of authorname, username is userkey.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jechlin Jamie Echlin
              Reporter:
              atlassian_support@ricksoft.jp Ricksoft Inc.
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: