Details

      Description

      Steps to reproduce:
      1. Add DM folder in Control Panel
      2. Click into folder
      Expected result: No errors appear
      Actual result: A JS error appears

      This is causing many DM auto tests to fail in ee-6.2.x. Starting at commit d2aee469a6d835f33b72ca544aeec01d3790fc90, the console log is as follows:

      test-method:
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-classes\functional
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-results\functional
           [copy] Copying 283 files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional
          [javac] Compiling 57 source files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-classes\functional-generated
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-results\functional-generated
           [copy] Copying 2 files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional-generated
          [javac] Compiling 1515 source files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional-generated
          [junit] -- listing properties --
          [junit] company.web.id=liferay.com
          [junit] dl.file.entry.processors.trigger.synchronously=true
          [junit] include-and-override=test-portal-impl-ext.properties
          [junit] junit.delay.factor=1
          [junit] portal.url=http://localhost:8080
          [junit] user.password=test
          [junit]
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/system.properties
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/system-ext.properties
          [junit] -- updated properties --
          [junit] company.web.id=liferay.com
          [junit] dl.file.entry.processors.trigger.synchronously=true
          [junit] include-and-override=test-portal-impl-ext.properties
          [junit] junit.delay.factor=1
          [junit] portal.url=http://localhost:8080
          [junit] user.password=test
          [junit]
          [junit] -- listing properties --
          [junit] app.server.type=tomcat
          [junit] browser.type=*chrome
          [junit] company.id=1
          [junit] database.db2.driver=com.ibm.db2.jcc.DB2Driver
          [junit] database.db2.password=password
          [junit] database.db2.url=jdbc:db2://localhost:50000/lportal:deferPrepares=false;fullyMaterializeInputStreams=true;fullyMaterializeLobData=true;progresssiveLocators=2;progressiveStreaming=2;
          [junit] database.db2.username=root
          [junit] database.mysql.driver=com.mysql.jdbc.Driver
          [junit] database.mysql.password=
          [junit] database.mysql.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
          [junit] database.mysql.username=root
          [junit] database.oracle.driver=oracle.jdbc.driver.OracleDriver
          [junit] database.oracle.password=lportal
          [junit] database.oracle.url=jdbc:oracle:thin:@localhost:1521:xe
          [junit] database.oracle.username=lportal
          [junit] database.postgresql.driver=org.postgresql.Driver
          [junit] database.postgresql.password=
          [junit] database.postgresql.url=jdbc:postgresql://localhost:5432/lportal
          [junit] database.postgresql.username=root
          [junit] database.sybase.driver=net.sourceforge.jtds.jdbc.Driver
          [junit] database.sybase.password=password
          [junit] database.sybase.url=jdbc:jtds:sybase://localhost:5000/lportal
          [junit] database.sybase.username=sa
          [junit] database.type=mysql
          [junit] liferay.portal.branch=ee-6.2.x
          [junit] liferay.portal.bundle=latest
          [junit] output.dir=D:privateee-6.2.x-portal/selenium-output
          [junit] portal.url=localhost:8080
          [junit] save.screenshot=true
          [junit] save.source=false
          [junit] selenium.executable.dir=D:/private/ee-6.2.x-portal/tools/selenium/
          [junit] selenium.host=localhost
          [junit] selenium.implementation=org.openqa.selenium.WebDriver
          [junit] selenium.logger.enabled=true
          [junit] selenium.port=14444
          [junit] tcat.enabled=false
          [junit] tear.down.before.test=false
          [junit] test.assert.javascript.errors=true
          [junit] test.assert.liferay.errors=false
          [junit] test.basedir=D:/private/ee-6.2.x-portal/portal-web
          [junit] test.class.command.name=CPDocumentsandmedia#AddFolder
          [junit] test.skip.tear.down=true
          [junit] testing.class.method=true
          [junit] theme.ids=classic,controlpanel
          [junit] timeout.explicit.wait=60
          [junit] timeout.implicit.wait=3
          [junit] vm.host=vm-1
          [junit]
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/portal.properties
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/portal-ext.properties
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/com/liferay/portal/tools/dependencies/portal-tools.properties
          [junit] Running com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase
          [junit] Testsuite: com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase
          [junit] Checking to see if Mobile Device is enabled...
          [junit] Checking to see if TCat is enabled...
          [junit] JS_ERROR: TypeError: Q is null [http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6210&t=1430861105036&/html/js/liferay/history_manager.js&/html/js/liferay/node.js&/html/js/liferay/portlet_base.js&/html/js/liferay/app_view_move.js&/html/js/liferay/list_view.js&/html/js/liferay/app
          [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 492.711 sec
          [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 492.711 sec
          [junit]
          [junit] Testcase: testAddFolder(com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase):    FAILED
          [junit] Command failure "assertJavaScriptErrors" with parameter "null" : TypeError: Q is null [http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6210&t=1430861105036&/html/js/liferay/history_manager.js&/html/js/liferay/node.js&/html/js/liferay/portlet_base.js&/html/js/liferay/app_view_mov
          [junit] junit.framework.AssertionFailedError: Command failure "assertJavaScriptErrors" with parameter "null" : TypeError: Q is null [http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6210&t=1430861105036&/html/js/liferay/history_manager.js&/html/js/liferay/node.js&/html/js/liferay/portlet
          [junit]     at com.liferay.portalweb.util.logger.Logger.logError(Logger.java:267)
          [junit]     at com.liferay.portalweb.util.logger.LoggerHandler.invoke(LoggerHandler.java:99)
          [junit]     at com.sun.proxy.$Proxy7.assertJavaScriptErrors(Unknown Source)
          [junit]     at com.liferay.portalweb.functions.AssertTextEqualsFunction.assertText(AssertTextEqualsFunction.java:49)
          [junit]     at com.liferay.portalweb.functions.AssertTextEqualsFunction.assertTextEquals(AssertTextEqualsFunction.java:64)
          [junit]     at com.liferay.portalweb.macros.DMFolderMacro.viewCP(DMFolderMacro.java:5286)
          [junit]     at com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase.methodAddFolder(CPDocumentsandmediaTestCase.java:336)
          [junit]     at com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase.testAddFolder(CPDocumentsandmediaTestCase.java:1863)
          [junit]     at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:248)
          [junit]
          [junit]
          [junit] Test com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase FAILED
      
      stop-selenium:
      [antelope:post] Opening connection for post to http://localhost:14444/selenium-server/driver/?cmd=shutDownSeleniumServer...
      [antelope:post] Connected, sending data...
      [antelope:post]
      [antelope:post] Data sent.
      [antelope:post] Waiting for response...
      [antelope:post] 200
      [antelope:post] OK
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 22:02:12 GMT
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 22:02:12 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 22:02:12 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 22:02:12 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] Server=Jetty/5.1.x (Windows 7/6.1 amd64 java/1.7.0_75
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 22:02:12 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] Server=Jetty/5.1.x (Windows 7/6.1 amd64 java/1.7.0_75
      [antelope:post] Pragma=no-cache
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 22:02:12 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] Server=Jetty/5.1.x (Windows 7/6.1 amd64 java/1.7.0_75
      [antelope:post] Pragma=no-cache
      [antelope:post] Cache-Control=no-cache
      [antelope:post] OKOK
      [antelope:post] Post complete.
      

      Prior commits starting at 8b8ce3c57313e7628c3f47bf93412c09f7b1683e give the following console error output:

      test-method:
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-classes\functional
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-results\functional
           [copy] Copying 283 files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional
          [javac] Compiling 57 source files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-classes\functional-generated
          [mkdir] Created dir: D:\private\ee-6.2.x-portal\portal-web\test-results\functional-generated
           [copy] Copying 2 files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional-generated
          [javac] Compiling 1515 source files to D:\private\ee-6.2.x-portal\portal-web\test-classes\functional-generated
          [junit] -- listing properties --
          [junit] company.web.id=liferay.com
          [junit] dl.file.entry.processors.trigger.synchronously=true
          [junit] include-and-override=test-portal-impl-ext.properties
          [junit] junit.delay.factor=1
          [junit] portal.url=http://localhost:8080
          [junit] user.password=test
          [junit]
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/system.properties
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/system-ext.properties
          [junit] -- updated properties --
          [junit] company.web.id=liferay.com
          [junit] dl.file.entry.processors.trigger.synchronously=true
          [junit] include-and-override=test-portal-impl-ext.properties
          [junit] junit.delay.factor=1
          [junit] portal.url=http://localhost:8080
          [junit] user.password=test
          [junit]
          [junit] -- listing properties --
          [junit] app.server.type=tomcat
          [junit] browser.type=*chrome
          [junit] company.id=1
          [junit] database.db2.driver=com.ibm.db2.jcc.DB2Driver
          [junit] database.db2.password=password
          [junit] database.db2.url=jdbc:db2://localhost:50000/lportal:deferPrepares=false;fullyMaterializeInputStreams=true;fullyMaterializeLobData=true;progresssiveLocators=2;progressiveStreaming=2;
          [junit] database.db2.username=root
          [junit] database.mysql.driver=com.mysql.jdbc.Driver
          [junit] database.mysql.password=
          [junit] database.mysql.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
          [junit] database.mysql.username=root
          [junit] database.oracle.driver=oracle.jdbc.driver.OracleDriver
          [junit] database.oracle.password=lportal
          [junit] database.oracle.url=jdbc:oracle:thin:@localhost:1521:xe
          [junit] database.oracle.username=lportal
          [junit] database.postgresql.driver=org.postgresql.Driver
          [junit] database.postgresql.password=
          [junit] database.postgresql.url=jdbc:postgresql://localhost:5432/lportal
          [junit] database.postgresql.username=root
          [junit] database.sybase.driver=net.sourceforge.jtds.jdbc.Driver
          [junit] database.sybase.password=password
          [junit] database.sybase.url=jdbc:jtds:sybase://localhost:5000/lportal
          [junit] database.sybase.username=sa
          [junit] database.type=mysql
          [junit] liferay.portal.branch=ee-6.2.x
          [junit] liferay.portal.bundle=latest
          [junit] output.dir=D:privateee-6.2.x-portal/selenium-output
          [junit] portal.url=localhost:8080
          [junit] save.screenshot=true
          [junit] save.source=false
          [junit] selenium.executable.dir=D:/private/ee-6.2.x-portal/tools/selenium/
          [junit] selenium.host=localhost
          [junit] selenium.implementation=org.openqa.selenium.WebDriver
          [junit] selenium.logger.enabled=true
          [junit] selenium.port=14444
          [junit] tcat.enabled=false
          [junit] tear.down.before.test=false
          [junit] test.assert.javascript.errors=true
          [junit] test.assert.liferay.errors=false
          [junit] test.basedir=D:/private/ee-6.2.x-portal/portal-web
          [junit] test.class.command.name=CPDocumentsandmedia#AddFolder
          [junit] test.skip.tear.down=true
          [junit] testing.class.method=true
          [junit] theme.ids=classic,controlpanel
          [junit] timeout.explicit.wait=60
          [junit] timeout.implicit.wait=3
          [junit] vm.host=vm-1
          [junit]
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/portal.properties
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/portal-ext.properties
          [junit] Loading file:/D:/private/ee-6.2.x-portal/portal-impl/classes/com/liferay/portal/tools/dependencies/portal-tools.properties
          [junit] Running com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase
          [junit] Testsuite: com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase
          [junit] Checking to see if Mobile Device is enabled...
          [junit] Checking to see if TCat is enabled...
          [junit] JS_ERROR: TypeError: L.item(...) is null [http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6210&t=1430850643509&/html/js/liferay/ajax_session.js&/html/js/liferay/store.js&/html/js/aui/aui-pagination/aui-pagination-min.js&/html/js/aui/dd-proxy/dd-proxy-min.js&/html/js/aui/history-base/history-base-min.js&/html/js/aui/history-html5/history-html5-min.js&/html/js/aui/history-hash/history-hash-min.js&/html/js/aui/querystring-parse-simple/querystring-parse-simple-min.js&/html/js/liferay/history.
          [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 387.266 sec
          [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 387.266 sec
          [junit]
          [junit] Testcase: testAddFolder(com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase):    FAILED
          [junit] Command failure "assertJavaScriptErrors" with parameter "null" : TypeError: L.item(...) is null [http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6210&t=1430850643509&/html/js/liferay/ajax_session.js&/html/js/liferay/store.js&/html/js/aui/aui-pagination/aui-pagination-min.js&/html/js/aui/dd-proxy/dd-proxy-min.js&/html/js/aui/history-base/history-base-min.js&/html/js/aui/history-html5/history-html5-min.js&/html/js/aui/history-hash/history-hash-min.js&/html/js/aui/querystring-parse-simple/qu
          [junit] junit.framework.AssertionFailedError: Command failure "assertJavaScriptErrors" with parameter "null" : TypeError: L.item(...) is null [http://localhost:8080/combo/?browserId=firefox&minifierType=&languageId=en_US&b=6210&t=1430850643509&/html/js/liferay/ajax_session.js&/html/js/liferay/store.js&/html/js/aui/aui-pagination/aui-pagination-min.js&/html/js/aui/dd-proxy/dd-proxy-min.js&/html/js/aui/history-base/history-base-min.js&/html/js/aui/history-html5/history-html5-min.js&/html/js/aui/history-hash/history-hash-min.js&/h
          [junit]     at com.liferay.portalweb.util.logger.Logger.logError(Logger.java:267)
          [junit]     at com.liferay.portalweb.util.logger.LoggerHandler.invoke(LoggerHandler.java:99)
          [junit]     at com.sun.proxy.$Proxy7.assertJavaScriptErrors(Unknown Source)
          [junit]     at com.liferay.portalweb.functions.AssertClickFunction.assertTextClickAt(AssertClickFunction.java:134)
          [junit]     at com.liferay.portalweb.functions.AssertClickFunction.assertClick(AssertClickFunction.java:38)
          [junit]     at com.liferay.portalweb.macros.PageMacro.gotoCmdCP(PageMacro.java:1440)
          [junit]     at com.liferay.portalweb.macros.PageMacro.gotoContentCP(PageMacro.java:1810)
          [junit]     at com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase.methodAddFolder(CPDocumentsandmediaTestCase.java:284)
          [junit]     at com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase.testAddFolder(CPDocumentsandmediaTestCase.java:1863)
          [junit]     at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:248)
          [junit]
          [junit]
          [junit] Test com.liferay.portalweb.tests.enduser.documentmanagement.documentsadministration.cpdocumentsandmedia.CPDocumentsandmediaTestCase FAILED
      
      stop-selenium:
      [antelope:post] Opening connection for post to http://localhost:14444/selenium-server/driver/?cmd=shutDownSeleniumServer...
      [antelope:post] Connected, sending data...
      [antelope:post]
      [antelope:post] Data sent.
      [antelope:post] Waiting for response...
      [antelope:post] 200
      [antelope:post] OK
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 18:51:03 GMT
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 18:51:03 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 18:51:03 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 18:51:03 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] Server=Jetty/5.1.x (Windows 7/6.1 amd64 java/1.7.0_75
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 18:51:03 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] Server=Jetty/5.1.x (Windows 7/6.1 amd64 java/1.7.0_75
      [antelope:post] Pragma=no-cache
      [antelope:post] null=HTTP/1.1 200 OK
      [antelope:post] Transfer-Encoding=chunked
      [antelope:post] Date=Tue, 05 May 2015 18:51:03 GMT
      [antelope:post] Expires=Thu, 01 Jan 1970 00:00:00 GMT
      [antelope:post] Content-Type=text/plain
      [antelope:post] Server=Jetty/5.1.x (Windows 7/6.1 amd64 java/1.7.0_75
      [antelope:post] Pragma=no-cache
      [antelope:post] Cache-Control=no-cache
      [antelope:post] OKOK
      [antelope:post] Post complete.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                austin.chiang Austin Chiang
                Reporter:
                austin.chiang Austin Chiang
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 13 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE