[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn_error_create(SERF_ERROR_FOO, NULL, NULL);

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 28 May 2013 10:35:52 +0100

Daniel Shahaf <danielsh_at_elego.de> writes:

> Just got a report of a problem with 1.8.0-rc2:
> svn: E120104: ra_serf: An error occurred during decompression
> The error code is unrecognised; that's because it's not an SVN_ERR_* code:
> % ./tools/dev/which-error.py E120104
> 00120104 *** UNKNOWN ERROR CODE ***
> % ./tools/dev/which-error.py E120000
> % grep -B 1 -w 4 -h /usr/local/serf-1.2.0/serf-1/include/*
> The problem is that svn_ra_serf__wrap_err() passes a serf error code to
> svn_error_create(). That's a problem, as API consumers won't be able to
> make sense of the code: it's not in any SVN_ERROR_*_CATEGORY_START
> category, svn_strerror() and svn_error_symbolic_name() will reject it,
> etc.
> I am not sure what to do instead. Maybe we define an
> SVN_ERROR_SERF_ERROR error number and map all serf error numbers to it.
> Maybe we define a few more of those for specific common serf errors, too
> (like we do for sqlite). Maybe we just reserve [APR_OS_START_USERERR
> + 100, APR_OS_START_USERERR + 199] to serf error codes.
> Thoughts?

See http://subversion.tigris.org/issues/show_bug.cgi?id=4368 for another
example. Trunk gives:

   svn: warning: W120190: Error running context: An error occurred during authentication

with 1.7/neon the error was:

  svn: E175002: Server sent unexpected return value (401 Authorization Required) in response to LOCK request for '/obj/repo/A/f'

Certified & Supported Apache Subversion Downloads:
Received on 2013-05-28 11:36:46 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.