Closed (fixed)
Project:
Views Bulk Operations (VBO)
Version:
4.1.x-dev
Component:
Core
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2022 at 08:01 UTC
Updated:
12 Apr 2023 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
graber commentedSteps to reproduce incomplete.
Comment #3
redzeufIt seems I have the same error and it seems to been introduced in the VBO version 4.1.2, on my side it come from the check access in \src\Service\ViewsBulkOperationsActionProcessor.php:462
It does not seems to be relative to the class TranslatableMarkup but more by the service ViewsBulkOperationsActionProcessor.php->process()
Old code was:
The new code:
When I revert this change to the old code, it works again.
My full error message is:
Error: Call to a member function isAllowed() on bool in Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionProcessor->process() (line 464 of /var/www/html/docroot/modules/contrib/views_bulk_operations/src/Service/ViewsBulkOperationsActionProcessor.php)It appends when I try to delete a file from /admin/content/files either my ownership files not only ones from other users. Precisino, I'm with the super admin user.
Comment #4
redzeufComment #5
redzeufUpdated the issue title
Comment #6
redzeufPatch proposition to review the permission condition that seems to always be false and by the way killed the batch process.
Comment #7
redzeufComment #8
redzeufFixed previous patch that I submitted and that was not applicable due to path error
Comment #9
graber commentedIt's a duplicate. No time to search for the same issue though, maybe someone can link it.
Comment #10
redzeufAdded to related issues that seems to be the similares (duplicate) to this one.
Comment #11
graber commentedYes, thank you. So you have to update your actions to return AccessResult according to parent interface @return doc info and not bool only, this'll not be fixed.
Comment #12
kimble commentedI ran into a need for this patch in 4.1.4 and it worked fine but then 4.1.5 was released just a few days ago and the lines targeted by this patch change so patch no longer works. This fix is not in 4.1.5 release.
Comment #13
lluisandreu commentedI am facing the same issue on version 4.20. Please we need a fix as this is a major bug.
Comment #14
redzeufAppologize my patch was false, I miss used the access result interface. This permission access is not a responsability of VBO. You can find information and fix on this issue https://www.drupal.org/project/drupal/issues/2949017#comment-14899806
The issue has been fixed and included since Drupal 10.1