Skip to content

[Plugin] do not convert mtime to int #172

Closed
moscicki wants to merge 3 commits into
owncloud:stable8.2from
cernbox:v8.2.2-cern
Closed

[Plugin] do not convert mtime to int #172
moscicki wants to merge 3 commits into
owncloud:stable8.2from
cernbox:v8.2.2-cern

Conversation

@moscicki

Copy link
Copy Markdown

Our storage reports mtime with mililseconds (float). Comnverting to int means that the mtimes always mismatch and file cannot be saved.

- Fix mtime type missmatch when saving file
@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @schiesbn, @DeepDiver1975 and @nickvergessen to be potential reviewers

@nickvergessen

Copy link
Copy Markdown
Contributor

looks good, only affects 8.2? Or should this also be done on master and 9.0?

@NadirRoGue

Copy link
Copy Markdown

It should be done in all of them, since our storage backend will always provide the mtime as a float. Another option is to send the mtime from the client to the server as a float.

PUT is intended to create objects (usually, using directly the url
object). In our case, our webserver warp the file access (moreover, we
do are not creating the file, we are updating it, which makes POST more
suitable than PUT)
Adding missing file in the previous commit
@mmattel

mmattel commented Jan 27, 2019

Copy link
Copy Markdown
Contributor

@DeepDiver1975 @PVince81
Is this PR still valid?

@PVince81

PVince81 commented Feb 5, 2019

Copy link
Copy Markdown
Contributor

why change from PUT to POST ?

@mmattel

mmattel commented Dec 12, 2020

Copy link
Copy Markdown
Contributor

This can be closed because of owncloud/core#28066 (make sure mtime is always an int) (merged)

@mmattel mmattel closed this Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants