[GeoNetwork-users] Javascript issues behind a reverse proxy

Hi there.

We are having some issues with our geonetwork installation. Our application is running behind a reverse proxy, which seems to be causing issues with some of the JavaScript on Geonetwork. When a metadata record is loaded via the "Recent updates" sidebar, after about a minute or so, a JavaScript alert window pops up with something the following sequence.

1) TypeError: node is undefined
2) After clicking ok on this one... this pops up
function (xmlRes) {
    if (xmlRes.nodeName == "error") {
        ker.showError(loader.getText("cannotGet"), xmlRes);
    } else {
        var htmlTip = getHtmlTip(xmlRes.getElementsByTagName("element")[0]);
        tip = document.createElement("div");
        tip.className = "tooltip";
        tip.innerHTML = htmlTip;
        tip.style.display = "none";
        tip.style.zIndex = 32000;
        document.body.appendChild(tip);
        tip.style.left = x;
        tip.style.top = y;
        if (!exited) {
            timer = setTimeout(ker.wrap(this, mouseIn_CB), 300);
        }
    }
}
3) After clicking on this, another one pops up with [object Window]

This process seems to cascase quite quickly, and eventually will end up paralyzing the browser farily quickly.

I suspect this has something to do with the reverse proxy configuration, but am not sure. If you dare, you can see for your self at http://apps.who.int/tools/geonetwork, but beware, this may end up crashing your browser. :slight_smile: There are various other problems as well, such as not being able to logon. Trying to logon through the reverse proxy address yields this message "

Error

The requested operation could not be performed.

MissingParameterEx : username

However, if the revrese proxy address is not used, but the "real" server address, accessible only through the local WHO network, http://myintranetserver.who.int/geonetwork works just fine.

Obviously, I would like to be able to fix these JavaScript problems, but first I just want to be able to disable the alert boxes completely. However, it is not clear exactly what is calling this code. Any clues to 1) how to disable the messages (as otherwise, everything seems to work fine) and 2) how to fix it ?

Best regards,

Jason

Hi Jason,

I had a similar problem once, but with a different web application
though. You could try to compare the traffic of both sessions recorded
with tcpdump or wireshark. That could point you to the problem.

The problem I had turned out to be a submit button of a form with a
script that said "onclick=form.submit()", which was executed when the
browser was already submitting the form. The traffic started to differ
exactly at that input button tag. Though it still took some time to
realize what the reason was :wink:

Good luck,
Christian

On Fri, 2009-06-05 at 07:18 +0200, Pickering, Jason wrote:

Hi there.

We are having some issues with our geonetwork installation. Our application is running behind a reverse proxy, which seems to be causing issues with some of the JavaScript on Geonetwork. When a metadata record is loaded via the "Recent updates" sidebar, after about a minute or so, a JavaScript alert window pops up with something the following sequence.

1) TypeError: node is undefined
2) After clicking ok on this one... this pops up
function (xmlRes) {
    if (xmlRes.nodeName == "error") {
        ker.showError(loader.getText("cannotGet"), xmlRes);
    } else {
        var htmlTip = getHtmlTip(xmlRes.getElementsByTagName("element")[0]);
        tip = document.createElement("div");
        tip.className = "tooltip";
        tip.innerHTML = htmlTip;
        tip.style.display = "none";
        tip.style.zIndex = 32000;
        document.body.appendChild(tip);
        tip.style.left = x;
        tip.style.top = y;
        if (!exited) {
            timer = setTimeout(ker.wrap(this, mouseIn_CB), 300);
        }
    }
}
3) After clicking on this, another one pops up with [object Window]

This process seems to cascase quite quickly, and eventually will end up paralyzing the browser farily quickly.

I suspect this has something to do with the reverse proxy configuration, but am not sure. If you dare, you can see for your self at http://apps.who.int/tools/geonetwork, but beware, this may end up crashing your browser. :slight_smile: There are various other problems as well, such as not being able to logon. Trying to logon through the reverse proxy address yields this message "

Error

The requested operation could not be performed.

MissingParameterEx : username

However, if the revrese proxy address is not used, but the "real" server address, accessible only through the local WHO network, http://myintranetserver.who.int/geonetwork works just fine.

Obviously, I would like to be able to fix these JavaScript problems, but first I just want to be able to disable the alert boxes completely. However, it is not clear exactly what is calling this code. Any clues to 1) how to disable the messages (as otherwise, everything seems to work fine) and 2) how to fix it ?

Best regards,

Jason

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Jason,
Hope you are doing well! Please add these problems to the bug tracker so we can review it in 2 weeks when we meet with GN developers in Bolsena.
In case you found a solution already, please let us know also :slight_smile:
Thanks! Ciao,
Jeroen

On Jun 5, 2009, at 7:18 AM, Pickering, Jason wrote:

Hi there.

We are having some issues with our geonetwork installation. Our application is running behind a reverse proxy, which seems to be causing issues with some of the JavaScript on Geonetwork. When a metadata record is loaded via the "Recent updates" sidebar, after about a minute or so, a JavaScript alert window pops up with something the following sequence.

1) TypeError: node is undefined
2) After clicking ok on this one... this pops up
function (xmlRes) {
   if (xmlRes.nodeName == "error") {
       ker.showError(loader.getText("cannotGet"), xmlRes);
   } else {
       var htmlTip = getHtmlTip(xmlRes.getElementsByTagName("element")[0]);
       tip = document.createElement("div");
       tip.className = "tooltip";
       tip.innerHTML = htmlTip;
       tip.style.display = "none";
       tip.style.zIndex = 32000;
       document.body.appendChild(tip);
       tip.style.left = x;
       tip.style.top = y;
       if (!exited) {
           timer = setTimeout(ker.wrap(this, mouseIn_CB), 300);
       }
   }
}
3) After clicking on this, another one pops up with [object Window]

This process seems to cascase quite quickly, and eventually will end up paralyzing the browser farily quickly.

I suspect this has something to do with the reverse proxy configuration, but am not sure. If you dare, you can see for your self at World Health Organization (WHO), but beware, this may end up crashing your browser. :slight_smile: There are various other problems as well, such as not being able to logon. Trying to logon through the reverse proxy address yields this message "

Error

The requested operation could not be performed.

MissingParameterEx : username

However, if the revrese proxy address is not used, but the "real" server address, accessible only through the local WHO network, http://myintranetserver.who.int/geonetwork works just fine.

Obviously, I would like to be able to fix these JavaScript problems, but first I just want to be able to disable the alert boxes completely. However, it is not clear exactly what is calling this code. Any clues to 1) how to disable the messages (as otherwise, everything seems to work fine) and 2) how to fix it ?

Best regards,

Jason

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net