Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mod_dav_fs to tolerate race conditions in PROPFIND #369

Closed
wants to merge 1 commit into from

Commits on Jul 6, 2023

  1. Allow mod_dav_fs to tolerate race conditions between PROPFIND and an

    operation which removes a directory/file between apr_dir_read() and
    apr_stat(). Current behaviour is to abort the connection which seems
    inferior to tolerating (and logging) the error.
    
    * modules/dav/fs/repos.c (dav_fs_walker): If DAV_WALKTYPE_TOLERANT is
      set, ignore ENOENT from stat() rather than aborting the response.
      Log the error from stat either way.
    
    * modules/dav/main/mod_dav.c (dav_method_propfind): Set
      DAV_WALKTYPE_TOLERANT.
    
    * modules/dav/main/mod_dav.h: Add DAV_WALKTYPE_TOLERANT.
    notroj committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    f70a625 View commit details
    Browse the repository at this point in the history