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

JavaHL interface SVNClient.streamFileContent fails on svn_uri_is_canonical assertion if called with a filename containing a URLEncoded +

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.7.x
    • ---
    • bindings_javahl
    • None

    Description

      The SVNClient.streamFileContent method calls svn_client_export5, which in turn checks the supplied URI 
      with svn_uri_is_canonical.  If the URI that is passed in contains a + URI encoded as %2B, this assert will fail 
      with something like:
      > java: subversion/libsvn_subr/dirent_uri.c:1524: uri_skip_ancestor: Assertion 
      `svn_uri_is_canonical(child_uri, ((void *)0))' failed.
      
      (actual line number will be slightly different as i'm running a custom build with extra logging, but the bug 
      exists on stock 1.7.13 as well)
      
      other methods on SVNClient such as doExport handle url's like this correctly.
      

      Original issue reported by rstephens

      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: