[RESPDAM-19] OutputFormat formatName gets replaced with default jpg Created: 29/Nov/19  Updated: 14/Feb/22  Resolved: 29/Apr/20

Status: Closed
Project: DAM Focal
Component/s: None
Affects Version/s: 1.1.4
Fix Version/s: 1.1.6

Type: Bug Priority: Neutral
Reporter: Fabian Bading Assignee: Adrien Manzoni
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File wrong-location-for-extension.png    
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:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Sprint 5

 Description   

info.magnolia.dam.imaging.responsive.ui.imaging.ResponsiveImageOperationChain

The class checks for file extension after the output format is created and uses the node, given by the ParameterProvider. The Node is the asset node, but the extension is located in the jcr:content node beneath the asset node.

Is it intended, that the OutputFormat formatName gets replaced regardless of the provided parameters?
You're already using
info.magnolia.dam.imaging.responsive.ui.imaging.parameters.ResponsiveImageParameter#getFormatName
which uses the substring after the last dot in the node name.


Generated at Mon Feb 12 00:41:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.