core icon indicating copy to clipboard operation
core copied to clipboard

BinaryExporterServlet does not return images all images when using multiple languages

Open ghost opened this issue 13 years ago • 4 comments

When working with content/images in multiple languages, the BinaryExporterServlet (/contentAsset) can't be used since it always returns an image in the default language. We suggest that you change this to the current language, and when the image does not exist in the current language use the default language as a fallback.

ghost avatar May 27 '13 13:05 ghost

Correction: the BinaryExporterServlet only returns images in the current language, and does not default to the default language (which happens when you access an image by its URL)

ghost avatar May 27 '13 13:05 ghost

Is this true even if you pull the image by inode? You should be able to specify the byInode/true and get the exact image you want.

On Mon, May 27, 2013 at 9:16 AM, isaaceindhoven [email protected]:

When working with content/images in multiple languages, the BinaryExporterServlet (/contentAsset) can't be used since it always returns an image in the default language. We suggest that you change this to the current language, and when the image does not exist in the current language use the default language as a fallback.

— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/2940 .

dotcmsCodeReview avatar May 27 '13 13:05 dotcmsCodeReview

We retrieve the content by Identifier, so perhaps it is possible if we change this. I will look into this immediately.

ghost avatar May 27 '13 13:05 ghost

Yes, /byInode/1 pulls the correct language. Thanks

ghost avatar May 27 '13 13:05 ghost