Commit with svnkit fails if the path contains spaces

Issue #290 resolved
Sebastian Sebastian
repo owner created an issue

Comments (5)

  1. Sebastian Sebastian reporter
    • changed status to open

    The error occurs on native svn too. Here is a short script to reproduce the issue:

    FILE="file with spaces"
    svn co $URL $FOLDER
    cd $FOLDER
    echo a > $FILE
    svn add $FILE
    svn commit -m 'added $FILE'
    echo b >> $FILE
    svn commit -m 'modify $FILE'

    The first commit works without a problem, but the second commit fails with message:

    svn: Commit failed (details follow):
    svn: Server sent unexpected return value (400 Bad Request) in response to CHECKOUT request for '/scm/svn/issue/!svn/ver/1/file with spaces'
  2. Sebastian Sebastian reporter

    The problem comes from the merge method, the checked-in href have to be url encoded.

    Output of scm-manager:

      <D:href>/scm/svn/issue/!svn/ver/1/file with spaces</D:href>

    Correct output:


    This problem comes definitely from issue #282.

  3. Log in to comment