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

openFile requires file to be writable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • Utilities
    • None
    • Operating System: FreeBSD
      Platform: Other
    • 20169

    Description

      for XMLPlatformUtils::openFile in
      util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp the fopen calls are made with
      "r+" which is for read and write. It should be "r" or "rb" (like all the other
      Platforms).

      With a DOCTYPE line like:
      <!DOCTYPE result SYSTEM "/var/xml/dtd/result.dtd">

      If forces me to have the result.dtd be globally writable, which is less than
      desirable

      Otherwise I get this:
      Fatal Error at file "/home/coryb/src/xerces-c-src2_2_0/file", line 3, column 79
      Message: An exception occurred! Type:RuntimeException, Message:Could not open
      DTD file '/var/xml/dtd/result.dtd'

      Thanks
      -Cory

      Attachments

        Activity

          People

            Unassigned Unassigned
            coryb@yahoo-inc.com Cory Bennett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: