I've just tried the Create an archive of selected files action.
At first, it seemed to work but no download link was displayed.
Having a look at the recent logs, I noticed this error:

Skipped Create an archive of selected files on file My file due to insufficient permissions.

It seems that VBO expects user to have the 'changes_property' permission on the file entity to allow the operation.
But it's not the case, even with User #1.
Shouldn't the required permission be 'views_property' instead?
I've just tried to add

<?php
'behavior' => array('views_property'),
?>

to views_bulk_operations_archive_action_info() and it works then.
Is this a bug or am I missing something?

Comments

anrikun’s picture

Status: Active » Needs review
StatusFileSize
new478 bytes

Here's a patch in case this is confirmed as a bug.

bojanz’s picture

Status: Needs review » Fixed

Makes sense. Committed, thanks.

  • bojanz committed b64a1fc on 7.x-3.x authored by anrikun
    Issue #2418751 by anrikun: Archive action fails silently
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.