NetUI Tree JavaScript for XmlHttpRequest can fall into an infinite loop if the 
XmlHttpServlet is down or fails
--------------------------------------------------------------------------------------------------------------

         Key: BEEHIVE-1026
         URL: http://issues.apache.org/jira/browse/BEEHIVE-1026
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Carlin Rogers
    Priority: Minor


The netui-tree.js JavaScript for XmlHttpRequest support to run NetUI Trees on 
the client can fall into an infinite loop if the XmlHttpServlet is down or 
fails.

I found a case where the function raiseCommand() checks the status of the 
response. If the response status code is not  200 then we call 
reportNetUIError(). So if a client side call to expand a node is executed but 
the XmlHttpServlet is down, then raiseCommand() will call reportNetUIError(). 
This error reporting routine in turn calls the raiseCommand() routine which 
will again fail, and the loop continues.

Anther user interaction on the client side will break the loop.

Relatively minor issue but thought it should be tracked.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to