incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-662) JavaScript disabled in Firefox when BaseURL contains port number
Date Wed, 22 Sep 2010 15:14:33 GMT


Dirk Frederickx commented on JSPWIKI-662:


If I'm not mistaken the svn code is using, and not location.hostname.
The former includes the port-number, and therefore has a correct behaviour.

(more info at

I think the url scheme's could be more complex then the one you are referring to.
Eg. http://xxxx/yyyy/yourwiki/...
Therefore we need to use the meta field with the wikiBaseUrl as generated by the server.

It seems that you have a problem in loading the javascript resources.  You can check in your
browers which resources are loaded from which path. That should help to resolve the problem.
 I don't think that the browser version mattters.


> JavaScript disabled in Firefox when BaseURL contains port number
> ----------------------------------------------------------------
>                 Key: JSPWIKI-662
>                 URL:
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Core & storage
>    Affects Versions: 2.8.3
>         Environment: Windows XP, Tomcat 6, Firefox 3.6
>            Reporter: Christian Lerch
>            Priority: Minor
> I think I've found a little bug in JSPWiki v2.8.3 which, interestingly enough, prevents
Firefox 3.6 from running any JavaScript at all (it falls back into the <noscript> trap),
when you use a BaseURL with a port number. IE8 on the other hand can't see any problems.
> The bug is in file jspwiki-commons.js near line 235 inside the anonymous onPageLoad function:
> ...
> /** 100 Wiki functions **/
> var Wiki = {
>     onPageLoad: function(){
> ...
> Somewhere in there you try to figure out the BasePath from the BaseUrl by doing this:
> ...
> var h = location.hostname;
> this.BasePath = this.BaseUrl.slice(this.BaseUrl.indexOf(h)+h.length,-1);
> ...
> Which clearly will fail when you happen to have a BaseUrl with a port number.
> I've replaced these 2 lines by
> ...
> var href = location.href;
> this.BasePath = "/" + href.split("/")[3];
> ...
> which seems to work fine in all of my configurations.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message