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

requesting a file preview with an ivalid size results in HTTP error 500 #37165

Closed
individual-it opened this issue Mar 25, 2020 · 4 comments · Fixed by #37173
Closed

requesting a file preview with an ivalid size results in HTTP error 500 #37165

individual-it opened this issue Mar 25, 2020 · 4 comments · Fixed by #37173
Assignees
Labels

Comments

@individual-it
Copy link
Member

Steps to reproduce

  1. request a preview with size 0 e.g. curl '172.17.0.1/owncloud-core/remote.php/dav/files/admin/lorem.txt?x=0&y=320&forceIcon=1&preview=1' -u admin:admin -v

Expected behaviour

HTTP code 400 - Bad Request

Actual behaviour

HTTP code 500 - Internal Server error

@phil-davis
Copy link
Contributor

What about x=-1 x=1.5 x=abc ? :)

@individual-it
Copy link
Member Author

What about x=-1 x=1.5 x=abc ? :)

on it #37166

@DeepDiver1975 DeepDiver1975 self-assigned this Mar 26, 2020
@DeepDiver1975
Copy link
Member

DeepDiver1975 commented Mar 26, 2020

Which version is this? I'm getting a 404 on master

@DeepDiver1975
Copy link
Member

DeepDiver1975 commented Mar 26, 2020

is there an error in the log file? http 500 should write something into the logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants