This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8d876d0c-2b1a-4595-96e0-938e1012e552 XWIKI-25588 Open

Legacy functional tests fail to start Firefox because WebDriverManager cannot download geckodriver

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c7507639-3405-424a-8851-af151e5a2c34 Vincent Massol created this issue on 24/Oct/26 13:19
 
Summary: Legacy functional tests fail to start Firefox because WebDriverManager cannot download geckodriver
Issue Type: cid:jira-generated-image-avatar-8d876d0c-2b1a-4595-96e0-938e1012e552 Bug
Affects Versions: 17.10.14, 18.4.7, 18.9.0-rc-1
Assignee: Unassigned
Components: Test Framework
Created: 24/Oct/26 13:19
Priority: cid:jira-generated-image-static-major-c225a5e1-e6e7-420d-aa6c-f38a4025dd73 Major
Reporter: Vincent Massol
Description:

All the functional tests still using the legacy (non-Docker) test framework, such as the distribution upgrade tests (Upgrade*Test) and org.xwiki.test.security.AllTests, fail before running any test, when creating the Firefox driver in WebDriverFactory:

io.github.bonigarcia.wdm.config.WebDriverManagerException: org.apache.hc.core5.http.MessageConstraintException: Maximum line length limit exceeded
    at io.github.bonigarcia.wdm.WebDriverManager.setup(...)
    at org.xwiki.test.ui.WebDriverFactory.createWebDriver(WebDriverFactory.java:54)

Cause: WebDriverManager.firefoxdriver().setup() downloads geckodriver from the GitHub releases, and the GitHub release-download redirect now sends a content-security-policy header of about 9,200 characters. WebDriverManager's HttpClient 5 uses the default maximum line length of 8,192 characters and offers no way to raise it, so the download fails. No WebDriverManager release fixes it (the latest is 6.4.0), and since the CI agents start without any driver cache, every legacy suite fails.

Fix: stop using WebDriverManager and let Selenium Manager (bundled with Selenium) resolve a geckodriver matching the installed Firefox, with its usage statistics disabled.

 
 

2 updates

 
cid:jira-generated-image-avatar-c7507639-3405-424a-8851-af151e5a2c34 Changes by Vincent Massol on 24/Oct/26 13:19
 
Fix Version: 18.10.0-rc-1
Assignee: Vincent Massol