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

Fixing several issues with the optimized handling of renditions in AdaptiveImageServlet: #1287

Merged
merged 2 commits into from
Dec 1, 2020

Conversation

vladbailescu
Copy link
Member

  • Do no try to open non-image renditions as images
  • Do not try to infer size based on file name, it's not reliable
  • Use proper asset handler for each rendition (PNG originals might have JPEG renditions)

Fixes #1279

…aptiveImageServlet:

* Do no try to open non-image renditions as images
* Do not try to infer size based on file name, it's not reliable
* Use proper asset handler for each rendition (PNG originals might have JPEG renditions)
@vladbailescu vladbailescu requested a review from msagolj November 27, 2020 17:33
@codecov
Copy link

codecov bot commented Nov 27, 2020

Codecov Report

Merging #1287 (18da417) into development (5800216) will decrease coverage by 0.01%.
The diff coverage is 75.00%.

Impacted file tree graph

@@                Coverage Diff                @@
##             development    #1287      +/-   ##
=================================================
- Coverage          84.91%   84.90%   -0.02%     
- Complexity          1798     1799       +1     
=================================================
  Files                169      169              
  Lines               5079     5073       -6     
  Branches             799      799              
=================================================
- Hits                4313     4307       -6     
  Misses               304      304              
  Partials             462      462              
Impacted Files Coverage Δ Complexity Δ
...onents/internal/servlets/AdaptiveImageServlet.java 77.58% <71.42%> (+0.05%) 78.00 <1.00> (+1.00)
...omponents/internal/servlets/EnhancedRendition.java 94.28% <80.00%> (-0.96%) 12.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5800216...18da417. Read the comment docs.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@msagolj msagolj merged commit 29efced into development Dec 1, 2020
@msagolj msagolj deleted the issue/1279 branch December 1, 2020 14:03
@msagolj msagolj modified the milestone: 2.13.0 Dec 1, 2020
msagolj pushed a commit that referenced this pull request Dec 1, 2020
…aptiveImageServlet: (#1287)

* Fixing several issues with the optimized handling of renditions in AdaptiveImageServlet:
* Do no try to open non-image renditions as images
* Do not try to infer size based on file name, it's not reliable
* Use proper asset handler for each rendition (PNG originals might have JPEG renditions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants