-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Low
-
Component/s: Dashboard - Dashboards & Gadgets
-
None
-
1
-
Severity 3 - Minor
Issue Summary
When exporting a Cloud site that has both usernames and AAIDs, permissions are broken on import to Data Center as some tables only point to AAIDs (sharepermissions, for instance).
This is reproducible on Data Center: yes
Steps to Reproduce
- Export a cloud site that has both usernames and AAIDs in the database
- Import into local DC instance.
- Review dashboards/filter permissions and note that any users imported with a standard Jira Username will be broken, as the sharepermissions table only references AAIDs
Expected Results
Dashboards and filters will work as expected
Actual Results
Any users imported into Jira with a standard username will be broken as the sharepermissions table only references AAID
Workaround
Run the following query to generate update statements to resolve permissions:
SELECT ('UPDATE sharepermissions SET param1 = replace(param1, ''' || cu.external_id || ''',''' || cu.lower_user_name || ''') WHERE param1 = '''|| cu.external_id ||''';') as "Queries to fix" FROM cwd_user cu WHERE cu.external_id IS NOT NULL;
- duplicates
-
JRACLOUD-81513 Jira Cloud is using external_id in the PARAM1 column of the sharedpermissions table
-
- Closed
-
- mentioned in
-
Page Loading...