Bug with Parser.java ?

Hao Hu
  • Hao Hu

    Hao Hu - 2011-02-11

    Hi everyone,
    Recently I have just found a bug(maybe) in Parser.java file. Inside the method public Node parse(URL locationURL) throws ParserException, the problem is, when it try to get port of URL (int port = locationURL.getPort()), but the URL is like http://host/abc.xml which loses the port. The value will be -1, which leads to the exception at org.cybergarage.http.HTTPRequest.post(host, port), as the socket cannot open the port with -1.
    Thanks in advance.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks