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

[Work in Progress] Do not download files that are too big via "From Link". #5499

Closed
wants to merge 1 commit into from

Conversation

bantu
Copy link

@bantu bantu commented Oct 23, 2013

Work in Progress patch for #5398

@tanghus
Copy link
Contributor

tanghus commented Oct 23, 2013

You do a lot of work instead of OC::$server->getRequest()->getHeader('Content-Length'); 😉

@DeepDiver1975
Copy link
Member

@bantu while you are touching that code pieces - please consider fixing #5406 as well - THX

@bantu
Copy link
Author

bantu commented Oct 23, 2013

@tanghus You are mistaken. This is about the HTTP response headers for "new file from link".

@tanghus
Copy link
Contributor

tanghus commented Oct 23, 2013

You are mistaken. This is about the HTTP response headers for "new file from link".

@bantu I was too fast. Your approach might be good. There must be a wrapper for this, but lets wait with that until oC7 and just keep this out of the public API :)

@bantu
Copy link
Author

bantu commented Oct 23, 2013

@tanghus I agree this may be better for ownCloud 7. @karlitschek
@DeepDiver1975 Oh, sure. Thanks for the typo fixes, btw.

@karlitschek
Copy link
Contributor

agreed. ownCloud 7

@ghost ghost assigned bantu Oct 24, 2013
@bantu
Copy link
Author

bantu commented Oct 24, 2013

Could probably use \Symfony\Component\HttpFoundation\ResponseHeaderBag instead of reinventing the wheel here.

@tanghus
Copy link
Contributor

tanghus commented Oct 24, 2013

Damn, we would have been a lot further by now if we had started on a Symfony foundation. Last time I coded PHP the only other "frameworks" I knew of, were the ones I'd coded myself :D

@ghost
Copy link

ghost commented Dec 20, 2013

Test passed.
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/2454/

@DeepDiver1975
Copy link
Member

@bantu is this still WIP or ready for test? THX

@bantu
Copy link
Author

bantu commented Dec 20, 2013

@DeepDiver1975 Just rebased this yesterday. Need to have a closer look again.

@bantu
Copy link
Author

bantu commented Feb 20, 2014

This should have #7123 merged first (which is a change into the direction this needs to go refactoring wise, with possibly more to come) and the fix here should be extended to include #3614, #1198 and possibly #5398.

@bantu
Copy link
Author

bantu commented Feb 20, 2014

Unfortunately \Symfony\Component\HttpFoundation\ResponseHeaderBag does not accept the format that we are receiving from the PHP stream framework. So reusing ResponseHeaderBag may be a bit more complicated.

@bantu
Copy link
Author

bantu commented Aug 8, 2014

I am closing this because a similar patch has been merged. See #10290

@bantu bantu closed this Aug 8, 2014
@jancborchardt jancborchardt deleted the from-link-no-space branch August 8, 2014 23:42
@jancborchardt
Copy link
Member

@bantu remember to delete unneeded branches.

@bantu
Copy link
Author

bantu commented Aug 8, 2014

@jancborchardt Thanks. I would like to keep it somewhere, though. Pushed to bantu now.

@jancborchardt
Copy link
Member

Yeah, please do that on personal space. The branch list is very long and it’s difficult to judge which ones are important and which not.

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

Successfully merging this pull request may close these issues.

5 participants