{"action":"opened","issue":{"url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/120","repository_url":"https://api.github.com/repos/davido/gerrit-oauth-provider","labels_url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/120/comments","events_url":"https://api.github.com/repos/davido/gerrit-oauth-provider/issues/120/events","html_url":"https://github.com/davido/gerrit-oauth-provider/issues/120","id":411884803,"node_id":"MDU6SXNzdWU0MTE4ODQ4MDM=","number":120,"title":"Issues with BitBucket oauth plugin when connecting to gerrit","user":{"login":"VahagnBleyan","id":47777032,"node_id":"MDQ6VXNlcjQ3Nzc3MDMy","avatar_url":"https://avatars3.githubusercontent.com/u/47777032?v=4","gravatar_id":"","url":"https://api.github.com/users/VahagnBleyan","html_url":"https://github.com/VahagnBleyan","followers_url":"https://api.github.com/users/VahagnBleyan/followers","following_url":"https://api.github.com/users/VahagnBleyan/following{/other_user}","gists_url":"https://api.github.com/users/VahagnBleyan/gists{/gist_id}","starred_url":"https://api.github.com/users/VahagnBleyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VahagnBleyan/subscriptions","organizations_url":"https://api.github.com/users/VahagnBleyan/orgs","repos_url":"https://api.github.com/users/VahagnBleyan/repos","events_url":"https://api.github.com/users/VahagnBleyan/events{/privacy}","received_events_url":"https://api.github.com/users/VahagnBleyan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-19T11:49:43Z","updated_at":"2019-02-19T11:49:43Z","closed_at":null,"author_association":"NONE","body":"I used stable-2.16 branch and built gerrit-oauth-provider plugin with bazel, then copied newly generated oauth.jar to plugins dir and re-initialized gerrit. \r\nGerrit version is 2.16.5\r\n\r\nOn bitbucket side I set the callback url to http://gerrit.domain.com:8080/oauth\r\nAfter log in I see \"Server Error\" - http://gerrit.domain.com:8080/oauth?state=V_mJ7zl_bdAD_0ZCHANGEDAEo_q_T3D9IMRRBSZyUe9A&code=Qq3d3nCHANGEDcYsGx\r\n\r\nNow I'm getting this error when trying to sign in to gerrit site with BitBucket oauth\r\n`[2019-02-19 09:01:17,126] [HTTP-76] WARN  org.eclipse.jetty.server.HttpChannel : /oauth\r\njava.lang.IllegalStateException: This token object was not constructed by scribe and does not have a rawResponse\r\n        at org.scribe.model.Token.getRawResponse(Token.java:54)\r\n        at com.googlesource.gerrit.plugins.oauth.BitbucketOAuthService.getAccessToken(BitbucketOAuthService.java:113)\r\n        at com.google.gerrit.httpd.auth.oauth.OAuthSession.login(OAuthSession.java:105)\r\n        at com.google.gerrit.httpd.auth.oauth.OAuthWebFilter.doFilter(OAuthWebFilter.java:105)\r\n        at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:121)\r\n        at com.google.gerrit.httpd.GwtCacheControlFilter.doFilter(GwtCacheControlFilter.java:72)\r\n        at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:133)\r\n        at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:135)\r\n        at com.google.gerrit.httpd.RequestMetricsFilter.doFilter(RequestMetricsFilter.java:57)\r\n        at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:69)\r\n        at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)\r\n        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)\r\n        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)\r\n        at com.googlesource.gerrit.plugins.ootb.FirstTimeRedirect.doFilter(FirstTimeRedirect.java:63)\r\n        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)\r\n        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)\r\n        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)\r\n        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)\r\n        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)\r\n        at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:56)\r\n        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n        at org.eclipse.jetty.server.Server.handle(Server.java:502)\r\n        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)\r\n        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)\r\n        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)\r\n        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\r\n        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)\r\n        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)\r\n        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)\r\n        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)\r\n        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)\r\n        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)\r\n        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)\r\n        at java.lang.Thread.run(Thread.java:748)` \r\n\r\nAny idea where to check and how to fix this ?\r\n\r\nThanks\r\n\r\n"}}
{"actor":{"display_login":"VahagnBleyan"}}