-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
Ubuntu 10.0.4 LTS
After renaming my site from "ci.example.com" to "ci.example.net" (both at Apache and Jenkins config), JavaScript console from clients states the following errors and don't execute any subsequent ajax request,
Uncaught ReferenceError: crumb is not defined (program):8
Uncaught ReferenceError: YAHOO is not defined (program):9
Uncaught ReferenceError: createSearchBox is not defined (program):10
2 Uncaught ReferenceError: refreshPart is not defined (program):28
Uncaught TypeError: Object has no method 'insertBefore' ci.example.net:122
To rename the site I've changed my Apache site config to match the following and also renamed "ci.example.com" to "ci.example.net" from Jenkins admin menu,
<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName ci.example.net
ServerAlias ci.example.com
ServerAlias ci
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
ProxyPass / http://localhost:9000/
</VirtualHost>
The error dissapears when accesing the site back with ci.example.com name (still an Alias in Apache), with no need to reconfigure the site (Apache or Jenkins).
I've checked new domain name is correctly specified in .xml config files,
hudson.tasks.Mailer.xml: <hudsonUrl>http://ci.example.net/</hudsonUrl>
jenkins.model.JenkinsLocationConfiguration.xml: <jenkinsUrl>http://ci.example.net/</jenkinsUrl>
I've tried to clear the webapp cache with,
sudo service jenkins stop
sudo mv /var/cache/jenkins/war /var/cache/jenkins/war.old
sudo service jenkins start
but this doesn't solve the issue.
Many, many thanks in advance.-