X Tutup
Skip to content

Set files_list to empty array if we don't have any selected files#39198

Merged
JammingBen merged 2 commits intomasterfrom
issues/39187
Sep 9, 2021
Merged

Set files_list to empty array if we don't have any selected files#39198
JammingBen merged 2 commits intomasterfrom
issues/39187

Conversation

@AlexAndBear
Copy link

@AlexAndBear AlexAndBear commented Sep 9, 2021

Description

Bugfix: Set file name to download.zip while downloading the whole user directory

Before this PR, selecting all files and folders in the webUI and clicking the
download button, resulted in a file downloaded with the name ".zip".
With this PR the file name is now "download.zip".

Related Issue

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@ownclouders
Copy link
Contributor

💥 Acceptance tests pipeline webUISharingPublic1-chrome-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/32231/144/1

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works - I tried:

  • download all files/folders - download.zip comes
  • download just 2 files/folders - download.zip comes
  • download just 1 file - just the file downloads
  • download just 1 folder - folderName.zip comes

@AlexAndBear
Copy link
Author

@phil-davis maybe we can add some acceptance tests later on?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 9, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@phil-davis
Copy link
Contributor

@phil-davis maybe we can add some acceptance tests later on?

Issue #39199

@JammingBen JammingBen merged commit f8cf8f7 into master Sep 9, 2021
@delete-merged-branch delete-merged-branch bot deleted the issues/39187 branch September 9, 2021 09:29
@jnweiger
Copy link
Contributor

confirmed fixed in 10.9.0-beta1

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Downloading all files from the root directory delivers the file ".zip"

6 participants

X Tutup