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

[FIX] Sloppy XML encoding parsing in URLFetcher

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.4b1
    • Fix Version/s: None
    • Component/s: Miscellaneous
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      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

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

              Dates

              • Created:
                Updated: