Problem retrieving the OAuth Request token
When my application attempts to retrieve the OAuth Request token from JIRA OSLC Plugin, there is no response. According to the logs the consumer is unknown, but the used consumer is present in the OAuth manager and active.
These are the parts of JIRA logs related to the problem:
10.1.4.1 779x47x1 - [25/Jul/2012:12:59:57 +0200] "GET /rest/oslc/latest/oauth/request_token?oauth_consumer_key=4112e8972d6e899001563cfad5a5fe35&oauth_nonce=199118&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1343214158&oauth_version=1.0&oauth_signature=sMiWcASW5g/Jcu3/NoJKsgcXY48= HTTP/1.1" 200 - 15 "-" "-" "-"
2012-07-25 12:59:57,531 http-8080-2 WARN anonymous 779x47x1 - 10.1.4.1 /rest/oslc/latest/oauth/request_token [remoteapps.modules.oauth.OAuth2LOAuthenticator] Exception authenticating request
net.oauth.OAuthException: Unknown consumer: 4112e8972d6e899001563cfad5a5fe35
Thanks for any feedback!
These are the parts of JIRA logs related to the problem:
10.1.4.1 779x47x1 - [25/Jul/2012:12:59:57 +0200] "GET /rest/oslc/latest/oauth/request_token?oauth_consumer_key=4112e8972d6e899001563cfad5a5fe35&oauth_nonce=199118&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1343214158&oauth_version=1.0&oauth_signature=sMiWcASW5g/Jcu3/NoJKsgcXY48= HTTP/1.1" 200 - 15 "-" "-" "-"
2012-07-25 12:59:57,531 http-8080-2 WARN anonymous 779x47x1 - 10.1.4.1 /rest/oslc/latest/oauth/request_token [remoteapps.modules.oauth.OAuth2LOAuthenticator] Exception authenticating request
net.oauth.OAuthException: Unknown consumer: 4112e8972d6e899001563cfad5a5fe35
Thanks for any feedback!
One answer
Ok, problem solved. The problem was the new JIRA version (5.0). Although the OSLC plugin an be installed with this version, it behaves in an unexpected way - consumer keys entered and confirmed through the plugin´s REST interface are ignored. Consumer keys entered through JIRA´s "Application Links" interface are accepted, but they don´t work with the OSLC plugin scope.