Hi all,
We have html-unit to do some integration tests for our SAML flow. This all works great, thanks for that. Today I was updating some libraries, including htmlUnit. And I ran into this issue:
14:42:36.442 | ERROR | o.h.j.b.JavaScriptJobManagerImpl | Job run failed with unexpected RuntimeException: TypeError: Cannot find function mergeHook in object [object Object]. (https://ok12static.oktacdn.com/assets/js/sdk/okta-signin-widget/7.9.0/js/okta-sign-in.min.js#73)
org.htmlunit.ScriptException: TypeError: Cannot find function mergeHook in object [object Object]. (https://ok12static.oktacdn.com/assets/js/sdk/okta-signin-widget/7.9.0/js/okta-sign-in.min.js#73)
at org.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:996)
at org.htmlunit.corejs.javascript.Context.call(Context.java:590)
at org.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:484)
at org.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:348)
at org.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:923)
at org.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:895)
at org.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2620)
at org.htmlunit.html.HtmlPage.executeJavaScriptFunction(HtmlPage.java:2613)
at org.htmlunit.javascript.background.JavaScriptFunctionJob.runJavaScript(JavaScriptFunctionJob.java:56)
at org.htmlunit.javascript.background.JavaScriptExecutionJob.run(JavaScriptExecutionJob.java:100)
at org.htmlunit.javascript.background.JavaScriptJobManagerImpl.runSingleJob(JavaScriptJobManagerImpl.java:433)
at org.htmlunit.javascript.background.DefaultJavaScriptExecutor.run(DefaultJavaScriptExecutor.java:156)
at java.base/java.lang.Thread.run(Thread.java:833)
The highest version to which I got it to work is 3.3.0. When going to 3.4.0 it starts to break.
I hope this is enough help to you, if not I'm happy to help out.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too