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

[Bug]: Unable to generate thumbnail in ORIGINAL format #17051

Closed
limenet opened this issue May 15, 2024 · 5 comments · Fixed by #17129
Closed

[Bug]: Unable to generate thumbnail in ORIGINAL format #17051

limenet opened this issue May 15, 2024 · 5 comments · Fixed by #17129
Assignees
Milestone

Comments

@limenet
Copy link
Contributor

limenet commented May 15, 2024

Pimcore version

11.2.3.2

Steps to reproduce

  1. Create a thumbnail definition
  2. Set "Format" to ORIGINAL (and, for easier reproduction, enable "List as option in download section on image detail view")
  3. Upload a JPG image
  4. Generate a thumbnail e.g. by selecting that definition in the asset module and clicking "Download"

Note: pimcore.assets.thumbnails.allowed_formats as described at https://pimcore.com/docs/platform/Pimcore/Installation_and_Upgrade/Upgrade_Notes/#pimcore-1124--11231--11165 is left untouched i.e. JPG (or any variations thereof) should work.

Actual Behavior

  1. HTTP 500

Please note: this is currently only reproducible on the Enterprise demo which uses v11.2.3.2 and not on the Community demo which is on v11.2.3 as the corresponding change introduced in a6821a1 is not yet tagged as a non-Enterprise version (see also v11.2.3...11.x).

Expected Behavior

  1. Thumbnail is downloaded in the original format

The bug is due to a6821a1#diff-b48489e5be12fb4a4ec4f716c03e4690a799c39a87430cbb1a435d7badebf97cR433-R449 not checking whether the original format is requested and checking that value against the allowed_formats in the in_array call.

If desired, I can submit a pull request with a fix.

@limenet limenet added the Bug label May 15, 2024
@limenet
Copy link
Contributor Author

limenet commented Jun 5, 2024

Can confirm this bug can be reproduced on 11.2.4 on both the Community and the Enterprise demo.

@mattamon
Copy link
Contributor

mattamon commented Jun 5, 2024

@limenet I created a PR #17129
Could you please check if that fixes it for you. For me it now works as intended with these changes.

@limenet
Copy link
Contributor Author

limenet commented Jun 5, 2024

@mattamon appreciate the PR and can confirm it now works as expected

@mattamon
Copy link
Contributor

mattamon commented Jun 5, 2024

@limenet Thank you for your quick feedback! I am waiting for feedback in another issue, but as soon as I have it, I will merge this PR

@mattamon
Copy link
Contributor

mattamon commented Jun 6, 2024

Closed by #17129

@limenet new version was released today https://github.com/pimcore/pimcore/releases/tag/v11.2.5

@mattamon mattamon closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants