Skip to content

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented Jun 27, 2019

The preview element in the public share page was always wrapped with a link to download the file; now that link is included only if the Hide download option of the share is not enabled.

Unfortunately the acceptance tests could not be extended to check this behaviour as text files do not had this issue and it is currently not possible to upload new files to test it, for example, with a zip file.

How to test

  • Upload any file (like a zip) that shows a preview icon in the public share page; an image works too (as it shows the image itself in place of the icon)
  • Add a new link share for that file
  • Enable Hide download for that link share
  • Open the public share page

Result with this pull request

The preview icon is shown, but clicking on it does nothing.

Result without this pull request

The preview icon is shown and clicking on it triggers a download of the file.

The preview element in the public share page was always wrapped with a
link to download the file; now that link is included only if the "Hide
download" option of the share is not enabled.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added bug 3. to review Waiting for reviews labels Jun 27, 2019
@danxuliu danxuliu added this to the Nextcloud 17 milestone Jun 27, 2019
@danxuliu
Copy link
Member Author

/backport to stable16

@danxuliu
Copy link
Member Author

/backport to stable15

@rullzer rullzer merged commit 443c1db into master Jun 27, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-download-link-included-in-public-page-share-with-hidden-download branch June 27, 2019 14:29
@backportbot-nextcloud
Copy link

backport to stable16 in #16125

@backportbot-nextcloud
Copy link

backport to stable15 in #16126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants