Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS] LPS-134061 The available locales for a site must be retrieved using LanguageUtil.getAvailableLocales #103152

Conversation

liferay-continuous-integration
Copy link
Collaborator

Forwarded from: liferay-echo#4859 (Took 1 ci:forward attempt in 1 minute)
Console

@jorgediaz-lr
@liferay-echo

Original pull request comment:
https://issues.liferay.com/browse/LPS-134061

When we retrieve the available locales for a site, we must use LanguageUtil.getAvailableLocales instead of group.getAvailableLanguageIds().
The group.getAvailableLanguageIds() method it seems it is intended for retrieving the locales used in the name and description of the group object for Staging purposes.

I have also applied the same change to the headless API in the SiteResourceImpl class as it is getting the wrong locales, after double checking it in slack: https://liferay.slack.com/archives/C5E1CRLJY/p1623393578079400

/cc @liferay-usm @drewbrokke @pei-jung

✔️ ci:test:sf - 1 out of 1 jobs passed in 5 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 0b33b620b95299e2c7306cd637927603b89b745d

Sender Branch:

Branch Name: LPS-134061
Branch GIT ID: 7993457b4faa347302e40a8f0f9dec3feb90d472

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

✔️ ci:test:stable - 10 out of 10 jobs passed

✔️ ci:test:relevant - 23 out of 25 jobs passed in 2 hours 29 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 0b33b620b95299e2c7306cd637927603b89b745d

Upstream Comparison:

Branch GIT ID: 0b33b620b95299e2c7306cd637927603b89b745d
Jenkins Build URL: Acceptance Upstream DXP (master) #1982

ci:test:stable - 10 out of 10 jobs PASSED
10 Successful Jobs:
ci:test:relevant - 22 out of 25 jobs PASSED
22 Successful Jobs:
For more details click here.

This pull contains no unique failures.


Failures in common with acceptance upstream results at 0b33b62:
  1. test-portal-acceptance-pullrequest-batch(master)/semantic-versioning-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #499284
      clean-up-java-processes:
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/clean_up_java_processes.sh
      [stopwatch] [run.batch.test.setup: 38:43.205 sec]
           [echo] run.batch.test.action.start.timestamp: 06-11-2021 13:55:54:549 PDT
           [echo] Checking for baseline log files.
           [echo] 
           [echo] ##
           [echo] ## /opt/dev/projects/github/liferay-portal/baseline-reports/portal-impl-7.log
           [echo] ##
           [echo] 
      [beanshell] [Baseline Warning] Bundle Version Change Recommended: 7.7.9
      [beanshell] 
      [stopwatch] [run.batch.test.action: 15.777 sec]
           [echo] Semantic versioning is incorrect.
            [get] Getting: http://test-1-3/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/499284//consoleText
            [get] To: /opt/dev/projects/github/liferay-portal/20210611135610326.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/20210611135610326.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1337754386.properties
  2. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8/0
    Job Results:

    2222 Tests Passed.
    31 Tests Failed.

    1. AXIS_VARIABLE=3,label_exp=!master #463788
      1. com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.testGetClassicLocalizedLayoutSEOLinksWithDefaultLocale
        java.lang.NullPointerException
        	at com.liferay.questions.web.internal.layout.seo.QuestionsLayoutSEOLinkManagerImpl.getLocalizedLayoutSEOLinks(QuestionsLayoutSEOLinkManagerImpl.java:80)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.lambda$null$0(LayoutSEOLinkManagerTest.java:99)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest._testWithSiteDefaultLanguage(LayoutSEOLinkManagerTest.java:350)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.lambda$testGetClassicLocalizedLayoutSEOLinksWithDefaultLocale$1(LayoutSEOLinkManagerTest.java:95)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest._testWithLayoutSEOCompanyConfiguration(LayoutSEOLinkManagerTest.java:328)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.testGetClassicLocalizedLayoutSEOLinksWithDefaultLocale(LayoutSEOLinkManagerTest.java:93)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(A...
      2. com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.testGetClassicLocalizedLayoutSEOLinksWithNoDefaultLocale
        java.lang.NullPointerException
        	at com.liferay.questions.web.internal.layout.seo.QuestionsLayoutSEOLinkManagerImpl.getLocalizedLayoutSEOLinks(QuestionsLayoutSEOLinkManagerImpl.java:80)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.lambda$null$2(LayoutSEOLinkManagerTest.java:125)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest._testWithSiteDefaultLanguage(LayoutSEOLinkManagerTest.java:350)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.lambda$testGetClassicLocalizedLayoutSEOLinksWithNoDefaultLocale$3(LayoutSEOLinkManagerTest.java:121)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest._testWithLayoutSEOCompanyConfiguration(LayoutSEOLinkManagerTest.java:328)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.testGetClassicLocalizedLayoutSEOLinksWithNoDefaultLocale(LayoutSEOLinkManagerTest.java:119)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.eva...
      3. com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.testGetDefaultLocalizedLayoutSEOLinksWithDefaultLocale
        java.lang.NullPointerException
        	at com.liferay.questions.web.internal.layout.seo.QuestionsLayoutSEOLinkManagerImpl.getLocalizedLayoutSEOLinks(QuestionsLayoutSEOLinkManagerImpl.java:80)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.lambda$null$4(LayoutSEOLinkManagerTest.java:151)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest._testWithSiteDefaultLanguage(LayoutSEOLinkManagerTest.java:350)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.lambda$testGetDefaultLocalizedLayoutSEOLinksWithDefaultLocale$5(LayoutSEOLinkManagerTest.java:147)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest._testWithLayoutSEOCompanyConfiguration(LayoutSEOLinkManagerTest.java:328)
        	at com.liferay.layout.seo.test.LayoutSEOLinkManagerTest.testGetDefaultLocalizedLayoutSEOLinksWithDefaultLocale(LayoutSEOLinkManagerTest.java:145)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluat...
      4. ...
    2. AXIS_VARIABLE=4,label_exp=!master #463788
      1. com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.testIncludeCustomCanonicalURL
        java.lang.NullPointerException
        	at com.liferay.questions.web.internal.layout.seo.QuestionsLayoutSEOLinkManagerImpl.getLocalizedLayoutSEOLinks(QuestionsLayoutSEOLinkManagerImpl.java:80)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.OpenGraphTopHeadDynamicInclude.include(OpenGraphTopHeadDynamicInclude.java:117)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.lambda$testIncludeCustomCanonicalURL$0(OpenGraphTopHeadDynamicIncludeTest.java:161)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest._testWithLayoutSEOCompanyConfiguration(OpenGraphTopHeadDynamicIncludeTest.java:1252)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.testIncludeCustomCanonicalURL(OpenGraphTopHeadDynamicIncludeTest.java:160)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.eval...
      2. com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.testIncludeCustomDescription
        java.lang.NullPointerException
        	at com.liferay.questions.web.internal.layout.seo.QuestionsLayoutSEOLinkManagerImpl.getLocalizedLayoutSEOLinks(QuestionsLayoutSEOLinkManagerImpl.java:80)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.OpenGraphTopHeadDynamicInclude.include(OpenGraphTopHeadDynamicInclude.java:117)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.lambda$testIncludeCustomDescription$1(OpenGraphTopHeadDynamicIncludeTest.java:192)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest._testWithLayoutSEOCompanyConfiguration(OpenGraphTopHeadDynamicIncludeTest.java:1252)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.testIncludeCustomDescription(OpenGraphTopHeadDynamicIncludeTest.java:191)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evalua...
      3. com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.testIncludeCustomMetaTags
        java.lang.NullPointerException
        	at com.liferay.questions.web.internal.layout.seo.QuestionsLayoutSEOLinkManagerImpl.getLocalizedLayoutSEOLinks(QuestionsLayoutSEOLinkManagerImpl.java:80)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.OpenGraphTopHeadDynamicInclude.include(OpenGraphTopHeadDynamicInclude.java:117)
        	at com.liferay.layout.seo.web.internal.servlet.taglib.test.OpenGraphTopHeadDynamicIncludeTest.testIncludeCustomMetaTags(OpenGraphTopHeadDynamicIncludeTest.java:232)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        	at com.liferay.portal.kernel.test.rule.AbstractTe...
      4. ...

…anguageUtil.getAvailableLocales, the method group.getAvailableLanguageIds returns the locales that are used in the name and description fields
…mpl class as it is getting the wrong locales
@liferay-continuous-integration
Copy link
Collaborator Author

To conserve resources, the PR Tester does not automatically run for forwarded pull requests.

@ruben-pulido
Copy link

@ruben-pulido @ealonso

@brianchandotcom
Copy link
Owner

Merged. Thank you.
View total diff: e758866...a79e313

@liferay-continuous-integration liferay-continuous-integration deleted the ci-forward-LPS-134061-pr-4859-sender-jorgediaz-lr-ts-1623680083322 branch June 22, 2021 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants