Invalid permission "Update file alias"

Created on 2 September 2024, 4 months ago
Updated 8 September 2024, 4 months ago

Problem/Motivation

The module calls hook_action_info_alter on a permission in the pathauto module that does not exist causing multiple warning messages. The issue has been reported in the VBO queue https://www.drupal.org/project/views_bulk_operations/issues/3171938 β†’ where there is information on how to reproduce.

Line 83 of file_entity.module

/**
 * Implements hook_action_info_alter().
 */
function file_entity_action_info_alter(&$actions) {
  if (\Drupal::moduleHandler()->moduleExists('pathauto')) {
    $actions['pathauto_file_update_action'] = array(
      'type' => 'file',
      'label' => t('Update file alias'),
      'configurable' => FALSE,
    );
  }
}

Steps to reproduce

Enable the pathauto module
Enable file_entity
Go to any admin page

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States schiavone

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024