Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-1598

svnadmin load can't handle dump file with CRLF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • all
    • unscheduled
    • svnadmin
    • None

    Description

      "svnadmin load" command is unable to handle a CRLF-delimited dump file, only a
      LF-delimited one. Surely this is incorrect?
      
      Steps to repro ..
      
      1. svnadmin dump /repos >dumpfile
      2. Use some utility to convert all LF to CRLF (I used Windows Wordpad!)
      3. svnadmin load /repos <converted-dumpfile
      
      Observed (stderr)
      svn: Malformed stream data
      svn: Found malformed header block in dumpfile stream.
      
      Expected:
      Repository to load successfully.
      
      I found this out accidentally when I mangled the dump file by appending it do
      another one. When I tried fixing the file up by editing (in Wordpad) 
      
      Plaform: This was svn-0.32.1-setup.exe as downloaded from tigris.org, running on
      Windows 2000. However I don't see why any of them shouldn't be affected.  Is
      svnadmin load using the wrong file mode to open stdin <g>? I would have thought
      APR or something would have automatic processing for different newline styles
      (CR only, LF only, CFLF)
      

      Original issue reported by walternicholls

      Attachments

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: