core icon indicating copy to clipboard operation
core copied to clipboard

BinaryExporterServlet not respecting DEFAULT_CONTENT_TO_DEFAULT_LANGUAGE property

Open jgambarios opened this issue 11 years ago • 5 comments

The BinaryExporterServlet is not respecting the property DEFAULTCONTENTTODEFAULTLANGUAGE for file assets:

Working cases (As always the content is delivered regardless the language in session) :

http://demo.dotcms.com/contentAsset/raw-data/249eeb5c-7002-48e8-9ef3-ea6cd8ea9043/fileAsset?byInode=true
http://demo.dotcms.com/contentAsset/raw-data/249eeb5c-7002-48e8-9ef3-ea6cd8ea9043/fileAsset?byInode=true&language_id=1
http://demo.dotcms.com/contentAsset/raw-data/249eeb5c-7002-48e8-9ef3-ea6cd8ea9043/fileAsset?byInode=true&language_id=2

http://demo.dotcms.com/images/404.jpg
http://demo.dotcms.com/images/404.jpg?language_id=1
http://demo.dotcms.com/images/404.jpg?language_id=2

Not working cases (And assuming the default language id is 1):

http://demo.dotcms.com/contentAsset/resize-image/4d7daefa-6adb-4b76-896d-c2d9f95b2280/fileAsset/w/373/h/178?language_id=2
http://demo.dotcms.com/contentAsset/resize-image/4d7daefa-6adb-4b76-896d-c2d9f95b2280/fileAsset/w/373/h/178/v/249eeb5c-7002-48e8-9ef3-ea6cd8ea9043?language_id=2

Basically the content is not delivered when the language is not the default language and the content is requested by Identifier, even if the DEFAULTCONTENTTODEFAULTLANGUAGE property is set to true.

jgambarios avatar May 07 '15 22:05 jgambarios

R&D I'm working on it as I need a fix for a client in support.

jgambarios avatar May 07 '15 22:05 jgambarios

PR: https://github.com/dotCMS/core/pull/7704

oarrietadotcms avatar May 08 '15 15:05 oarrietadotcms

Added TC http://qa.dotcms.com/index.php?/cases/view/59170

shaydotcms avatar Jun 17 '15 17:06 shaydotcms

PR: https://github.com/dotCMS/core/pull/8001

jgambarios avatar Jul 27 '15 21:07 jgambarios

Fixed

bryanboza avatar Aug 19 '15 21:08 bryanboza