fix: implement missing getSize method in SharedFile.php#36778
fix: implement missing getSize method in SharedFile.php#36778phil-davis merged 2 commits intomasterfrom
Conversation
|
@phil-davis this might be of interest regarding tests. |
|
@phil-davis @micbar added you to the reviewers. |
|
@micbar do we try and do this for 10.4? If so, then could add an acceptance test to cover the expected |
c3a5512 to
91e59ba
Compare
|
squashed the commits and rebased |
|
Unassigned myself and added the QA-team label. |
The webdav-api for public files couldn't get the correct file size since `SharedFile.php` did not implement the `getSize` method. Fixes #36741
63034a6 to
a20834d
Compare
|
The acceptance tests here cover just the fixed |
@phil-davis I donot understand properly, what sorts of |
|
Some stuff I can see: That seems to be unused. It calls There is also: What is the difference of these 2 methods? Why do we have 2 methods? |
|
We have tests that check properties like: There are probably quite a few "interesting" other properties returned. e.g. https://doc.owncloud.com/server/developer_manual/webdav_api/comments.html There are lots of properties returned about a comment. We can make some API test scenarios that verify that the properties do come... And for the other APIs that return lists of properties, including the "general" webDAV API. |
@phil-davis Only difference between these two methods is they use different |
Description
Implement the method
getSizeinSharedFile.phpRelated Issue
Motivation and Context
The webdav-api for public files couldn't get the correct file size
since
SharedFile.phpdid not implement thegetSizemethod.How Has This Been Tested?
To test execute a PROPFIND request for a shared file via the webdav public-files API
curl -s --user user:password --basic http://localhost:8080/remote.php/dav/public-files/HXEGrChNif8AWBq -X PROPFINDTypes of changes
Checklist: