I reproduced messy colors on both 13.4.7 and 15.10 with just a couple of line lines in colorThemeInit.vm, adding a colortheme setting based on the domain: I added
## Then, check the domain
#if ($request.serverName == '127.0.0.1')
#set ($themeDocFullName = "FlamingoThemes.United")
#end
after
## First, try to take the theme from the request URL
#set ($themeDocFullName = "$!{request.colorTheme}")
Then I loaded with both 127.0.0.1:8080 and localhost:8080 . I used the following groovy code to asses the state of the cache from time to time and check if specific colors from the United color theme are present in the cache key associated to Iceberg for style.less.vm:
{{toc /}}
{{groovy}}
def defaultlessressource = services.component.getInstance(org.xwiki.lesscss.internal.cache.LESSResourcesCache, "default")
println defaultlessressource;
println defaultlessressource.cache;
println "Total keys: " + defaultlessressource.cache.cache.entrySet().size();
println "= Search for dd4814 =";
for(def c in defaultlessressource.cache.cache.entrySet()) {
print "|" + c.getKey() + "|";
if (c.getValue().toLowerCase().indexOf("dd4814") >= 0) {
println "YES";
} else {
println "NO";
}
}
println "= Details =";
for(def c in defaultlessressource.cache.cache.entrySet()) {
println "==" + c.getKey() + "==";
println "{{{" + c.getValue() + "}}}";
}
{{/groovy}}
|