core icon indicating copy to clipboard operation
core copied to clipboard

setting language in session at top of template doesn't work

Open jtesser opened this issue 10 years ago • 10 comments

If you do something like this at the top of a template $request.getSession().setAttribute('com.dotmarketing.htmlpage.language', '2')

English images will still show. I would think this would set the language in the session and the follow up requests would serve based on the set session language

jtesser avatar Aug 12 '16 18:08 jtesser

https://www.flowdock.com/app/dotcms/dev-team-rex/threads/1lOB6s8zqzcwhnpSZ2Nh7hQ2cER

jtesser avatar Aug 12 '16 18:08 jtesser

Even if you flush cache?

dotcmsCodeReview avatar Aug 12 '16 19:08 dotcmsCodeReview

Sorry, don't mean to reply to my own post - I mean browser cache?

wezell avatar Aug 12 '16 19:08 wezell

not a cache thing here from what I can tell

jtesser avatar Aug 16 '16 15:08 jtesser

Not able to reproduce, probably fixed with this one https://github.com/dotCMS/core/issues/9512 @DeanGonzalez is gonna update the server with the latest changes and try once again.

erickgonzalez avatar Aug 16 '16 16:08 erickgonzalez

I tested and reported to Erick that I am still seeing the errors in my local as of today's build - he is re-testing.

DeanGonzalez avatar Aug 17 '16 16:08 DeanGonzalez

@shaydotcms please make sure this is still working: https://github.com/dotCMS/core/issues/8388

dsilvam avatar Aug 17 '16 21:08 dsilvam

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

erickgonzalez avatar Aug 17 '16 21:08 erickgonzalez

I tested this issue again, seems like latest changes have fixed all cases... looking good!

DeanGonzalez avatar Aug 18 '16 16:08 DeanGonzalez

I also tested the case in this task: https://github.com/dotCMS/core/issues/8388 - and something like: http://localhost:8080/?language_id=45 - does pass the test and resolves to the default language, you do have to remember to ctrl/cmd-R to get the image to refresh because of the browser cache, but it works.

DeanGonzalez avatar Aug 19 '16 14:08 DeanGonzalez