Views data export - export an empty CSV file for an anonymous user

Created on 23 June 2022, almost 3 years ago
Updated 20 December 2024, 4 months ago

I created a view data export setting the access as unrestricted with a path /data. When I logged in it download a file with full content, but when I tried as an anonymous user then it downloaded the empty file - where I want to grant access for anonymous too.
I tried also to set the access as a role that included anonymous but without any luck.

💬 Support request
Status

Fixed

Version

1.1

Component

Code

Created by

🇬🇧United Kingdom pepe199111

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 Kingdom steven jones

    Views Data Export will respect the content access restrictions of your content. So you might want to investigate how your permissions and roles are set up and if the anon user has access to the entities you are trying to render.
    Views Data Export isn't trying to provide a backdoor to access entities that users shouldn't be able to in the first place.

    However, I will mention that Views has a configuration option on each view than can skip adding access checks, maybe that would work for your use-case, but in most instances I'd suggest that that was the wrong way to go about things, and you should instead grant the anon user permission to view the entities that they need.

    Hope that helps.

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

Production build 0.71.5 2024