Skip to content

When there is a guestbook, you cannot download files using a Preview URL #12535

Description

@leligdon

When a guestbook is enabled, there is an error when trying to download files using a preview URL.

What steps does it take to reproduce the issue?

Create an unpublished dataset with a guestbook enabled at the collection level.
Add both restricted and unrestricted files to the dataset.
Create a Preview URL for the dataset.
Open the Preview URL in a logged out/anonymous browser session.
Attempt to download any file (restricted or unrestricted).

What happens?
The download fails with the following error, regardless of file type:
{"status":"ERROR","message":"You may not download this file without the required Guestbook response for guestbookID 60."}

The guestbook popup does not appear to collect a response before the download attempt is made. Disabling the guestbook on the dataset resolves the issue and files download normally through the Preview URL.

Which version of Dataverse are you using?
v6.11

To whom does it occur (all users, curators, superusers)?
Occurs for anonymous/logged out users accessing files via Preview URL. Users with existing Curator/Admin permissions on the dataset do not encounter the error, since their access is granted through their account role rather than the Preview URL token, making this hard to reproduce with elevated permissions.

What did you expect to happen?
Either the guestbook form should be presented and its response collected before the download proceeds, or Preview URL access should be documented as incompatible with guestbooks if that is the intended behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions