Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1698

XMLURL class prevents SSL-capable NetAccessors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 3.0.0
    • Miscellaneous
    • None

    Description

      Despite the addition of a libcurl-based NetAccessor, which can handle https:// URLs, the XMLURL class prevents it from getting a chance to run when parsing because it hardcodes the allowable protocols.

      This seems like a design flaw. If URL parsing really requires hardcoding specific protocols and ports, it should be a "known" protocol list, not a list that automatically blocks unknown protocols. If that isn't possible, then https should be added at a minimum.

      It's not the XMLURL class' job to know what a NetAccessor can handle. If some kind of capability API is needed, then it should be added to the NetAccessor interface so the XMLURL class can ask it whether a given protocol will work.

      Attachments

        Activity

          People

            amassari Alberto Massari
            scantor Scott Cantor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: