@@ -377,7 +377,7 @@ Feature: previews of files downloaded through the webdav API
377
377
| THUMBNAILS_MAX_INPUT_HEIGHT | 200 |
378
378
And using <dav-path-version> DAV path
379
379
And user "Alice" has uploaded file "filesForUpload/testavatar.jpg" to "/testimage.jpg"
380
- When user "Alice" downloads the preview of "/testimage.jpg" with width "36 " and height "36 " and processor thumbnail using the WebDAV API
380
+ When user "Alice" downloads the preview of "/testimage.jpg" with width "32 " and height "32 " and processor thumbnail using the WebDAV API
381
381
Then the HTTP status code should be "403"
382
382
And the value of the item "/d:error/s:message" in the response should be "thumbnails: image is too large"
383
383
Examples :
@@ -395,11 +395,28 @@ Feature: previews of files downloaded through the webdav API
395
395
| THUMBNAILS_MAX_INPUT_HEIGHT | 200 |
396
396
And using <dav-path-version> DAV path
397
397
And user "Alice" has uploaded file "filesForUpload/lorem-big.txt" to "/lorem-big.txt"
398
- When user "Alice" downloads the preview of "/lorem-big.txt" with width "36 " and height "36 " and processor thumbnail using the WebDAV API
398
+ When user "Alice" downloads the preview of "/lorem-big.txt" with width "32 " and height "32 " and processor thumbnail using the WebDAV API
399
399
Then the HTTP status code should be "403"
400
400
And the value of the item "/d:error/s:message" in the response should be "thumbnails: image is too large"
401
401
Examples :
402
402
| dav -path -version |
403
403
| old |
404
404
| new |
405
405
| spaces |
406
+
407
+ @issue-10589 @env-config
408
+ Scenario Outline : download a file preview when the maximum thumbnail input value in the environment is set to a valid value
409
+ Given the following configs have been set:
410
+ | config | value |
411
+ | THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE | 1KB |
412
+ | THUMBNAILS_MAX_INPUT_WIDTH | 700 |
413
+ | THUMBNAILS_MAX_INPUT_HEIGHT | 700 |
414
+ And using <dav-path-version> DAV path
415
+ And user "Alice" has uploaded file with content "hello world" to "test.txt"
416
+ When user "Alice" downloads the preview of "/test.txt" with width "32" and height "32" and processor thumbnail using the WebDAV API
417
+ Then the HTTP status code should be "200"
418
+ Examples :
419
+ | dav -path -version |
420
+ | old |
421
+ | new |
422
+ | spaces |
0 commit comments