- 🇸🇮Slovenia primsi
Updated patch, but we need to fix upstream first. cweagans/php-webdam-client is in archive mode and composer fails on Guzzle version
- @primsi opened merge request.
- 🇮🇳India dineshkumarbollu
Hi Primsi
I Review the MR!1 while running upgarde_status drush command to check the D10 compatible issues found 1 error.
can you please check
vendor/bin/drush upgrade_status:analyze webdam
[notice] Processing /var/www/html/vbd9/web/modules/contrib/webdam-3299480.================================================================================
Media: Webdam, --
Scanned on Wed, 05/10/2023 - 14:22FILE:
web/modules/contrib/webdam-3299480/modules/webdam_sns/src/EventSubscriber/Notifi
cationSubscriber.phpSTATUS LINE MESSAGE
--------------------------------------------------------------------------------
Check manually 109 Relying on entity queries to check access by default is
deprecated in drupal:9.2.0 and an error will be thrown from
drupal:10.0.0. Call
\Drupal\Core\Entity\Query\QueryInterface::accessCheck() with
TRUE or FALSE to specify whether access should be checked.
-------------------------------------------------------------------------------- - 🇸🇮Slovenia primsi
As far as I understand, that's not an issue in this case, because we are processing a notification.
Attaching a patch, that does not show the saved user password in the config form.
- 🇸🇮Slovenia primsi
As per discussion, adding the description and supporting test connection with config stored password.
- Status changed to Fixed
almost 2 years ago 8:53am 15 May 2023 - 🇨🇭Switzerland berdir Switzerland
#8 was correct, we need that access check, we just didn't test SNS notifications on D10. It's also a problem in bynder, which we apparently haven't updated yet. I'll create an issue yet.
Fixed on commit:
diff --git a/modules/webdam_sns/src/EventSubscriber/NotificationSubscriber.php b/modules/webdam_sns/src/EventSubscriber/NotificationSubscriber.php index a0fcbc6..c28b04b 100644 --- a/modules/webdam_sns/src/EventSubscriber/NotificationSubscriber.php +++ b/modules/webdam_sns/src/EventSubscriber/NotificationSubscriber.php @@ -109,6 +109,7 @@ class NotificationSubscriber implements EventSubscriberInterface { $mid = $query ->condition($source_field_condition) ->range(0, 1) + ->accessCheck(FALSE) ->execute(); if ($mid) {
Automatically closed - issue fixed for 2 weeks with no activity.