Author: lgo
Date: Tue Aug 6 18:16:50 2013
New Revision: 1511057
URL: http://svn.apache.org/r1511057
Log:
Fix issue 4044 in ra_serf: return the right error code if the server doesn't
support a particular feature, so that callers of the ra layer can enable a
fallback mechanism or report a meaningful error to the user.
* subversion/libsvn_ra_serf/util.c
(svn_ra_serf__error_on_status): When the server returns a 501 Not Implemented
status code, create an SVN_ERR_UNSUPPORTED_FEATURE error.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/util.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/util.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/util.c?rev=1511057&r1=1511056&r2=1511057&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/util.c Tue Aug 6 18:16:50 2013
@@ -2434,6 +2434,10 @@ svn_ra_serf__error_on_status(serf_status
"server or an intermediate proxy does not accept "
"chunked encoding. Try setting 'http-chunked-requests' "
"to 'auto' or 'no' in your client configuration."));
+ case 501:
+ return svn_error_createf(SVN_ERR_UNSUPPORTED_FEATURE, NULL,
+ _("The requested feature is not supported by "
+ "'%s'"), path);
}
if (sline.code >= 300)