Static Publish: Fail to push multilingual content
Currently, it is not possible to push static content in an alternative language. The application just considers the default language.
Log details: https://gist.github.com/nollymar/87c796e3f42859dc971c958fd484bbdb
Expected Behavior
The user should be able to publish in AWS S3 any content with all its languages versions
Steps to Reproduce (for bugs)
- Create a new language
- Create a Page Asset or File Asset for the new language
- Try to publish in a static environment.
- Check dotcms.log. Error details: https://gist.github.com/nollymar/87c796e3f42859dc971c958fd484bbdb
Note: when a new content is created in two languages: the default language and an alternative one, the content is pushed, but just one file is saved in the S3 instance
Your Environment
- dotCMS version used: 3.7.0
- Browser Name and version: Google Chrome
- Operating System and version: Mac OS
- Application Server and version: Tomcat 8
- Java Brand and version: JDK 1.8
- Database and version: Postgres (starter)
- Application module (if apply): Push Publishing
@nollymar what is your bucket/folder pattern?
Firstly, I wasn't considering the hostname/language pattern. But in a second attempt, I considered the suggested one: dotcms-nolly-bucket-{hostname}-{languageIso} and it didn't work either.
I think u need to have the page in another language. Not just content on it. This might not be right but test that also
On Fri, Jan 27, 2017, 4:15 PM Nollymar Longa [email protected] wrote:
Firstly, I wasn't considering the hostname/language pattern. But in a second attempt, I considered the suggested one: dotcms-nolly-bucket-{hostname}-{languageIso} and it didn't work either.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10565#issuecomment-275776352, or mute the thread https://github.com/notifications/unsubscribe-auth/ABaubU97S_0FP8vG6MRRhDHidSLCSZ_Tks5rWl5ZgaJpZM4LwNCm .
Ahh wait this is urlmap content right
On Fri, Jan 27, 2017, 4:24 PM Jason Tesser [email protected] wrote:
I think u need to have the page in another language. Not just content on it. This might not be right but test that also
On Fri, Jan 27, 2017, 4:15 PM Nollymar Longa [email protected] wrote:
Firstly, I wasn't considering the hostname/language pattern. But in a second attempt, I considered the suggested one: dotcms-nolly-bucket-{hostname}-{languageIso} and it didn't work either.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10565#issuecomment-275776352, or mute the thread < https://github.com/notifications/unsubscribe-auth/ABaubU97S_0FP8vG6MRRhDHidSLCSZ_Tks5rWl5ZgaJpZM4LwNCm
.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10565#issuecomment-275778401, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfteE8C_UXwSoQw3yi1Ml1CLfPsstgrks5rWmCEgaJpZM4LwNCm .
This was working. Need to debug and see what is up
On Fri, Jan 27, 2017, 4:25 PM dotCMS Code Review [email protected] wrote:
Ahh wait this is urlmap content right
On Fri, Jan 27, 2017, 4:24 PM Jason Tesser [email protected] wrote:
I think u need to have the page in another language. Not just content on it. This might not be right but test that also
On Fri, Jan 27, 2017, 4:15 PM Nollymar Longa [email protected] wrote:
Firstly, I wasn't considering the hostname/language pattern. But in a second attempt, I considered the suggested one: dotcms-nolly-bucket-{hostname}-{languageIso} and it didn't work either.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10565#issuecomment-275776352, or mute the thread <
https://github.com/notifications/unsubscribe-auth/ABaubU97S_0FP8vG6MRRhDHidSLCSZ_Tks5rWl5ZgaJpZM4LwNCm
.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10565#issuecomment-275778401, or mute the thread < https://github.com/notifications/unsubscribe-auth/ABfteE8C_UXwSoQw3yi1Ml1CLfPsstgrks5rWmCEgaJpZM4LwNCm
.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10565#issuecomment-275778672, or mute the thread https://github.com/notifications/unsubscribe-auth/ABaubcdtfP7a9_uBnKTJFsHQN125WTe2ks5rWmC7gaJpZM4LwNCm .
@jtesser , I created a page version for two languages: English and French. But the logic seems to be considering the default one: https://github.com/dotCMS/enterprise-2.x/blob/42953239dcd3d36673dbb614fb6f51f3a60298a7/src/com/dotcms/enterprise/publishing/staticpublishing/StaticDependencyBundler.java#L119-L119
Yea talking to Daniel about it now
On Fri, Jan 27, 2017, 4:30 PM Nollymar Longa [email protected] wrote:
@jtesser https://github.com/jtesser , I created a page version for two languages: English and French. But the logic seems to be considering the default one: https://github.com/dotCMS/enterprise-2.x/blob/42953239dcd3d36673dbb614fb6f51f3a60298a7/src/com/dotcms/enterprise/publishing/staticpublishing/StaticDependencyBundler.java#L119-L119
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dotCMS/core/issues/10565#issuecomment-275779981, or mute the thread https://github.com/notifications/unsubscribe-auth/ABaubZvlpubJdf8wGpB1OixXEWlN930Zks5rWmIEgaJpZM4LwNCm .
ee PR: https://github.com/dotCMS/enterprise-2.x/pull/431
Now, this error is solved: https://gist.github.com/nollymar/87c796e3f42859dc971c958fd484bbdb. However, after publishing demo site in multiple languages, the site has some problems with css styles. In the JS Console this message is displayed: Failed to load resource: the server responded with a status of 404 (Not Found) http://nolly-bucket-demo.dotcms.com-en-us.s3-website-us-west-2.amazonaws.com/DOTLESS/application/themes/quest/less/main.css
Reported at: https://github.com/dotCMS/core/issues/10573