Skip to content

ChunkingNG: shortcomings #28452

Closed
Closed

Description

@PVince81

The current protocol doesn't allow for early failure detection: when starting a new transfer, the server doesn't know what the final target will be. This means that it is unable to:

  • detect whether the target folder actually still exists before even continuing
  • detect whether there is enough space
  • potentially other things

We could pass the expected target path name as an additional header when starting the transfer ?

@DeepDiver1975 @guruz

similar concerns here: #26988 (comment)

Ideally we should pass all possible metadata there:

  • target folder
  • mtime (X-OC-Mtime) to set on it
  • checksum
  • total length

Activity

  1. added this to the triage milestone on Jul 20, 2017
  2. DeepDiver1975 commented on Jul 21, 2017

    @DeepDiver1975
    Contributor

    I would not check this before the upload starts because the environment can change during uploading of chunks.

    Due to the explicit move the client can decide what to do and when.

    So the client could also wait until e.g. an external storage comes online....

    At least this was the idea initial....

  3. guruz commented on Jul 21, 2017

    @guruz
    Contributor

    What @DeepDiver1975 said.. to accelerate the sync, our idea was to upload files immediately during client discovery phase so that we don't waste time there and people think the client "doesn't do anything"

    FYI @dragotin @ogoffart

    I agree that it is OK/good to pass already:

    mtime (X-OC-Mtime) to set on it
    checksum
    total length

  4. PVince81 commented on Aug 18, 2017

    @PVince81
    ContributorAuthor

    10.0.3beta already has X-OC-Mtime and OC-Total-Length

  5. guruz commented on Aug 18, 2017

    @guruz
    Contributor

    So you don't want the target file name after all?

  6. phil-davis commented on Aug 18, 2017

    @phil-davis
    Contributor

    For use by the firewall, the client making an early "claim" about the final folder/file name (or any other attributes) will help it to refuse early.

  7. PVince81 commented on Aug 18, 2017

    @PVince81
    ContributorAuthor

    Ok, let's reopen for the target file name.

  8. ownclouders commented on Dec 19, 2017

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

  9. 6 remaining items

  10. ownclouders commented on Mar 9, 2018

    @ownclouders
    Contributor

    Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

    (This is an automated comment from GitMate.io.)

  11. stale commented on Sep 21, 2021

    @stale

    This issue has been automatically closed.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions