Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: DAV storage should return false on stat() if connection fails #40861

Merged
merged 1 commit into from Aug 8, 2023

Conversation

DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Jul 7, 2023

Description

DAV::stat() is returning an empty array when the propfind fails. As a result when a non-WebDAV servers can be mounted and cause followup issues for the end user.

How Has This Been Tested?

  • Hook up any other WebDAV server in external storage settings -> green
  • Hook up any http server -> red
  • (proving the wrong behavior before the patch is only of theoretical nature)

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

@sonarcloud
Copy link

sonarcloud bot commented Jul 7, 2023

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

60.0% 60.0% Coverage
0.0% 0.0% Duplication

composer.json Outdated Show resolved Hide resolved
@phil-davis
Copy link
Contributor

@DeepDiver1975 needs a changelog entry

@pako81
Copy link
Contributor

pako81 commented Aug 8, 2023

@DeepDiver1975 maybe you want to try to add changelog and resolve the observations above (and add tests if needed?). So we can try to merge this till end of the week (10.13 code freeze). Thx

@phil-davis
Copy link
Contributor

IMO @DeepDiver1975 is OOTO (on leave) for some time. He asked me to take over another PR, so I will adjust this one also...

@sonarcloud
Copy link

sonarcloud bot commented Aug 8, 2023

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

80.0% 80.0% Coverage
0.0% 0.0% Duplication

@phil-davis phil-davis merged commit 5a3007b into master Aug 8, 2023
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the fix/webdav-stat branch August 8, 2023 11:01
@jnweiger
Copy link
Contributor

Confirmed fixed in 10.13.0-rc.1

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.

None yet

5 participants