I hope .apkg/.vas extensions are not supported in AEM and We have found the fix for this issue by enabling the configuration in OSGi: Day cq DAM MIME type service . Please review the below details :
Scenerio:1
OSGi configuration in Author -1: Day cq DAM MIME type service - check box enabled
OSGi configuration in Author -2: Apache sling commons MIME trpe service - Added MIME type vas/apkg configuration
1. Upload new asset in DAM console with "application/octet-stream" MIME type and the DAM asset MIME type will get changed to "text/html" (after uploaded the asset)
2. For existing asset which has "application/octet-stream" MIME type - if we initiate the DAM Update Asset workflow for that asset. Then MIME type of the asset gets changed to "text/html" MIME type.
3. When we search for .apkg/.vas extension from Manuscript filter - we are able to see the assets in search result.
Log: when we initiate the DAM update workflow.
mime type [text/html] of asset [/content/dam/abc.apkg] is not in list of accepted mime types [[image/eps, image/x-eps, application/postscript, application/eps, application/x-eps]], ignoring.
Scenerio:2
OSGi configuration in Author -1: Day cq DAM MIME type service - check box disabled
OSGi configuration in Author -2: Apache sling commons MIME trpe service - Added MIME type vas/apkg configuration
1. Upload new asset in DAM console with "application/octet-stream" MIME type and that remains same MIME type.
2. For existing asset which has "application/octet-stream" MIME type - if we initiate the DAM Update Asset workflow for that asset. No change in the MIME type of the asset
3. When we search for .apkg/.vas extension from Manuscript filter - we are unable to see the assets in search result.
Scenerio:3
OSGi configuration in Author -1: Day cq DAM MIME type service - check box enabled
OSGi configuration in Author -2: Apache sling commons MIME trpe service - Removded vas/apkg configuration
1. Upload new asset in DAM console with "application/octet-stream" MIME type and the DAM asset MIME type will get changed to "text/html" (after uploaded the asset)
2. For existing asset which has "application/octet-stream" MIME type - if we initiate the DAM Update Asset workflow for that asset. Then MIME type of the asset gets changed to "text/html" MIME type.
3. When we search for .apkg/.vas extension from Manuscript filter - we are able to see the assets in search result.
Conclusion:
.apkg/.vas assets which has "text/html" MIME type - we are able to see the assets in search result
.apkg/.vas assets which has "application/octet-stream" MIME type - we are unable to see the assets in search result