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
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)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.