[MAGNOLIA-8531] I18n with MTE Imaging in a multisite environment Created: 30/Aug/22  Updated: 31/Aug/22

Status: Open
Project: Magnolia
Component/s: i18n
Affects Version/s: 6.1.8
Fix Version/s: None

Type: Bug Priority: High
Reporter: Sidney May Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Server Version: Apache Tomcat/8.5.71
JVM Version: 1.8.0_345-b01


Attachments: XML File config.modules.multisite.config.sites.xml     XML File config.server.i18n.xml     PNG File image-2022-08-30-16-41-45-162.png     PNG File image-2022-08-30-17-00-17-950.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

 Description   

Case 1

Steps to reproduce

  1. Upload any .png or .jpg Image in Assets-App creating a new Asset
  2. Change language and upload other images for different languages (using example multisite configuration: config.modules.multisite.config.sites.xml and i18n: config.server.i18n.xml )
  3. Generate Link in Freemarker Template with damfn.getAssetLink (Variation Aware with default Variation) for said asset (using its itemkey) adding a non default or fallback language for the current site at the start (example result: /en/.imaging/mte/<name of theme>/default/dam/<path to image>/jcr:content/<name of image>.png)
  4. open link in website

Expected results

The Image that was uploaded in the corresponding language determined by path (in this case english)

Actual results

The Image with which the asset was created at first, completely ignoring i18n

Case 2

Steps to reproduce

  1. Upload any .png or .jpg Image in Assets-App creating a new Asset
  2. Change language and upload other images for different languages
  3. Generate a direct link (using either damfn.getAssetLink or cmsfn.link) adding desired language at the start (example link: /en/dam/jcr:8deeb22d-d9d7-403f-9a0c-3d8046253154/<name of image>.png)
  4. Use a Hostname that is configured in Multisite (example configuration below):
  5. Open the following url (example): https://dev-bg.neusta-ws.de/en/dam/jcr:8deeb22d-d9d7-403f-9a0c-3d8046253154/<name of image>.pngĀ 

Expected results

The Image that was uploaded in the corresponding language determined by path (in this case english)

Actual results

The Image that was uploaded in the language determined by fallbackLocale (in this case bulgarian)

Workaround

Development notes


Generated at Mon Feb 12 04:33:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.