You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2018/06/13 16:37:49 UTC
svn commit: r1833465 - /subversion/trunk/subversion/mod_dav_svn/repos.c
Author: philip
Date: Wed Jun 13 16:37:49 2018
New Revision: 1833465
URL: http://svn.apache.org/viewvc?rev=1833465&view=rev
Log:
* subversion/mod_dav_svn/repos.c
(open_stream): Return an error if a non-conforming client sends
a PUT before the corresponding CHECKOUT when attempting a v1
protocol commit. This is required for strict v1 compliance
and does not affect the v2 protocol.
Modified:
subversion/trunk/subversion/mod_dav_svn/repos.c
Modified: subversion/trunk/subversion/mod_dav_svn/repos.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/repos.c?rev=1833465&r1=1833464&r2=1833465&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/repos.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/repos.c Wed Jun 13 16:37:49 2018
@@ -2861,6 +2861,13 @@ open_stream(const dav_resource *resource
"Resource body changes may only be made to "
"working resources (at this time).");
}
+ if (!resource->info->root.root)
+ {
+ return dav_svn__new_error(resource->pool, HTTP_METHOD_NOT_ALLOWED,
+ 0, 0,
+ "Resource body changes may only be made to "
+ "checked-out resources (at this time).");
+ }
}
/* ### TODO: Can we support range writes someday? */