Details
-
Bug
-
Resolution: Fixed
-
Major
-
11.10.3, 12.0
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
To reproduce:
- get jetty+hsqldb
- access the wiki with http://127.0.0.1:8080/xwiki
- edit http://127.0.0.1:8080/xwiki/bin/view/XWiki/XWikiServerXwiki and make sure:
- the PORT is empty (or -1)
- the ALIAS is "localhost"
tree.min.css contains the following at runtime:
.jstree-ocl{background-image:url("http://localhost/xwiki/resources/icons/xwiki/spinner.gif?cache-version=1585234810000"); in tree.min.css
When https://github.com/xwiki/xwiki-platform/blob/2359341cb50df1fc2df2d981ffad01b98a20f05a/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiServletURLFactory.java#L806 is called we have:
- originalURL = http://localhost:8080
- surl = http://localhost/xwiki/resources/icons/xwiki/spinner.gif?cache-version=1585234810000
The issue is that the original URL for the webjar thread is not empty (it contains http://localhost:8080), and since our default main wiki descriptor doesn't have the port set, it generates a URL with http://localhost/. Thus "!surl.startsWith(this.originalURL.toString()" is true.
Attachments
Issue Links
- is related to
-
XWIKI-16497 Webjar resource handler use a background thread XWikiContext instead of one generated from the input request
- Open
-
XWIKI-16496 XWikiServletURLFactory#getURL may return an absolute URL instead of the expected relative one in a background thread
- Closed
-
XWIKI-16759 Use the main wiki descriptor server field for the domain name even in path based mode
- Closed
- relates to
-
XWIKI-16160 Spinner.gif requested with an absolute URL instead of a relative one
- Closed