Skip to content

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

Merged
phil-davis merged 1 commit into
masterfrom
fix/webdav-stat
Aug 8, 2023
Merged

fix: DAV storage should return false on stat() if connection fails#40861
phil-davis merged 1 commit into
masterfrom
fix/webdav-stat

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Jul 7, 2023

Copy link
Copy Markdown
Member

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

@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2023

Copy link
Copy Markdown

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

@phil-davis
phil-davis requested a review from jvillafanez July 31, 2023 10:03
Comment thread composer.json Outdated
@phil-davis

Copy link
Copy Markdown
Contributor

@DeepDiver1975 needs a changelog entry

@pako81

pako81 commented Aug 8, 2023

Copy link
Copy Markdown

@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
Copy Markdown
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...

@owncloud owncloud deleted a comment from update-docs Bot Aug 8, 2023
@phil-davis
phil-davis self-requested a review August 8, 2023 09:58
@phil-davis
phil-davis requested a review from jvillafanez August 8, 2023 10:02
@phil-davis phil-davis self-assigned this Aug 8, 2023
@sonarqubecloud

sonarqubecloud Bot commented Aug 8, 2023

Copy link
Copy Markdown

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
@delete-merged-branch
delete-merged-branch Bot deleted the fix/webdav-stat branch August 8, 2023 11:01
@jnweiger

Copy link
Copy Markdown
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.

5 participants