[MGNLIMG-336] Magnolia is not working with webp images Created: 11/Dec/23  Updated: 07/Feb/24  Resolved: 07/Feb/24

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: 3.5.10
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: Eduardo Galán Assignee: Unassigned
Resolution: Obsolete Votes: 1
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: Text File localhost.2023-12-07.log     Text File localhost_access_log.2023-12-07.txt    
Issue Links:
Relates
relates to BUILD-1181 Manage Kotlin dependencies in bom Closed
causality
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLIMG-337 Implementation Sub-task To Do  
MGNLIMG-338 Review Sub-task To Do  
MGNLIMG-339 Pre-Integration QA Sub-task To Do  
MGNLIMG-340 QA Sub-task To Do  
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:

 Description   

 
When using the module magnolia-imaging-3.5.10, webp images and the focal point module stop working and throw a 500 error.



 Comments   
Comment by Eduardo Galán [ 11/Dec/23 ]

Related to issue raised at https://jira.magnolia-cms.com/browse/HELPDESK-6052
Logs of errors have are also attached to this ticket and more error traces are shown below:

07-Dec-2023 16:32:05.729 SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [default] in context with path [/magnoliaAuthor] threw exception
	java.lang.RuntimeException: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: Could not initialize class com.luciad.imageio.webp.CompressionType
		at info.magnolia.module.cache.filter.CacheFilter.doFilter(CacheFilter.java:178)
		at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
		at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
		at info.magnolia.cms.i18n.I18nContentSupportFilter.doFilter(I18nContentSupportFilter.java:85)
		at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
		at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
		at info.magnolia.cms.filters.RangeSupportFilter.doFilter(RangeSupportFilter.java:79)
		at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:59)
		at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
		at info.magnolia.cms.security.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:57)
		at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
		at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
		at info.magnolia.multisite.filters.CrossSiteSecurityFilter.doFilter(CrossSiteSecurityFilter.java:104)
		at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
		at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
		at info.magnolia.cors.AbstractCorsFilter.doFilter(AbstractCorsFilter.java:77)
		at info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:59)
		at info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:79)
		at info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:85)
		at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:79)
		at info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:81) 
Comment by Eduardo Galán [ 11/Dec/23 ]

 

Steps to reproduce:

When using the mgnl jumpstart and a fresh new installation.

if you upload a WEBP asset you will see the preview is not working anymore and if you try to display it using the renditions, it also does not work.

If you add the magnolia-dam-focal-point module, the edit mode will stop working and every dialog will display an error when trying to select a new asset.

Can be manually reverted by downgrading the module to the version magnolia-imaging-3.5.9.

Comment by Marvin Kerkhoff [ 31/Jan/24 ]

As a workaround you could also downgrade:

 
<dependency>

<groupId>com.github.usefulness</groupId>

<artifactId>webp-imageio</artifactId>

<version>0.4.1</version>

</dependency>

Comment by Marco Blasco [ 05/Feb/24 ]

Hello

This topic is an important issue on our side and Fabian Mangold instructed us to communicate issues that have high priority. This would be one. When can we expect a fix here?

Cheers
Marco

Comment by Mercedes Iruela [ 07/Feb/24 ]

This issue is fixed in Magnolia 6.2.41, thanks to BUILD-1181. So that, I am closing this ticket as obsolete.

Generated at Mon Feb 12 02:14:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.