[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: |
|
||||||||
| Issue Links: |
|
||||||||
| 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 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, |
| 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:
|