-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 8.18.0, 8.19.10
-
Component/s: AppLinks
-
1
-
Severity 3 - Minor
-
2
Issue Summary
Corresponding Confluence Issue: CONFSERVER-83364.
Corresponding Jira issue : JRASERVER-75719
Once the first application link is configured, the OAuth details are set. Any subsequent base url changes do not update the OAuth configuration. This leads to broken links on the "Authorized applications" page.
N.B. The authorisation works fine. So far only the links have been identified as broken.
This is reproducible on Data Center: yes
Steps to Reproduce
- Configure an application link between Bitbucket and Jira.
- Change base url in Bitbucket or in Jira.
- Delete the application link from both applications.
- Create a new application link between Bitbucket and Jira.
- Perform user authorisation between Bitbucket and Jira..
- Go to "Authorized applications" in user profile
- in Jira: secure/ViewProfile.jspa?selectedTab=com.atlassian.oauth.serviceprovider:jira-user-access-tokens
- in Bitbucket: Base_URL/plugins/servlet/oauth/users/access-tokens
Expected Results
"Authorized applications" page displays correct links.
Actual Results
"Authorized applications" page displays links pointing to the old base url of the application, whose base url has changed.
Authorisation works correctly (e.g. Confluence displays Jira issue summaries). It's only the "Authorized applications" page that is broken.
Workaround
Steps to resolve the issue: Kindly perform the below steps in Bitbucket.
- Find the stale OAuth configuration in Bitbucket DC:
SELECT * FROM plugin_setting WHERE key_name ='com.atlassian.oauth.consumer.ConsumerService:host.__HOST_SERVICE__' ;
You should get precisely 1 result. If you got 0 or more than 1 rows, abort the procedure and contact Atlassian Support.- The result looks like this:
Atlassian Bitbucket at http://myOLDcompanyname.com/bitbucket
- If this is indeed the old base URL, you need to update plugin_setting with correct new base url: Please note that you only need to update URL as suggested below and not the entire key_value.
UPDATE plugin_setting SET key_value = '<entier value as it is just replace description=Atlassian Bitbucket at http://myOLDcompanyname.com/bitbucket with Atlassian Jira at http://myNEWcompanyname.com/bitbucket>' WHERE key_name ='com.atlassian.oauth.consumer.ConsumerService:host.__HOST_SERVICE__' ;
Sample:
update plugin_setting set key_value='#java.util.Properties #Tue Feb 06 14:59:53 AEDT 2024 privateK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F9TcCgYEAisz1lisfFuPtu6Eg3ITLg50y1w7whyuWDsUyeEYP+s1EFkCz6BHSe/y+AGp6f0aSP1uFDnGwo5BEjhwa6aKdh/6vYVvpyf21rLXqm9Wlb5yXg/qi5zD8ij0kyeFnqZr8kQw56FKQ93KpBm53Qc3vsjAOlrtK9GimKl+VeGtIrEkCgYACJRxttZqSXkXnY4TLD/HMPn2emly0lLhQQzvHMBab2Ui/9yYHL1zjiydjC6gf8FqdfkDYbA64NwSvm5OEpOPclOwvayDaMWlH33sbfkVKskPtt1QEzoYjRcJI/MgcZfah+6D0P0CpugqvHNrsK8hmlgm5qKMeLklKusqLJN31YQKBgGH+9BOJoR+e2OTVLCYmxOEgjAuvxy4N9+qp5AcvHVFWs1caCowxEHp/dt1Umftnv+7faacHNUzKurlT0kbhkLRpjMYVARgp9BdDariTsdlmnINXLXn5Nb5oROIquTIMm3fdYC1EMBj2kkpQ+rIslUdniuxG4PSD/K03/o5vJzWA name=Bitbucket signatureMethod=RSA_SHA1 description=Atlassian Bitbucket at http://myNEWcompanyname.com/bitbucket publicKey=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjz8Ord8/tP90m9Wg+Pdf/hhy4wSpKG4SgP/nPafcX4FRdE682y6/oDBb8nI8gFRik2KwRKx5sTIKcrAcw/PI/4E3BC3dbI6xqn1OuLuv8vGw8GZjOnIN/6I/9eibbMFuEfljfdhI5gB8epK44weZe9KBQA+dG4l/sBdUw1sriLQ+Dl2yk4Agoq9iUsMv3IhYSbR74Shda1iPkQ8LE/DWmnw8MzcRtomQlR67H8XVvYP0PYddGPnIkM38c6w8vmr0+aZkYisWPuVNl/O9qQ4NhN8HePUl3cg/afo/O/3OHUHcfsOksB7ZyL2ehzEyY+TKQ011BaHiI01TXQ6oKFti+wIDAQAB key=Bitbucket\:4364791997' WHERE key_name ='com.atlassian.oauth.consumer.ConsumerService:host.__HOST_SERVICE__' ;
- Remove the old application link (from both Jira/confluence and Bitbucket).
- Restart Bitbucket
- Create a new application link.
Steps to resolve the issue: Kindly perform the below steps in JIRA.
- Find the stale OAuth configuration:
SELECT description FROM oauthconsumer WHERE consumerservice = '__HOST_SERVICE__'
You should get exactly 1 result. If you got 0 or more than 1 rows, abort the procedure and contact Atlassian Support.- The result looks like this:
Atlassian Jira at http://myOLDcompanyname.com/jira
- If this is indeed the old base URL, update it by running:
UPDATE oauthconsumer SET description = 'Atlassian Jira at http://myNEWcompanyname.com/jira' WHERE consumerservice = '__HOST_SERVICE__'
- Remove the old application link (from both Jira and Bitbucket).
- Restart Jira
- Create a new application link.