http://www.ietf.org/rfc/rfc2396.txt section 3.2.1 describes the registry 
based authority part.
java.net.URI implements this correctly (as far as I can tell).

Regards

Dieter





"Brian Minchau (JIRA)" <[email protected]> 
06/04/2005 07:15
Please respond to
[email protected]


To
[email protected]
cc

Subject
[jira] Commented: (XALANJ-2078) [PATCH] MalformedURIException illegal host 
(Registry-based Naming Authority)






     [ 
http://issues.apache.org/jira/browse/XALANJ-2078?page=comments#action_62244 
]
 
Brian Minchau commented on XALANJ-2078:
---------------------------------------

Dieter, can you provide us with some links, or more information about 
registery-based authority in URIs?

Or perhaps you could provide a modified patch that doesn't catch all 
exceptions, but rather checks for a URI with registery-based authority and 
doesn't throw an exception in that case.

Thanks.

> [PATCH] MalformedURIException illegal host (Registry-based Naming 
Authority)
> 
----------------------------------------------------------------------------
>
>          Key: XALANJ-2078
>          URL: http://issues.apache.org/jira/browse/XALANJ-2078
>      Project: XalanJ2
>         Type: Bug
>   Components: Other
>     Versions: 2.6
>  Environment: All
>     Reporter: Dieter Wachters
>     Assignee: Yash Talwar
>  Attachments: uri.patch
>
> A URI with a registry-based authority can't be handled by the URI class
> (in org.apache.xml.utils).
> It only suspects a server-based authority component
> (<userinfo>@<host>:<port>).
> So when using a URI with registry-based authority in an XSL file, a
> MalformedURIException is thrown due to an illegal host.
> I added a patch that sets the host (and port and userinfo) to null when 
a
> MalformedURIException occurs in the setHost method while parsing the
> authority part.
> It still cannot handle authorities, but it doesn't throw the
> MalformedURIException anymore. It fixed my problem.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------

Inventive Designers' Email Disclaimer:

http://www.inventivedesigners.com/email-disclaimer


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to