A develops Writes the following code to programmatically copy an existing asset to another folder in the DAM:
Com.adobe.granite.asset.api.AssetManagerassetManager= resourceResolveradaptTotcom.adobegrarMte.assetapi.AssetManagef.class) assetManager.copyAssetC/content/dam/projectA/assetjpg'. "/content/dam/project B/asset.jpg After executing this code, the developer receives the following exception:
javax.jcr.PathNotPoundException
What caused this issue?
- The user lacks CREATE permission to the path /content/dam/project B
- The path /content/dam/projectB does not exist
- The user lacks READ permission to the asset in /content/dam/project A
- The asset in /content/dam/projectA/assetjpg does not exist
Answer(s): D
Reference:
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/assetmanager- copyasset-method-not-working/qaq-p/209732
Reveal Solution Next Question