-
Notifications
You must be signed in to change notification settings - Fork 189
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
Cannot set mtime in file upload #1248
Comments
tested with local server oCIS version 1.11.0 @dpakach maybe there is a different configuration? |
thanks @ScharfViktor for looking into it. Works indeed. We can close this issue. |
By any chance might this bug have resurfaced? I’ve started using OCIS 3.0 and using the latest macOS desktop client, all my files show upload time for file date. Full sync hasn’t completed yet so perhaps such is synced after, I’m not sure, though I think if it were syncing date it would be correct on upload. |
@gennaios Thanks for the report. @ScharfViktor Can we try to confirm that? |
Can confirm that it is relevant again. I'll figure out why the test didn't catch it |
It happens with uploading zero file so api test was passed Upload file with zero bytes: Upload file with content: |
All my uploads were done with the macOS desktop client. |
Yes, and that too Screen.Recording.2023-06-19.at.12.57.43.mov |
Desktop client only sends
oC web sends more in the
According to @micbar 's comment, this was always the case? |
I see the two different Protocols
my expectation would be that we do either 1 OR 2, no mixed protocol. @michaelstingl @dragotin @TheOneRing Can I assume that the clients do only One of both protocols, or do we need to expect and handle "mixed" scenarios on the server side? |
iOS app doesn't send any
|
Thanks for looking into it. Perhaps such would be out of scope yet who knows. Might it also be possible to revisit the issue of folders also having correct mtime? I’m not too familiar with the issue though I have the impression such has been the case for a long time and has never been addressed. |
Desktop neither https://github.com/owncloud/client/blob/master/src/libsync/propagateuploadtus.cpp#L86-L86 |
Desktop sends it, but not included in the TUS metadata:
|
Result from chat with @TheOneRing and @JammingBen We need an ADR which covers the stuff that is not expicitly covered by the TUS protocol like the property names in the Upload metadata and which of them are required for oCIS. |
@kobergj @dragonchaser I put this on our docs board. IMO it is more a DEV team task. But like to track it. |
@micbar Are we still have to fix the X-OC-Mtime handing for zero sizes files? |
|
The related fix has been merged cs3org/reva#4012 |
I re-tested it on fresh master Uploading file via macOS desktop client works correctly for me Should we close ticket? |
close as completed |
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: