-
Notifications
You must be signed in to change notification settings - Fork 196
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
[QA] tests for exceeding thumbnails max_input configs #10725
Comments
when i tested for dimentions idk why its working for those dimentions. |
i don't get the above problem locally but it is still present in ci
```shell
@issue-10589 @env-config
Scenario Outline: try to download an image preview when the maximum thumbnail input value in the environment is set to a small value # /drone/src/tests/acceptance/features/coreApiWebdavPreviews/previews.feature:372
|
But you will actually get |
The behavior is OK for image files. Trying to get thumbnail of an image exceeding any of |
Same should be the behavior for text file as well. See the description above.
|
Please, use |
this statement is wrong. the requested res doesn't get affected by the configured max settings. Those settings are for the input image |
Bug report: #10589
Required envs: (change values if necessary)
Test cases:
Pre-conditions:
Test:
Image
32x32
thumbnail of image that exceeds one of the config value403 Forbidden
36x36
because web uses36x36
thumbnail [tests-only][full-ci] tests: adding test coverage for thumbnail service #10763Text
NOTE: for text files,
640x480
res image will be created for thumbnail processing. Seeocis/services/thumbnails/pkg/preprocessor/preprocessor.go
Lines 110 to 111 in 8a522b9
700
and download32x32
thumbnail (should be successful)200
and try to download32x32
thumbnail (assert errors) [tests-only][full-ci] tests: adding test coverage for thumbnail service #10763The text was updated successfully, but these errors were encountered: