-
Type:
Regression Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP8, 7.2.10.3 DXP SP3, 7.2.X, 7.3.4 CE GA5, 7.3.5 CE GA6, 7.3.10 DXP GA1, Master
-
Component/s: AMD Module Loader
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Preconditions:
- Change root context from '/' to another value. For example, changing it to 'myportal' in Tomcat would be:
Change the ROOT folder name (under LIFERAY_HOME/TOMCAT_HOME/webapps/ROOT) to 'myportal'.
Change the ROOT.xml file name (under LIFERAY_HOME/TOMCAT_HOME/conf/Catalina/localhost/) to 'myportal.xml'.
Clear temp and work directories under TOMCAT_HOME.
- On master: Enable JQuery. Thus, in osgi/configs/ directory create the file:
com.liferay.frontend.js.jquery.web.internal.configuration.JSJQueryConfiguration.config
with following content:enableJQuery="true"
- On 7.2: JQuery is enabled by default.
Steps to reproduce:
- Enter this URL in the browser http://localhost:8080/myportal/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Flogin&js_fast_load=1
- Check in the browser, under developer tools, the request URL generated.
Observed behavior:
Combo servlet URL has an error.
On master:
http://localhost:8080/myportal/myportal/combo?browserId=chrome&minifierType=js&languageId=en_US&b=7304&t=1596551662833&/myportal/o/frontend-js-jquery-web/jquery/jquery.min.js&/myportal/o/frontend-js-jquery-web/jquery/init.js&/myportal/o/frontend-js-jquery-web/jquery/ajax.js&/myportal/o/frontend-js-jquery-web/jquery/bootstrap.bundle.min.js&/myportal/o/frontend-js-jquery-web/jquery/collapsible_search.js&/myportal/o/frontend-js-jquery-web/jquery/fm.js&/myportal/o/frontend-js-jquery-web/jquery/form.js&/myportal/o/frontend-js-jquery-web/jquery/popper.min.js&/myportal/o/frontend-js-jquery-web/jquery/side_navigation.js
On 7.2.x:
http://localhost:8080/myportal/myportal/combo?browserId=other&minifierType=js&languageId=es_ES&b=7210&t=1596526812119&/myportal/o/frontend-js-jquery-web/jquery/jquery.min.js&/myportal/o/frontend-js-jquery-web/jquery/bootstrap.bundle.min.js&/myportal/o/frontend-js-jquery-web/jquery/collapsible_search.js&/myportal/o/frontend-js-jquery-web/jquery/fm.js&/myportal/o/frontend-js-jquery-web/jquery/form.js&/myportal/o/frontend-js-jquery-web/jquery/popper.min.js&/myportal/o/frontend-js-jquery-web/jquery/side_navigation.js
Please, note that context 'myportal' appears twice in the URL. So, a 404 response code is gotten.
Expected behavior:
Combo servlet URL is correct.
On master:
http://localhost:8080/myportal/combo?browserId=chrome&minifierType=js&languageId=en_US&b=7304&t=1596551662833&/myportal/o/frontend-js-jquery-web/jquery/jquery.min.js&/myportal/o/frontend-js-jquery-web/jquery/init.js&/myportal/o/frontend-js-jquery-web/jquery/ajax.js&/myportal/o/frontend-js-jquery-web/jquery/bootstrap.bundle.min.js&/myportal/o/frontend-js-jquery-web/jquery/collapsible_search.js&/myportal/o/frontend-js-jquery-web/jquery/fm.js&/myportal/o/frontend-js-jquery-web/jquery/form.js&/myportal/o/frontend-js-jquery-web/jquery/popper.min.js&/myportal/o/frontend-js-jquery-web/jquery/side_navigation.js
On 7.2.x:
http://localhost:8080/myportal/combo?browserId=other&minifierType=js&languageId=es_ES&b=7210&t=1596526812119&/myportal/o/frontend-js-jquery-web/jquery/jquery.min.js&/myportal/o/frontend-js-jquery-web/jquery/bootstrap.bundle.min.js&/myportal/o/frontend-js-jquery-web/jquery/collapsible_search.js&/myportal/o/frontend-js-jquery-web/jquery/fm.js&/myportal/o/frontend-js-jquery-web/jquery/form.js&/myportal/o/frontend-js-jquery-web/jquery/popper.min.js&/myportal/o/frontend-js-jquery-web/jquery/side_navigation.js
Context 'myportal' appears only once in the URL.
- is caused by
-
LPS-108104 JQuery is not being loaded from CDN
- Closed