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

svn_ra_stat returning error for non-existent path instead of NULL dirent_t*

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.2.x
    • unscheduled
    • libsvn_ra
    • None
    • Windows XP

    Description

      I seem to be having a problem with the svn_ra_stat function in SVN 1.2.3
      
      Heres the recipe:
      1) I have a File '/A/someFile.txt' that has been committed to the repository, at
      Revision 1,
      2) I execute svn_ra_stat(session, '/trunk/someFile.txt/someOtherFile.txt', 1,
      &entry, pool)
      
      svn_ra_stat returns 
      stat_result#status=160016 
      stat_result#msg='Failure opening '/trunk/someFile.txt/someOtherFile.txt'' 
      stat_result_childErr=406114928 
      stat_result#fileName=H:\brane\src\svn\rel\subversion-1.2.1\subversion\libsvn_fs_fs\tree.c,
      
      stat_result#lineNr=757
      
      Ie svn_fs_fs__err_not_directory being thrown by #openPath in tree.c
      
      I wouldn't have thought this was expected, is it?
      I kind of expected svn_ra_stat to just return a NULL dirent*.
      
      This is causing us failure on the SVN merge TestSuite - test 20 "merge a file
      whose name contains a space" in our SVN DAV Java Servlet.
      

      Original issue reported by williamferguson2

      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: