Uploaded image for project: 'Jetspeed (Retired)'
  1. Jetspeed (Retired)
  2. JS1-118

[FIX] Sloppy XML encoding parsing in URLFetcher

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.4b1
    • None
    • Miscellaneous
    • None
    • Operating System: All
      Platform: All
    • 13255

    Description

      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
      '?>'.

      Attachments

        Activity

          People

            sgala Santiago Gala
            matija.mazi@student.fmf.uni-lj.si Matija Mazi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: