AW: [PATCH] Don't validate properties during deletion.

2013-07-02 Thread Markus Schaber
Hi, Arwin, Von: Arwin Arni [mailto:ar...@collab.net] > On 06/20/2013 07:01 PM, Julian Foad wrote: > > Arwin Arni wrote: > >> Properties are validated regardless of the action on the property. > >> This poses a problem when it comes to very old repositories that contain > "invalid" > >> properties

Re: [PATCH] Don't validate properties during deletion.

2013-06-25 Thread Julian Foad
Stefan Sperling wrote: > On Mon, Jun 24, 2013 at 04:32:34PM +0100, Julian Foad wrote: >> Daniel Shahaf >>> Daniel Shahaf wrote on Fri, Jun 21, 2013 at 17:28:19 +0300: Julian Foad wrote on Fri, Jun 21, 2013 at 15:04:39 +0100: > Please update the doc string, which currently begins "Valida

Re: [PATCH] Don't validate properties during deletion.

2013-06-25 Thread Stefan Sperling
On Mon, Jun 24, 2013 at 04:32:34PM +0100, Julian Foad wrote: > Daniel Shahaf > > > To: Julian Foad > > Cc: dev@subversion.apache.org > > Sent: Monday, 24 June 2013, 5:13 > > Subject: Re: [PATCH] Don't validate properties during deletion. > > > >

Re: [PATCH] Don't validate properties during deletion.

2013-06-24 Thread Julian Foad
Daniel Shahaf > To: Julian Foad > Cc: dev@subversion.apache.org > Sent: Monday, 24 June 2013, 5:13 > Subject: Re: [PATCH] Don't validate properties during deletion. > > Daniel Shahaf wrote on Fri, Jun 21, 2013 at 17:28:19 +0300: >> Julian Foad wrote on Fri, J

Re: [PATCH] Don't validate properties during deletion.

2013-06-24 Thread Daniel Shahaf
Daniel Shahaf wrote on Fri, Jun 21, 2013 at 17:28:19 +0300: > Julian Foad wrote on Fri, Jun 21, 2013 at 15:04:39 +0100: > > Please update the doc string, which currently begins "Validate that > > property @a name is valid for use in a Subversion repository; return @c > > SVN_ERR_REPOS_BAD_ARGS if

Re: [PATCH] Don't validate properties during deletion.

