Robert Munteanu created SLING-8155: -------------------------------------- Summary: AuthRequestLoginTest and SlingSessionInfoTest fail with org.mozilla.javascript.EvaluatorException: syntax error Key: SLING-8155 URL: https://issues.apache.org/jira/browse/SLING-8155 Project: Sling Issue Type: Bug Components: Testing Reporter: Robert Munteanu Assignee: Robert Munteanu
Sometimes after Sling 11 we started getting IT failures does to JS errors when evaluated on the client side, in the ITs: {noformat}[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 s <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest [ERROR] testForcedLogin(org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest) Time elapsed: 0.007 s <<< ERROR! java.io.IOException: While executing [out.println(data.userID)]:org.mozilla.javascript.EvaluatorException: syntax error (JavascriptEngine#1) at org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest.testForcedLogin(AuthRequestLoginTest.java:41) Caused by: org.mozilla.javascript.EvaluatorException: syntax error (JavascriptEngine#1) at org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest.testForcedLogin(AuthRequestLoginTest.java:41) [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.006 s <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.servlets.post.SlingSessionInfoTest [ERROR] testSessionInfo(org.apache.sling.launchpad.webapp.integrationtest.servlets.post.SlingSessionInfoTest) Time elapsed: 0.001 s <<< ERROR! java.io.IOException: While executing [out.println(data.userID + '.' + typeof data.authType)]:org.mozilla.javascript.EvaluatorException: syntax error (JavascriptEngine#1) at org.apache.sling.launchpad.webapp.integrationtest.servlets.post.SlingSessionInfoTest.testSessionInfo(SlingSessionInfoTest.java:35) Caused by: org.mozilla.javascript.EvaluatorException: syntax error (JavascriptEngine#1) at org.apache.sling.launchpad.webapp.integrationtest.servlets.post.SlingSessionInfoTest.testSessionInfo(SlingSessionInfoTest.java:35) {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)