Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST request status SONAR within pull request access denied

RRM Admin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 6, 2019

When a specific user opens a pull request he doesn't get the sonar status. An other user on the same computer and same browser gets all the info. So it seems user related. I've compared both users and everything seems the same. Does anyone has a solution?

* ERROR LOG *

2019-02-05 17:23:55,561 WARN [http-nio-7990-exec-5] @%USER%@C4TJESx1043x112284x0 14n9y9n 192.168.11.254,127.0.0.1 "GET /rest/sonar4stash/1.0/statistics HTTP/1.1" c.m.s.s.s.s.SonarStatisticsResource SONAR: Error while generating Sonar issues data for repository

"RPIFW" and
pull request "#157 / Feature/RPIFW-473 implement nfc communication"
java.lang.RuntimeException: Not authorized
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector.ch$mibex$stash$sonar4stash$sonar$issues$IssuesInPullRequestCollector$$findIssuesInComponents(IssuesInPullRequestCollector.scala:295)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:268)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:267)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1$$anon$1.perform(Utils.scala:48)
at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:58)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1.apply(Utils.scala:46)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.lang.Thread.run(Thread.java:748)
... 1 frame trimmed
2019-02-05 17:23:55,562 ERROR [SONAR-3] c.m.s.s.s.i.IssuesInPullRequestCollector SONAR: failed to run async
java.lang.RuntimeException: Not authorized
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector.ch$mibex$stash$sonar4stash$sonar$issues$IssuesInPullRequestCollector$$findIssuesInComponents(IssuesInPullRequestCollector.scala:295)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:268)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:267)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1$$anon$1.perform(Utils.scala:48)
at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:58)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1.apply(Utils.scala:46)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.lang.Thread.run(Thread.java:748)
... 1 frame trimmed
2019-02-05 17:23:55,577 ERROR [SONAR-14] c.m.s.s.s.i.IssuesInPullRequestCollector SONAR: failed to run async
java.lang.RuntimeException: Not authorized
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector.ch$mibex$stash$sonar4stash$sonar$issues$IssuesInPullRequestCollector$$findIssuesInComponents(IssuesInPullRequestCollector.scala:295)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:268)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:267)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1$$anon$1.perform(Utils.scala:48)
at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:58)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1.apply(Utils.scala:46)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.lang.Thread.run(Thread.java:748)
... 1 frame trimmed
2019-02-05 17:23:55,577 ERROR [SONAR-0] c.m.s.s.s.i.IssuesInPullRequestCollector SONAR: failed to run async
java.lang.RuntimeException: Not authorized
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector.ch$mibex$stash$sonar4stash$sonar$issues$IssuesInPullRequestCollector$$findIssuesInComponents(IssuesInPullRequestCollector.scala:295)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:268)
at ch.mibex.stash.sonar4stash.sonar.issues.IssuesInPullRequestCollector$$anonfun$6$$anonfun$apply$10.apply(IssuesInPullRequestCollector.scala:267)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1$$anon$1.perform(Utils.scala:48)
at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:58)
at ch.mibex.stash.sonar4stash.Utils$$anonfun$runAsyncInUserContext$1.apply(Utils.scala:46)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.lang.Thread.run(Thread.java:748)
... 1 frame trimmed

1 answer

1 accepted

0 votes
Answer accepted
Michael Rüegg _Mibex Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2019

Hi,

The message "Not authorized" indicates that this user is not allowed to access this Sonar project. Are you using global server credentials or user-specific access tokens to access the Sonar server?

Best regards,
Michael (app vendor)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events