Hello!

I tried to add an operation links to a view that is based of the file entity. I figured this was similar to what VBO did in D7, etc. Anywho, it didn't like it, not sure if this is by design or a bug:

Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "file" entity type did not specify a list_builder handler. in Drupal\Core\Entity\EntityManager->getHandler() (line 360 of /code/core/lib/Drupal/Core/Entity/EntityManager.php).

My gut tells me we should be able to edit/delete files from a view. But things are a little bit different now in Drupal 8.

Steps to reproduce

  1. Install 8.0.x with the Standard profile.
  2. Visit /admin/structure/views/view/files/edit/page_1.
  3. Next to "Fields", click "Add".
  4. Type "operation" in the search and select "Operation links".
  5. Use the default options and save the field.
  6. Save the View.
  7. Visit /admin/content/files. Confirm that the View is displayed correctly so long as there is no content on the site.
  8. Add an article node with an image attachment.
  9. Visit /admin/content/files again. You will receive an error.

Workaround

If you encounter this error with a files view, visit /admin/structure/views, edit the view, and remove the operation links field. Your view will start working again.

Why is this an RC target

If you select the entity operations field on a view of comments or files you get WSOD.

CommentFileSizeAuthor
#5 2587551-5.patch1.74 KBalexpott

Comments

labboy0276 created an issue. See original summary.

xjm’s picture

Version: 8.0.0-rc1 » 8.0.x-dev
Priority: Normal » Major
Issue tags: +VDC

I confirmed this during a Drupal 8 demo today using RC2.

The view becomes completely unusable and stuck in an unrecoverable state afterward, so promoting to major.

xjm’s picture

Priority: Major » Normal
Issue summary: View changes

The bug only happens when there are files on the site, so adding steps to reproduce.

Also discovered that the view is still editable (thankfully) and accessible from the Views admin UI. The exception is only thrown when viewing the view. So demoting back to normal.

xjm’s picture

Issue summary: View changes
alexpott’s picture

Issue summary: View changes
Status: Active » Needs review
Issue tags: +rc target triage, +Needs tests
StatusFileSize
new1.74 KB
xjm’s picture

Status: Needs review » Closed (duplicate)

Let's close this as a duplicate of the older issue. Thanks @alexpott for the patch and thanks @labboy0276 for reporting this.

xjm’s picture

Issue tags: -rc target triage, -Needs tests