-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.2.7, 6.3.13, 7.2.12, 7.6.4, 7.8.1, 7.13.3
-
6.02
-
24
-
Severity 3 - Minor
-
2
-
Summary
Stash User Authorized application (OAuth token) page showing old JIRA URL
- Stash is now known as Bitbucket Server
Steps to Reproduce
- Setup JIRA with the URL http://jira.domain1
- Create OAuth Application Link between JIRA and Stash
- Allow JIRA user to access Stash data
- Check Stash user "Authorized applications" page http://stash.domain:7990/plugins/servlet/oauth/users/access-tokens
It is showing Stash server allow JIRA server on jira.domain1 to access Stash data - Revoke the access
- Delete the Application Link
- Change JIRA server Base URL to http://jira.domain2
- Access JIRA server with the URL http://jira.domain2
- Create OAuth Application Link between JIRA and Stash again
- Allow JIRA user to access Stash data
- Check Stash user "Authorized applications" page http://stash.domain:7990/plugins/servlet/oauth/users/access-tokens
It is still showing Stash server allow JIRA server on jira.domain1 (instead of the new baseURL jira.domain2) to access Stash data
Expected Results
Stash User Authorized application (OAuth token) page should be using the new JIRA URL as shown in the Application Links
Actual Results
Still using the old JIRA URL
Notes
Found out that Stash is getting this OAuth Consumer Description from JIRA server database table "oauthconsumer".
Anyway, the Application Link still works fine even though the URL in the description is incorrect
Workaround
- Backup JIRA database for rollback purposes
- Shutdown JIRA
- Edit the table "oauthconsumer" to change the URL and optionally, the name:
UPDATE oauthconsumer SET consumername='<JIRA_new_name>' WHERE consumername='<JIRA_old_name>' UPDATE oauthconsumer SET description='Atlassian JIRA at <new_URL>' WHERE description='Atlassian JIRA at <old_URL>'
- Restart JIRA
- Delete both Application Links in Stash and JIRA
- Recreate the Application Links