com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource

Atlassian JIRA | Alexey Efimov | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {code} 2015-07-06 18:50:50,171 ERROR [http-nio-7990-exec-11] some_user @1BEK3RTx1130x205640x8 1nc1728 127.0.0.1 "GET /rest/api/latest/projects/PROJECT/repos/repo/pul l-requests/38882/merge HTTP/1.0" c.a.s.p.SomeMergeCheck Error checking pull request for required something com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36) ~[stash-platform-3.10.2.jar:na] at com.acme.stash.plugin.SomeMergeCheck.check(SomeMergeCheck.java:51) ~[na:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.doCheck(DefaultMergeRequestCheckService.java:73) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.checkMergeability(DefaultMergeRequestCheckService.java:57) [stash-service-impl-3.10 .2.jar:na] at com.atlassian.stash.internal.pull.DefaultPullRequestService.canMerge(DefaultPullRequestService.java:365) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.rest.pull.PullRequestResource.canMerge(PullRequestResource.java:431) [stash-rest-3.10.2.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.3.7_1435123126000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:88) [StashAuthenticationFilter.class:n a] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:11 1) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPlugi nAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) [atlassian-trusted-apps-core-4. 0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) [atlassian-oauth-service-provider-plugin-1.9.10_143512 3126000.jar:na] {code} The code in 51 line of SomeMergeCheck: {code} Commit from = commitService.getCommit(new CommitRequest.Builder( pullRequest.getFromRef().getRepository(), pullRequest.getFromRef().getLatestCommit()).build()); {code}

    Atlassian JIRA | 2 years ago | Alexey Efimov
    com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource
  2. 0

    {code} 2015-07-06 18:50:50,171 ERROR [http-nio-7990-exec-11] some_user @1BEK3RTx1130x205640x8 1nc1728 127.0.0.1 "GET /rest/api/latest/projects/PROJECT/repos/repo/pul l-requests/38882/merge HTTP/1.0" c.a.s.p.SomeMergeCheck Error checking pull request for required something com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36) ~[stash-platform-3.10.2.jar:na] at com.acme.stash.plugin.SomeMergeCheck.check(SomeMergeCheck.java:51) ~[na:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.doCheck(DefaultMergeRequestCheckService.java:73) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.checkMergeability(DefaultMergeRequestCheckService.java:57) [stash-service-impl-3.10 .2.jar:na] at com.atlassian.stash.internal.pull.DefaultPullRequestService.canMerge(DefaultPullRequestService.java:365) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.rest.pull.PullRequestResource.canMerge(PullRequestResource.java:431) [stash-rest-3.10.2.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.3.7_1435123126000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:88) [StashAuthenticationFilter.class:n a] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:11 1) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPlugi nAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) [atlassian-trusted-apps-core-4. 0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) [atlassian-oauth-service-provider-plugin-1.9.10_143512 3126000.jar:na] {code} The code in 51 line of SomeMergeCheck: {code} Commit from = commitService.getCommit(new CommitRequest.Builder( pullRequest.getFromRef().getRepository(), pullRequest.getFromRef().getLatestCommit()).build()); {code}

    Atlassian JIRA | 2 years ago | Alexey Efimov
    com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource
  3. 0

    {code} 2015-07-06 18:50:50,171 ERROR [http-nio-7990-exec-11] some_user @1BEK3RTx1130x205640x8 1nc1728 127.0.0.1 "GET /rest/api/latest/projects/PROJECT/repos/repo/pul l-requests/38882/merge HTTP/1.0" c.a.s.p.SomeMergeCheck Error checking pull request for required something com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36) ~[stash-platform-3.10.2.jar:na] at com.acme.stash.plugin.SomeMergeCheck.check(SomeMergeCheck.java:51) ~[na:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.doCheck(DefaultMergeRequestCheckService.java:73) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.checkMergeability(DefaultMergeRequestCheckService.java:57) [stash-service-impl-3.10 .2.jar:na] at com.atlassian.stash.internal.pull.DefaultPullRequestService.canMerge(DefaultPullRequestService.java:365) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.rest.pull.PullRequestResource.canMerge(PullRequestResource.java:431) [stash-rest-3.10.2.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.3.7_1435123126000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:88) [StashAuthenticationFilter.class:n a] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:11 1) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPlugi nAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) [atlassian-trusted-apps-core-4. 0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) [atlassian-oauth-service-provider-plugin-1.9.10_143512 3126000.jar:na] {code} The code in 51 line of SomeMergeCheck: {code} Commit from = commitService.getCommit(new CommitRequest.Builder( pullRequest.getFromRef().getRepository(), pullRequest.getFromRef().getLatestCommit()).build()); {code}

    Atlassian JIRA | 2 years ago | Alexey Efimov
    com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {code} 2015-07-06 18:50:50,171 ERROR [http-nio-7990-exec-11] some_user @1BEK3RTx1130x205640x8 1nc1728 127.0.0.1 "GET /rest/api/latest/projects/PROJECT/repos/repo/pul l-requests/38882/merge HTTP/1.0" c.a.s.p.SomeMergeCheck Error checking pull request for required something com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36) ~[stash-platform-3.10.2.jar:na] at com.acme.stash.plugin.SomeMergeCheck.check(SomeMergeCheck.java:51) ~[na:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.doCheck(DefaultMergeRequestCheckService.java:73) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.checkMergeability(DefaultMergeRequestCheckService.java:57) [stash-service-impl-3.10 .2.jar:na] at com.atlassian.stash.internal.pull.DefaultPullRequestService.canMerge(DefaultPullRequestService.java:365) [stash-service-impl-3.10.2.jar:na] at com.atlassian.stash.internal.rest.pull.PullRequestResource.canMerge(PullRequestResource.java:431) [stash-rest-3.10.2.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.3.7_1435123126000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:88) [StashAuthenticationFilter.class:n a] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:11 1) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPlugi nAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103) [atlassian-trusted-apps-core-4. 0.0.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79) [atlassian-oauth-service-provider-plugin-1.9.10_143512 3126000.jar:na] {code} The code in 51 line of SomeMergeCheck: {code} Commit from = commitService.getCommit(new CommitRequest.Builder( pullRequest.getFromRef().getRepository(), pullRequest.getFromRef().getLatestCommit()).build()); {code}

    Atlassian JIRA | 2 years ago | Alexey Efimov
    com.atlassian.stash.exception.AuthorisationException: You are not permitted to access this resource
  6. 0

    Jenkins webhook trigger failing due to permissions?

    GitHub | 3 years ago | doughanks
    java.lang.RuntimeException: You are not permitted to access this resource

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.stash.exception.AuthorisationException

      You are not permitted to access this resource

      at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing()
    2. com.atlassian.stash
      ExceptionRewriteAdvice.afterThrowing
      1. com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36)[stash-platform-3.10.2.jar:na]
      1 frame
    3. com.acme.stash
      SomeMergeCheck.check
      1. com.acme.stash.plugin.SomeMergeCheck.check(SomeMergeCheck.java:51)[na:na]
      1 frame
    4. com.atlassian.stash
      PullRequestResource.canMerge
      1. com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.doCheck(DefaultMergeRequestCheckService.java:73)[stash-service-impl-3.10.2.jar:na]
      2. com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.checkMergeability(DefaultMergeRequestCheckService.java:57)[stash-service-impl-3.10.2.jar:na]
      3. com.atlassian.stash.internal.pull.DefaultPullRequestService.canMerge(DefaultPullRequestService.java:365)[stash-service-impl-3.10.2.jar:na]
      4. com.atlassian.stash.internal.rest.pull.PullRequestResource.canMerge(PullRequestResource.java:431)[stash-rest-3.10.2.jar:na]
      4 frames
    5. com.atlassian.applinks
      ContextFilter.doFilter
      1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)[applinks-plugin-4.3.7_1435123126000.jar:na]
      1 frame
    6. com.atlassian.stash
      BeforeLoginPluginAuthenticationFilter.doFilter
      1. com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:88)[StashAuthenticationFilter.class:na]
      2. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111)[BeforeLoginPluginAuthenticationFilter.class:na]
      3. com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77)[BeforeLoginPluginAuthenticationFilter.class:na]
      3 frames
    7. com.atlassian.security
      TrustedApplicationsFilter.doFilter
      1. com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103)[atlassian-trusted-apps-core-4.0.0.jar:na]
      1 frame
    8. com.atlassian.oauth
      OAuthFilter.doFilter
      1. com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:79)[atlassian-oauth-service-provider-plugin-1.9.10_1435123126000.jar:na]
      1 frame