Entity reference fields appearing empty on export feed page

Created on 8 March 2023, almost 2 years ago

Problem/Motivation

As I mentioned on 💬 Support exporting entity reference revisions Postponed: needs info I've been using the sub-module for working with entity reference revisions, in this case Paragraphs.

I have also followed the comment here as it's a similar set-up to mine:
https://www.drupal.org/project/rest_views/issues/2910697#comment-12386785

I have a node that has a paragraph field. Within this field only one type of paragraph can be used and within that, it can reference another paragraph, so it has the following structure:
Node -> Paragraph -> Nested Paragraph

I'm not sure all of this matters because the output of the preview within Views is correct, so the module seems to be working well. However, when looking at the XML export page of the View, nothing appears for the field. All other fields are rendering correctly.

Steps to reproduce

Check the preview that Views generates - I can see the correct output from the fields.
View the actual export feed - nothing appears for the paragraphs field.

🐛 Bug report
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom joekers UK

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

Comments & Activities

  • Issue created by @joekers
  • Status changed to Closed: works as designed almost 2 years ago
  • 🇬🇧United Kingdom joekers UK

    This was a site-specific issue where access to the node was controlled in an access hook. Paragraphs checks for 'view' access on the entity and then its parent, at this point it was forbidden, and then showed empty in the REST feed.

Production build 0.71.5 2024