Skip to content
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

Disallow old chunking on new endpoint #28200

Closed
PVince81 opened this issue Jun 23, 2017 · 9 comments
Closed

Disallow old chunking on new endpoint #28200

PVince81 opened this issue Jun 23, 2017 · 9 comments

Comments

@PVince81
Copy link
Contributor

With old chunking we mean the ugly file names like "data1.dat-chunking-3886638851-13-1".

Whenever a client sends "OC-Chunking" header, deny access to the new endpoint "remote.php/dav/files/$user".

@DeepDiver1975 as discussed

This would help reducing test cases.

@PVince81 PVince81 added this to the backlog milestone Jun 23, 2017
@guruz
Copy link
Contributor

guruz commented Jun 23, 2017

Please only after new enough clients are in the wild e.g. for owncloud/client#5855

;)

@PVince81
Copy link
Contributor Author

Depends... it is likely that old clients cannot work anyway due to this bug #28197. So either we invest time in fixing old chunking with new dav (that if-match thing) or block it right away.

That is, unless we find scenarios where it does work correctly still.

@mrow4a
Copy link
Contributor

mrow4a commented Jun 27, 2017

@PVince81 should I write a PR with what you need on the server? I will also include smashbox test verifying all these issues. I am just afraid of bunch of clients which will have errors ;d

@mrow4a
Copy link
Contributor

mrow4a commented Jun 27, 2017

Ok, I think forbiding new endpoint for old chunking is "must have"... it is probably better then investigating how to write a test how to play with aborded chunking and overwriting in crazy scenarious in smashbox.. will take care of it.

@PVince81
Copy link
Contributor Author

Possible technical approaches:

  1. one size fits all: write a plugin that denies any request on the new DAV endpoint if OC-Chunking is set

or

  1. go through every possible code path that have "OC-Chunking" set and add a check whether we're coming from the new dav endpoint. Might require adding a flag in the plugin that the instantiator tells in which endpoint we are.

@mrow4a
Copy link
Contributor

mrow4a commented Jun 29, 2017

I like number 1 👍

@mrow4a
Copy link
Contributor

mrow4a commented Jun 29, 2017

#28263

@mrow4a
Copy link
Contributor

mrow4a commented Aug 20, 2017

@PVince81 close?

@felixboehm felixboehm removed this from the triage milestone Apr 10, 2018
@lock
Copy link

lock bot commented Jul 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants