2022-10-19 15:05:57,532+0200 http-nio-8080-exec-370532 DEBUG anonymous 905x51145501x44 - ... /rest/bitbucket/1.0/webhook/gitlab [c.a.o.c.lib.token.DefaultTokenService] Trying to get tokens for an integration with a client id - e0273abb7fdd387cd5f469232754fea80b31c938e699cc7a4a7a6f80c0c12f8c
2022-10-19 15:05:57,839+0200 http-nio-8080-exec-370532 TRACE anonymous 905x51145501x44 - ... /rest/bitbucket/1.0/webhook/gitlab [c.a.o.c.lib.token.DefaultTokenService] Got OAuth Provider response: [400], [{"error":"invalid_grant","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."}
...
... /rest/bitbucket/1.0/webhook/gitlab [c.a.o.c.lib.token.DefaultTokenService] Got OAuth Provider response: [400], [{"error":"invalid_grant","error_description":"The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to
another client."}
]
/rest/bitbucket/1.0/webhook/gitlab [c.a.j.p.d.gitlab.impl.OAuthTokenProviderImpl] Failed to get access token
com.atlassian.oauth2.client.api.lib.token.TokenServiceException: The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued
to another client.
at com.atlassian.oauth2.client.lib.token.DefaultTokenService.getToken(DefaultTokenService.java:146)
at com.atlassian.oauth2.client.lib.token.DefaultTokenService.forceRefresh(DefaultTokenService.java:71)
...
at com.sun.proxy.$Proxy3722.forceRefresh(Unknown Source)
at com.atlassian.jira.plugins.dvcs.auth.OAuth2TokenHandler.refreshToken(OAuth2TokenHandler.java:52)
at com.atlassian.jira.plugins.dvcs.auth.OAuth2Service.getAccessToken(OAuth2Service.java:97)
at com.atlassian.jira.plugins.dvcs.gitlab.impl.OAuthTokenProviderImpl.getAccessToken(OAuthTokenProviderImpl.java:40)
at com.atlassian.jira.plugins.dvcs.gitlab.impl.GitLabRestClientImpl.createOAuthFilter(GitLabRestClientImpl.java:453)
at com.atlassian.jira.plugins.dvcs.gitlab.impl.GitLabRestClientImpl.getUser(GitLabRestClientImpl.java:76)
at com.atlassian.jira.plugins.dvcs.spi.gitlab.GitLabCommunicator.getUser(GitLabCommunicator.java:260)
at com.atlassian.jira.plugins.dvcs.service.remote.CachingCommunicator$UserLoader.load(CachingCommunicator.java:275)
at com.atlassian.jira.plugins.dvcs.service.remote.CachingCommunicator$UserLoader.load(CachingCommunicator.java:271)
at com.atlassian.cache.memory.MemoryCacheManager$2.load(MemoryCacheManager.java:192)
at com.atlassian.cache.memory.DelegatingCache.lambda$get$0(DelegatingCache.java:163)
at com.atlassian.cache.memory.DelegatingCache$$Lambda$252/424410698.get(Unknown Source)
at com.atlassian.cache.memory.DelegatingCache.lambda$get$1(DelegatingCache.java:191)
...
... /rest/bitbucket/1.0/repository/21039/softsync [c.a.j.p.d.gitlab.impl.OAuthTokenProviderImpl] Failed to get access token
com.atlassian.oauth2.client.api.lib.token.TokenServiceException: The requested scope is invalid, unknown, or malformed.
at com.atlassian.oauth2.client.lib.token.DefaultTokenService.getToken(DefaultTokenService.java:146)
at com.atlassian.oauth2.client.lib.token.DefaultTokenService.forceRefresh(DefaultTokenService.java:71)
...
at com.sun.proxy.$Proxy3722.forceRefresh(Unknown Source)
at com.atlassian.jira.plugins.dvcs.auth.OAuth2TokenHandler.refreshToken(OAuth2TokenHandler.java:52)
at com.atlassian.jira.plugins.dvcs.auth.OAuth2Service.getAccessToken(OAuth2Service.java:97)
at com.atlassian.jira.plugins.dvcs.gitlab.impl.OAuthTokenProviderImpl.getAccessToken(OAuthTokenProviderImpl.java:40)
at com.atlassian.jira.plugins.dvcs.gitlab.impl.GitLabRestClientImpl.createOAuthFilter(GitLabRestClientImpl.java:453)
at com.atlassian.jira.plugins.dvcs.gitlab.impl.GitLabRestClientImpl.getMergeRequests(GitLabRestClientImpl.java:235)
Looks like they fixed a similar issue in 8.20.17, but I'm not sure it's directly tied to our issue here:
JSWSERVER-21370Duplicate values in AO_E8B6CC_COMMIT leads to DVCS MessageConsumer failure.That issue lists 8.20.17 and 9.5.0 as the fixes, nothing in 9.4.x.
Guess we'll wait and see what is in 9.4.3 and 8.20.18.