[RESPDAM-49] FocalPointFunctions.java does not return an encoded URL Created: 03/Aug/21  Updated: 14/Feb/22  Resolved: 07/Feb/22

Status: Closed
Project: DAM Focal
Component/s: None
Affects Version/s: 2.0.6
Fix Version/s: 2.1

Type: Bug Priority: Neutral
Reporter: Patrik Krupar Assignee: Raphael Falvo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[X]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Sprint 13

 Description   

Steps to reproduce

  1. Upload file with German characters and blank spaces like "file name üöä.jpg"
  2.  use Method getVariationUrl to get the correct Url from DAM

Expected results

getVariationUrl Method of the FocalPointFunctions.java should return an encoded URL

Actual results

Workaround

Development notes



 Comments   
Comment by Adrien Manzoni [ 03/Feb/22 ]

As well for FocalAreaFunctions

Comment by Raphael Falvo [ 04/Feb/22 ]

PR: https://git.magnolia-cms.com/projects/INCUBATOR/repos/dam-focal/pull-requests/9/overview
 
Tested on local instace with following results:
Focal area:
Before:
/.imaging/focalarea/Cinema/426x240/dam/jcr:b9954efd-b3e5-4440-bac4-352fd4c0a568/file+name+üöä.png
After:
/.imaging/focalarea/Cinema/426x240/dam/jcr:b9954efd-b3e5-4440-bac4-352fd4c0a568/file+name+u%CC%88o%CC%88a%CC%88.png
Focal point
Before :
/.imaging/focalpoint/560x240/dam/jcr:b9954efd-b3e5-4440-bac4-352fd4c0a568/file+name+üöä.png
After:
/.imaging/focalpoint/560x240/dam/jcr:b9954efd-b3e5-4440-bac4-352fd4c0a568/file+name+u%CC%88o%CC%88a%CC%88.png

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