You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2005/12/31 22:32:03 UTC

[jira] Resolved: (HARMONY-25) Out of spec port value in URI string should result in registry-based URI

     [ http://issues.apache.org/jira/browse/HARMONY-25?page=all ]
     
Tim Ellison resolved HARMONY-25:
--------------------------------

    Resolution: Fixed

 Fixed in luni java/net/URI.java at repo revision 360450.

> Out of spec port value in URI string should result in registry-based URI
> ------------------------------------------------------------------------
>
>          Key: HARMONY-25
>          URL: http://issues.apache.org/jira/browse/HARMONY-25
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Tim Ellison
>     Assignee: Tim Ellison

>
> Since negative port numbers are outside the specified range (int) for port values, the URI class should consider the authority to be registry-based if (what would be) the port is apparently negative.
> Therefore, given
>     URI uri = new URI("http://host:-8096/path/index.html");
>     uri.getPort() should return  -1  (= undefined)
>     uri.getHost()  should return null
>     uri.parseServerAuthority()  should throw a URISyntaxException

-- 
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