- Issue created by @filipeabreu
- 🇨🇭Switzerland berdir Switzerland
Contribution should be done as a merge request. I think this doesn't even need to be logged, or maybe only the invalid state and not the expected local state?
When a media reference field accepts multiple media types (e.g., Image, Acquia DAM, and Bynder), the bynder_usage module attempts to register asset usage even if the selected media is not of type Bynder. In these cases, the media ID defaults to "default", which results in a 400 Bad Request response from the Bynder API:
"asset_id: 'default' is not a valid uuid"
Add a simple validation check before calling the usage registration API to skip any attempt when the asset ID is "default" or not a valid UUID. See attached .patch file.
Active
4.3
Code
Contribution should be done as a merge request. I think this doesn't even need to be logged, or maybe only the invalid state and not the expected local state?