2013-06-21 Thread Arwin Arni
Daniel Shahaf wrote: >C. Michael Pilato wrote on Fri, Jun 21, 2013 at 09:00:46 -0400: >> On 06/21/2013 06:43 AM, Daniel Shahaf wrote: >> > I still think the logic better belongs inside >svn_repos__validate_prop(). >> > (Not the least because it has three other callers which also need >to >> > a

Re: [PATCH] Don't validate properties during deletion.

2013-06-21 Thread Daniel Shahaf
Julian Foad wrote on Fri, Jun 21, 2013 at 15:04:39 +0100: > Daniel Shahaf wrote: > > > C. Michael Pilato wrote on Fri, Jun 21, 2013 at 09:00:46 -0400: > >> On 06/21/2013 06:43 AM, Daniel Shahaf wrote: > >> > I still think the logic better belongs inside > > svn_repos__validate_prop(). > >> > (

Re: [PATCH] Don't validate properties during deletion.

2013-06-21 Thread Julian Foad
Daniel Shahaf wrote: > C. Michael Pilato wrote on Fri, Jun 21, 2013 at 09:00:46 -0400: >> On 06/21/2013 06:43 AM, Daniel Shahaf wrote: >> > I still think the logic better belongs inside > svn_repos__validate_prop(). >> > (Not the least because it has three other callers which also need to >>

Re: [PATCH] Don't validate properties during deletion.

2013-06-21 Thread Daniel Shahaf
C. Michael Pilato wrote on Fri, Jun 21, 2013 at 09:00:46 -0400: > On 06/21/2013 06:43 AM, Daniel Shahaf wrote: > > I still think the logic better belongs inside svn_repos__validate_prop(). > > (Not the least because it has three other callers which also need to > > accept NULL values.) > > > > ---

Re: [PATCH] Don't validate properties during deletion.

2013-06-21 Thread C. Michael Pilato
On 06/21/2013 06:43 AM, Daniel Shahaf wrote: > I still think the logic better belongs inside svn_repos__validate_prop(). > (Not the least because it has three other callers which also need to > accept NULL values.) > > --- subversion/libsvn_repos/fs-wrap.c (revision 1495373) > +++ subversion/lib

Re: [PATCH] Don't validate properties during deletion.

2013-06-21 Thread Daniel Shahaf
Arwin Arni wrote on Fri, Jun 21, 2013 at 12:07:00 +0530: > On 06/20/2013 06:46 PM, Daniel Shahaf wrote: >> On Thu, Jun 20, 2013 at 06:15:52PM +0530, Arwin Arni wrote: >>> Hi, >>> >>> Properties are validated regardless of the action on the property. >>> This poses a problem when it comes to very ol

Re: [PATCH] Don't validate properties during deletion.

2013-06-20 Thread Arwin Arni
On 06/20/2013 07:01 PM, Julian Foad wrote: Arwin Arni wrote: Properties are validated regardless of the action on the property. This poses a problem when it comes to very old repositories that contain "invalid" properties committed by very old clients that didn't perform these validations. What

Re: [PATCH] Don't validate properties during deletion.

2013-06-20 Thread Arwin Arni
On 06/20/2013 06:46 PM, Daniel Shahaf wrote: On Thu, Jun 20, 2013 at 06:15:52PM +0530, Arwin Arni wrote: Hi, Properties are validated regardless of the action on the property. This poses a problem when it comes to very old repositories that contain "invalid" properties committed by very old cli

Re: [PATCH] Don't validate properties during deletion.

2013-06-20 Thread Arwin Arni
On 06/20/2013 06:30 PM, C. Michael Pilato wrote: Perhaps the better change is to make svn_repos__validate_prop() early-out (with success, of course) on a NULL value and adjust the rest of the code therein accordingly. I can see the benefit in flagging the *addition* (or modification) of a non-re

Re: [PATCH] Don't validate properties during deletion.

2013-06-20 Thread Julian Foad
I (Julian Foad) wrote: > What cases are you talking about, specifically? [...] > Agreed.  We discussed this before, at least in terms of the command-line > client, > and that was the conclusion we agreed on.  The principle should apply > consistently, so +1 to fix any APIs or wherever you're se

Re: [PATCH] Don't validate properties during deletion.

2013-06-20 Thread Julian Foad
Arwin Arni wrote: > Properties are validated regardless of the action on the property. This poses > a > problem when it comes to very old repositories that contain "invalid" > properties committed by very old clients that didn't perform these > validations. What cases are you talking about, sp

Re: [PATCH] Don't validate properties during deletion.

2013-06-20 Thread Daniel Shahaf
On Thu, Jun 20, 2013 at 06:15:52PM +0530, Arwin Arni wrote: > Hi, > > Properties are validated regardless of the action on the property. > This poses a problem when it comes to very old repositories that > contain "invalid" properties committed by very old clients that > didn't perform these valid

Re: [PATCH] Don't validate properties during deletion.

2013-06-20 Thread C. Michael Pilato
Perhaps the better change is to make svn_repos__validate_prop() early-out (with success, of course) on a NULL value and adjust the rest of the code therein accordingly. I can see the benefit in flagging the *addition* (or modification) of a non-regular property (which is the first test that functi

[PATCH] Don't validate properties during deletion.

2013-06-20 Thread Arwin Arni
Hi, Properties are validated regardless of the action on the property. This poses a problem when it comes to very old repositories that contain "invalid" properties committed by very old clients that didn't perform these validations. My contention is that we need to check the validity of the