View | Details | Raw Unified | Return to bug 39299
Collapse All | Expand All

(-)modules/dav/fs/repos.c (+6 lines)
Lines 350-355 Link Here
350
    if (status != APR_SUCCESS) {
350
    if (status != APR_SUCCESS) {
351
        apr_file_close(inf);
351
        apr_file_close(inf);
352
352
353
        if(APR_STATUS_IS_ENOENT(status)) {
354
            return dav_new_error(p, HTTP_CONFLICT, 0,
355
                                 "Could not open file for writing; "
356
                                 "intermediate collection does not exist.");
357
        }
358
353
        return dav_new_error(p, MAP_IO2HTTP(status), 0,
359
        return dav_new_error(p, MAP_IO2HTTP(status), 0,
354
                             "Could not open file for writing");
360
                             "Could not open file for writing");
355
    }
361
    }
(-)modules/dav/main/mod_dav.c (+4 lines)
Lines 2631-2636 Link Here
2631
        return dav_error_response(r, lookup.rnew->status,
2631
        return dav_error_response(r, lookup.rnew->status,
2632
                                  "Destination URI had an error.");
2632
                                  "Destination URI had an error.");
2633
    }
2633
    }
2634
    if (!dav_get_provider(lookup.rnew)) {
2635
	 return dav_error_response(r, HTTP_FORBIDDEN,
2636
				   "Destination URI had an error.");
2637
    }
2634
2638
2635
    /* Resolve destination resource */
2639
    /* Resolve destination resource */
2636
    err = dav_get_resource(lookup.rnew, 0 /* label_allowed */,
2640
    err = dav_get_resource(lookup.rnew, 0 /* label_allowed */,

Return to bug 39299