[CLOUDINARY-26] Access Cloudinary metadata Created: 04/Apr/23  Updated: 08/May/23  Resolved: 08/May/23

Status: Closed
Project: Cloudinary DAM Connector
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.12

Type: Improvement Priority: Neutral
Reporter: Sebastian Geschke Assignee: Sebastian Geschke
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-04-04-11-52-55-546.png     PNG File image-2023-04-04-11-53-00-319.png     PNG File image-2023-05-03-15-05-20-695.png     PNG File image-2023-05-03-15-05-41-240.png    
Issue Links:
Relates
relates to CLOUDINARY-32 Contextual Metadata not present on Cl... Closed
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)
Date of First Response:

 Description   

Asset metadata should be returned by the cloudinary API and made available in Magnolia.

Maybe also consider adding I18n support to cloudinary widget. This could be handled via metadata and naming convention.
 



 Comments   
Comment by Julius Rabe [ 03/May/23 ]

Hi Sebi,

thanx for checking the ticket. The cloudinary metadata is now fetched from cloudinary api but I think that the metadate is never mapped to the Asset fieldes.

I think somewhere around Line 164 in Class https://git.magnolia-cms.com/projects/INCUBATOR/repos/cloudinary-parent/browse/cloudinary-dam-connector/src/main/java/info/magnolia/external/dam/cloudinary/service/Media.java
there is missing a handling for mapping the cloudinary metadata.

I think there is somethin missing like:

Map<String, Object> metadata = (Map<String, Object>) data.get(CloudinaryConstants.METADATA);
if(!metadata.isEmpty()) { 
    metadataMap.putAll(metadata);
} 

 

Thanks and BR,
Julius

Comment by Sebastian Geschke [ 03/May/23 ]

Metadata provided by Cloudinary is not yet accessible on CloudinaryAsset (see j.rabe's comment)

To be more precise:

  •  Contextual metadata was present
  • Structured metadata was missing
Generated at Mon Feb 12 00:00:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.