Data export is almost empty for anonymous users - contains only header row

Created on 26 July 2016, over 8 years ago
Updated 8 July 2024, 6 months ago

A client requested to make a view downloadable and this module does the trick, even considering exposed filters. Many thanks for that.

However, I am stuck at a weird issue. It works perfectly fine for logged in users while anonymous user do get a CSV file, but it only contains the header row, thus the field labels. Anonymous can use the original view and the exposed filters alright and the data export display has the exact same parameters (except for the pager). Both views access is set to permission "view published content".

Since there are no dedicated permissions for Views Data Export module, I do not know what is happening or where to start. What could possibly be the cause for this behaviour?

Website is running on Drupal 7.50, export itself works and downloads file for anonymous users without any (error) message in watchdog. Downloaded file only contains the single header row (also checked with plain text editor).

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany broon Potsdam

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States audiomason

    I just encountered this issue, as well. In my case, certain fields are excluded from the export for anonymous users. In particular, the URL alias for unpublished nodes is excluded.

  • πŸ‡¨πŸ‡¦Canada francewhoa Sept-Îles, QuΓ©bec, πŸ‡¨πŸ‡¦

    We were able to reproduce this challenge using those steps at https://www.drupal.org/project/views_data_export/issues/3043875#comment-... πŸ› Exported CSV is empty when a filter is applied. Active

    At the bottom of my comment, we found a temporary workaround

  • πŸ‡¬πŸ‡§United Kingdom drupalninja

    You can disable the access checks under the options Query Options in the view and that should allow you to download all results

  • πŸ‡¬πŸ‡§United Kingdom steven jones

    Sorry for the lack of attention to your issue, please accept my apologies.

    Drupal 7 is going to be end-of-life'd by the community in approximately 1 month. β†’

    As such, I am closing all non-critical looking, non-PHP compatibility issues for Views Data Export to tidy up the issue queues and reduce the noise. You can read about this on #3492246: Close down Drupal 7 issues.

    If you feel like this issue has been closed by mistake, please do comment about re-opening it.
    If you feel like the ticket is still relevant for the 8.x-1.x version of the module, then please search for a duplicate issue first, and if there really isn't one (and you've looked properly) then change the version on the ticket and re-open.

    Thanks to everyone involved in this issue: for reporting it, and moving it along, it is truly appreciated.
    The Drupal community wouldn't be what it is today without your involvement and effort, so I'm sorry that we couldn't get this issue resolved. Hopefully we'll work together in a future issue though, and get that one resolved :)

Production build 0.71.5 2024