Skip to content

x-oc-mtime header is not being respected in tus requests #4559

Closed

Description

@JammingBen

Describe the bug

owncloud/web#7630 includes the x-oc-mtime header in XHR and tus upload requests. While XHR works fine, it seems that the header has no effect for tus requests.

Steps to reproduce

Steps to reproduce the behavior:

  1. Get Web running with current master
  2. Upload a file that has been modified a few days ago

Expected behavior

The "modified column" should show the proper modified date.

Actual behavior

It shows "0 seconds ago".

Activity

  1. micbar commented on Sep 14, 2022

    @micbar
    Contributor

    @JammingBen

    From my POV i see no x-oc-mtime header sent by the web client during tus uploads. I see a big combined header with upload metadata

  2. JammingBen commented on Sep 14, 2022

    @JammingBen
    ContributorAuthor

    @micbar Are you sure you have Web with current master running? The x-oc-mtime header should be available. Or does oCIS expect it to be received otherwise, maybe somehow included in Upload-Metadata?

    image

  3. micbar commented on Sep 14, 2022

    @micbar
    Contributor

    As far as I read the code, a non-tus request works with the x-oc-mtime header and tus requests expect the mtime in the upload metadata.

    @JammingBen Happy to check that out together with you

  4. JammingBen commented on Sep 14, 2022

    @JammingBen
    ContributorAuthor

    tus requests expect the mtime in the upload metadata.

    Ahh I didn't know this. Let me try it out, I'll come back to you 👍

  5. JammingBen commented on Sep 14, 2022

    @JammingBen
    ContributorAuthor

    Yessss, adding mtime in upload metadata solved it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions