-
Notifications
You must be signed in to change notification settings - Fork 5
PROPFIND does not return file size in drone #67
Comments
maybe drone is using a different storage driver ? |
I've raised #170 to run it on Drone so we can see if it still happens |
seems not only "getcontentlength" is missing but also "getcontenttype" |
here it looks like if no mime type is set then it also doesn't return the size: https://github.com/cs3org/reva/blob/master/internal/http/services/owncloud/ocdav/propfind.go#L249 now wondering if reva is using some OS level mime type detection which maybe is missing on Drone... |
mime type detection is here: https://github.com/cs3org/reva/blob/master/pkg/mime/mime.go#L52 it's either using locally registered mime types (not sure how, maybe config) or relying on go's "mime" package for detection which itself relies on some system files for the extension mapping: https://golang.org/pkg/mime/#TypeByExtension I suspect that maybe on Drone those files are not fully populated which might result in its inability to detect the mime type.
|
I've created a PR for the size issue: cs3org/reva#712 |
the fixes were merged in reva, need to update ocis-reva, will likely happen once #161 is updated |
doing
PROPFIND /remote.php/dav/files/oc/user0/test-file.txt
wit data:locally I receive
but on drone
The text was updated successfully, but these errors were encountered: