DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13255>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13255

Sloppy XML encoding parsing in URLFetcher

           Summary: Sloppy XML encoding parsing in URLFetcher
           Product: Jetspeed
           Version: 1.4b1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Miscellaneous
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


In 
org.apache.jetspeed.services.urlmanager.URLFetcher.getReader(URLConnection):
the 
encoding is parsed out by searching for 'encoding="' string; this is really sloppy for 
serveral 
reasons: according to the XML specification single quote may be used instead of double 
quote 
(this is the where I had problems), there may be some whitespace surrounding the '=' 
(as far as I 
know), and of course, the encoding attribute should only be used if it appears inside 
'<?xml' and 
'?>'.

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

Reply via email to