ErrorL svn: E140001 - Malformed header when importing own dump file

Hi,

here at SCM-Manager we use SVNKit as the backing library for SVN repositories. For repository exports, we use the function SVNAdminClient#doDump, and for import of these files SVNAdminClient#doLoad. Normally, this works quite well. But now a user from Turkey has created multiple repositories that can be dumped without issues, but when this repository is read again, the following error below arises:

Exception in thread "main" org.tmatesoft.svn.core.SVNException: svn: E140001: Dump stream contains a malformed header (with no ':') at 'PROPS-END'
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
	at org.tmatesoft.svn.core.internal.wc.SVNDumpStreamParser.readHeaderBlock(SVNDumpStreamParser.java:366)
	at org.tmatesoft.svn.core.internal.wc.SVNDumpStreamParser.parseDumpStream(SVNDumpStreamParser.java:91)
	at org.tmatesoft.svn.core.wc.admin.SVNAdminClient.doLoad(SVNAdminClient.java:1089)
	at org.tmatesoft.svn.core.wc.admin.SVNAdminClient.doLoad(SVNAdminClient.java:1050)

The repository has been created on a Windows machine and can be dumped and loaded using the native svnadmin client without error. You can find the repository as a packed repository directory here on Google drive.

We would be glad for any hint you can give us. I’ll past the simple code to reproduce this error using the packed repository mentioned above below.

Tanks for your supprt!
René

Write dump:

public class Dump {
  public static void main(String[] args) throws FileNotFoundException, SVNException {
    SVNAdminClient adminClient = new SVNAdminClient(new BasicAuthenticationManager(new SVNAuthentication[]{}), SVNWCUtil.createDefaultOptions(false));
    OutputStream out = new FileOutputStream("/tmp/svndump.dmp");
    adminClient.doDump(
            new File("/home/rene/scm-home/repositories/C4TjhQHce9/data"),
            out,
            SVNRevision.create(-1l),
            SVNRevision.HEAD,
            false,
            false
    );
  }
}

Load dump (this creates the error):

public class Load {
  public static void main(String[] args) throws FileNotFoundException, SVNException {
    SVNAdminClient adminClient = new SVNAdminClient(new BasicAuthenticationManager(new SVNAuthentication[]{}), SVNWCUtil.createDefaultOptions(false));
    InputStream in = new FileInputStream("/tmp/svndump.dmp");
    File repository = new File("/tmp/new_svn");
    adminClient.doCreateRepository(
            repository,
            "0000",
            false,
            false
    );
    adminClient.doLoad(
            repository,
            in
    );
  }
}