Fatal error after switching DAM instances

Created on 26 July 2023, 11 months ago
Updated 27 October 2023, 8 months ago

Problem/Motivation

I have a site that was set up successfully to a connect to a DAM instance, and the users authorized to use the DAM to place images. I needed to clone this site, and connect the clone to a new DAM instance.

Updating the DAM settings to point to the new DAM instance with a new API token was straightforward enough. Updating the user authorizations was a different story, however. When I go into a user account and click to remove the authorization (so I can then authenticate into the new DAM instance), I get a fatal error because the new instance returns a 401 error to the request.

Proposed resolution

I would suggest two fixes:

- The code that removes the DAM authorization should have some built-in error handling so that an error can be logged but the user doesn't see a WSOD
- When the DAM connection is changed centrally, it should automatically remove the authorization for all authorized users before switching the connection

I'm tempted to mark this as a major error because of the WSOD and the fact that resolving the problem once you have it is a major effort, but I recognize that users changing their DAM connection probably happens infrequently.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024