Re: Input validation observations - svn info - changing "(Not a valid URL)" to the specific error message

2010-12-23 Thread Noorul Islam K M
Noorul Islam K M writes: > Julian Foad writes: > >> Re: >> * "svn info ^/b" -> "Not a valid URL"; should be "path '/b' not found >> in revision REV"? >> >> On Wed, 2010-12-08, Noorul Islam K M wrote: >> [...] >>> One of the solution that you suggested was to keep what the existing >>> code is

Re: Input validation observations - svn info - changing "(Not a valid URL)" to the specific error message

2010-12-23 Thread Noorul Islam K M
Julian Foad writes: > Re: > * "svn info ^/b" -> "Not a valid URL"; should be "path '/b' not found > in revision REV"? > > On Wed, 2010-12-08, Noorul Islam K M wrote: > [...] >> One of the solution that you suggested was to keep what the existing >> code is doing but saying something more helpfu

Re: Input validation observations - svn info - changing "(Not a valid URL)" to the specific error message

2010-12-20 Thread Julian Foad
Re: * "svn info ^/b" -> "Not a valid URL"; should be "path '/b' not found in revision REV"? On Wed, 2010-12-08, Noorul Islam K M wrote: [...] > One of the solution that you suggested was to keep what the existing > code is doing but saying something more helpful than "Not a valid > URL". I thoug

Re: Input validation observations

2010-12-20 Thread Julian Foad
On Mon, 2010-12-13, Noorul Islam K M wrote: > Julian Foad writes: > > > > * "svn mv ^/ ^/" -> "Cannot move path > > 'https:/svn.apache.org/repos/asf' into itself"; should not print the URL > > as if it's a local path. > > Attached is the patch which improves error message displayed. > [[[ > Ma

Re: Input validation observations

2010-12-15 Thread Julian Foad
On Wed, 2010-12-15, Noorul Islam K M wrote: > Julian Foad writes: > > > Noorul Islam K M wrote: > > > >> Julian Foad writes: > >> > Thank you for the updated patch. Even though this is a very > >> > simple-looking patch, I need a bit more information to help me review > >> > it. > >> > > >> > D

Re: Input validation observations

2010-12-14 Thread Noorul Islam K M
Julian Foad writes: > Noorul Islam K M wrote: > >> Julian Foad writes: >> > Thank you for the updated patch. Even though this is a very >> > simple-looking patch, I need a bit more information to help me review >> > it. >> > >> > Do you think both of the options I suggested are possible solutio

Re: Input validation observations

2010-12-13 Thread Noorul Islam K M
Julian Foad writes: > On Mon, 2010-12-13, Hyrum K. Wright wrote: > >> Random community nit: The attached log message seems to have little to >> do with email subject of "Input validation observations". > > FYI, I'm watching this thread and intend to respond to this patch, which > is one of a seri

Re: Input validation observations

2010-12-13 Thread Julian Foad
On Mon, 2010-12-13, Hyrum K. Wright wrote: > Random community nit: The attached log message seems to have little to > do with email subject of "Input validation observations". FYI, I'm watching this thread and intend to respond to this patch, which is one of a series of patches responding to the o

Re: Input validation observations

2010-12-13 Thread Noorul Islam K M
Julian Foad writes: > > * "svn mv ^/ ^/" -> "Cannot move path > 'https:/svn.apache.org/repos/asf' into itself"; should not print the URL > as if it's a local path. > Attached is the patch which improves error message displayed. Log [[[ Make 'svn move' display correct error message while movi

Re: Input validation observations

2010-12-13 Thread Hyrum K. Wright
Random community nit: The attached log message seems to have little to do with email subject of "Input validation observations". In the future, when sending a new patch to the list, I'd recommend starting a new thread, complete with it's own "[PATCH] ..." subject, as recommended in the patch submi

RE: Input validation observations

2010-12-13 Thread noorul Islam. Kamal Malmiyoda
I am top posting since my mails are not getting through with my mail client. I am using web based client which lacks quoting feature. This is in response to * "svn mv ^/ ^/" -> "Cannot move path 'https:/svn.apache.org/repos/asf' into itself"; should not print the URL as if it's a local path.

Re: Input validation observations

2010-12-10 Thread Julian Foad
On Fri, 2010-12-10, Noorul Islam K M wrote: > Julian Foad writes: > > After you have asserted that all the targets are of the same type, there > > is no need for a loop that checks all of them in turn, just to find out > > whether they are paths or URLs, is there? > > You are absolutely right. Th

Re: Input validation observations

2010-12-10 Thread Noorul Islam K M
Julian Foad writes: > Noorul Islam K M wrote: > >> Attached is the patch for svn/diff-cmd.c. All tests pass. > > Hi Noorul. Thanks for mentioning that all tests pass - that's good to > know. > >> + svn_cl__assert_homogeneous_target_type(targets); >> + >>/* Check to see if at l

Re: Input validation observations

2010-12-10 Thread C. Michael Pilato
On 12/10/2010 07:00 AM, Julian Foad wrote: > Noorul Islam K M wrote: >> Attached is the patch for svn/diff-cmd.c. All tests pass. > > Hi Noorul. Thanks for mentioning that all tests pass - that's good to > know. > >> + svn_cl__assert_homogeneous_target_type(targets); >> + >>/*

Re: Input validation observations

2010-12-10 Thread Julian Foad
On Fri, 2010-12-10 at 18:09 +0530, Noorul Islam K M wrote: > Julian Foad writes: > > > Noorul Islam K M wrote: > > > >> Attached is the patch for svn/diff-cmd.c. All tests pass. > > > > Hi Noorul. Thanks for mentioning that all tests pass - that's good to > > know. > > > >> + svn_cl__assert

Re: Input validation observations

2010-12-10 Thread Noorul Islam K M
Julian Foad writes: > Noorul Islam K M wrote: > >> Attached is the patch for svn/diff-cmd.c. All tests pass. > > Hi Noorul. Thanks for mentioning that all tests pass - that's good to > know. > >> + svn_cl__assert_homogeneous_target_type(targets); >> + >>/* Check to see if at l

Re: Input validation observations

2010-12-10 Thread Julian Foad
Noorul Islam K M wrote: > Attached is the patch for svn/diff-cmd.c. All tests pass. Hi Noorul. Thanks for mentioning that all tests pass - that's good to know. > + svn_cl__assert_homogeneous_target_type(targets); > + >/* Check to see if at least one of our paths is a working c

Re: Input validation observations

2010-12-10 Thread Noorul Islam K M
Noorul Islam K M writes: > Julian Foad writes: > >> On Sat, 2010-12-04 at 13:01 +0530, Noorul Islam K M wrote: >> >>> Julian Foad writes: >>> >>> > Noorul Islam K M wrote: >>> > >>> >> Julian Foad writes: >>> >> > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't >>> >>

Re: Input validation observations

2010-12-09 Thread Julian Foad
On Wed, 2010-12-08, Noorul Islam K M wrote: > Attached is the patch which has the new functions to replace the > existing blocks. All tests pass when tested with 'make check'. No need > for test cases as they are already available. Noorul, thank you. This is great. > Also I have not modified > l

Re: Input validation observations

2010-12-08 Thread Noorul Islam K M
Julian Foad writes: > On Sat, 2010-12-04 at 13:01 +0530, Noorul Islam K M wrote: > >> Julian Foad writes: >> >> > Noorul Islam K M wrote: >> > >> >> Julian Foad writes: >> >> > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't >> >> > mix URL and local targets"? >> > [...

Re: Input validation observations

2010-12-08 Thread Julian Foad
Noorul Islam K M wrote: > Julian Foad writes: > > Thank you for the updated patch. Even though this is a very > > simple-looking patch, I need a bit more information to help me review > > it. > > > > Do you think both of the options I suggested are possible solutions? > > What are the advantages

Re: Input validation observations

2010-12-08 Thread Julian Foad
Noorul Islam K M wrote: > Ran test suite and found some failures and fixed them. All of them were > passing URL to 'svn up' which is not at all required. Now all tests are > passing with the below attached patch. Thanks, Noorul. That's lovely. Committed revision 1043409. - Julian > Log > [[[

Re: Input validation observations

2010-12-08 Thread Noorul Islam K M
Julian Foad writes: > On Sat, 2010-12-04, Noorul Islam K M wrote: > >> Julian Foad writes: >> > Noorul Islam K M wrote: >> >> Julian Foad writes: >> >> > * "svn info ^/b" -> "Not a valid URL"; should be "path '/b' not found >> >> > in revision REV"? > [...] >> >> - SVN_ERR(svn_cm

Re: Input validation observations

2010-12-07 Thread Noorul Islam K M
Noorul Islam K M writes: > Julian Foad writes: > >> On Sat, 2010-12-04, Noorul Islam K M wrote: >> >>> Julian Foad writes: >>> > On Fri, 2010-12-03, Noorul Islam K M wrote: >>> >> Julian Foad writes: >>> >> > I think we should change this behaviour and make "svn update" throw an >>> >> > error

Re: Input validation observations

2010-12-07 Thread Noorul Islam K M
Julian Foad writes: > On Sat, 2010-12-04, Noorul Islam K M wrote: > >> Julian Foad writes: >> > On Fri, 2010-12-03, Noorul Islam K M wrote: >> >> Julian Foad writes: >> >> > I think we should change this behaviour and make "svn update" throw an >> >> > error if any target is a URL. >> >> >> >>

Re: Input validation observations

2010-12-07 Thread Julian Foad
On Sat, 2010-12-04, Noorul Islam K M wrote: > Julian Foad writes: > > On Fri, 2010-12-03, Noorul Islam K M wrote: > >> Julian Foad writes: > >> > I think we should change this behaviour and make "svn update" throw an > >> > error if any target is a URL. > >> > >> Attached is the patch for same.

Re: Input validation observations

2010-12-06 Thread Julian Foad
On Sat, 2010-12-04, Noorul Islam K M wrote: > Julian Foad writes: > > Noorul Islam K M wrote: > >> Julian Foad writes: > >> > * "svn info ^/b" -> "Not a valid URL"; should be "path '/b' not found > >> > in revision REV"? [...] > >> - SVN_ERR(svn_cmdline_fprintf > >> -

Re: Input validation observations

2010-12-06 Thread Julian Foad
On Sat, 2010-12-04 at 13:01 +0530, Noorul Islam K M wrote: > Julian Foad writes: > > > Noorul Islam K M wrote: > > > >> Julian Foad writes: > >> > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't > >> > mix URL and local targets"? > > [...] > >> Make 'svn mkdir' verify tha

Re: Input validation observations

2010-12-03 Thread Noorul Islam K M
Julian Foad writes: > Noorul Islam K M wrote: > >> Julian Foad writes: >> > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't >> > mix URL and local targets"? > [...] >> Make 'svn mkdir' verify that both working copy paths and URLs are >> not passed. >> >> * subversion/svn

Re: Input validation observations

2010-12-03 Thread Noorul Islam K M
Julian Foad writes: > On Fri, 2010-12-03, Noorul Islam K M wrote: > >> Julian Foad writes: >> > I think we should change this behaviour and make "svn update" throw an >> > error if any target is a URL. >> >> Attached is the patch for same. > [...] >> Make 'svn update' verify that URLs are not p

Re: Input validation observations

2010-12-03 Thread Noorul Islam K M
Julian Foad writes: > Noorul Islam K M wrote: > >> Julian Foad writes: >> > * "svn info ^/b" -> "Not a valid URL"; should be "path '/b' not found >> > in revision REV"? >> >> Patch attached. > > Hi Noorul. > >> Make "svn info" to display the actual error message returned by API when >> illega

Re: Input validation observations

2010-12-03 Thread Julian Foad
On Fri, 2010-12-03 at 16:53 +, Julian Foad wrote: > On Fri, 2010-12-03, Julian Foad wrote: > > On Fri, 2010-12-03 at 19:15 +0530, Noorul Islam K M wrote: > > > Julian Foad writes: > > > > Noorul Islam K M wrote: > > > >> Julian Foad writes: > > > >> > * "svn mkdir ^/ a" -> "Illegal reposito

Re: Input validation observations

2010-12-03 Thread Julian Foad
On Fri, 2010-12-03, Julian Foad wrote: > On Fri, 2010-12-03 at 19:15 +0530, Noorul Islam K M wrote: > > Julian Foad writes: > > > Noorul Islam K M wrote: > > >> Julian Foad writes: > > >> > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't > > >> > mix URL and local targets"

Re: Input validation observations

2010-12-03 Thread Julian Foad
On Fri, 2010-12-03 at 19:15 +0530, Noorul Islam K M wrote: > Julian Foad writes: > > Noorul Islam K M wrote: > >> Julian Foad writes: > >> > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't > >> > mix URL and local targets"? > > [...] > > Does this validation make the check

Re: Input validation observations

2010-12-03 Thread Julian Foad
On Fri, 2010-12-03, Noorul Islam K M wrote: > Julian Foad writes: > > I think we should change this behaviour and make "svn update" throw an > > error if any target is a URL. > > Attached is the patch for same. [...] > Make 'svn update' verify that URLs are not passed as targets. > > * subversio

Re: Input validation observations

2010-12-03 Thread C. Michael Pilato
On 12/03/2010 06:51 AM, Julian Foad wrote: > Noorul Islam K M wrote: >> Julian Foad writes: [...] >> Index: subversion/svn/info-cmd.c >> === >> --- subversion/svn/info-cmd.c(revision 1041293) >> +++ subversion/svn/info-cmd.c

Re: Input validation observations

2010-12-03 Thread Noorul Islam K M
Julian Foad writes: > Noorul Islam K M wrote: > >> Julian Foad writes: >> > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't >> > mix URL and local targets"? > [...] >> Make 'svn mkdir' verify that both working copy paths and URLs are >> not passed. >> >> * subversion/svn

Re: Input validation observations

2010-12-03 Thread Julian Foad
Noorul Islam K M wrote: > Julian Foad writes: > > * "svn mkdir ^/ a" -> "Illegal repository URL 'a'"; should say "can't > > mix URL and local targets"? [...] > Make 'svn mkdir' verify that both working copy paths and URLs are > not passed. > > * subversion/svn/mkdir-cmd.c, > subversion/libsvn

Re: Input validation observations

2010-12-03 Thread Julian Foad
Noorul Islam K M wrote: > Julian Foad writes: > > * "svn info ^/b" -> "Not a valid URL"; should be "path '/b' not found > > in revision REV"? > > Patch attached. Hi Noorul. > Make "svn info" to display the actual error message returned by API when > illegal URL is passed. > > * subversion/sv

Re: Input validation observations

2010-12-03 Thread Noorul Islam K M
Julian Foad writes: > I tried some potentially invalid inputs to "svn" a week or two ago and > made notes on what I found. Just posting here in case anyone wants to > do something about one or more of them. > > Noorul, I'm including you in the "To" addresses because you said you > were looking f

Re: Input validation observations

2010-12-03 Thread Noorul Islam K M
Julian Foad writes: > I tried some potentially invalid inputs to "svn" a week or two ago and > made notes on what I found. Just posting here in case anyone wants to > do something about one or more of them. > > Noorul, I'm including you in the "To" addresses because you said you > were looking f

Re: Input validation observations

2010-12-03 Thread Noorul Islam K M
Julian Foad writes: > On Thu, 2010-12-02 at 13:58 +0530, Noorul Islam K M wrote: > >> Julian Foad writes: >> >> > On Tue, 2010-11-30 at 18:42 +0530, Noorul Islam K M wrote: >> > >> >> Julian Foad writes: >> >> >> >> > I tried some potentially invalid inputs to "svn" a week or two ago and >> >

Re: Input validation observations

2010-12-02 Thread Julian Foad
On Thu, 2010-12-02 at 13:58 +0530, Noorul Islam K M wrote: > Julian Foad writes: > > > On Tue, 2010-11-30 at 18:42 +0530, Noorul Islam K M wrote: > > > >> Julian Foad writes: > >> > >> > I tried some potentially invalid inputs to "svn" a week or two ago and > >> > made notes on what I found. J

Re: Input validation observations

2010-12-02 Thread Julian Foad
On Thu, 2010-12-02 at 14:05 +0530, Noorul Islam K M wrote: > Julian Foad writes: > > > I tried some potentially invalid inputs to "svn" a week or two ago and > > made notes on what I found. Just posting here in case anyone wants to > > do something about one or more of them. > > > > Noorul, I'm

Re: Input validation observations

2010-12-02 Thread Noorul Islam K M
Julian Foad writes: > I tried some potentially invalid inputs to "svn" a week or two ago and > made notes on what I found. Just posting here in case anyone wants to > do something about one or more of them. > > Noorul, I'm including you in the "To" addresses because you said you > were looking f

Re: Input validation observations

2010-12-02 Thread Noorul Islam K M
Julian Foad writes: > On Tue, 2010-11-30 at 18:42 +0530, Noorul Islam K M wrote: > >> Julian Foad writes: >> >> > I tried some potentially invalid inputs to "svn" a week or two ago and >> > made notes on what I found. Just posting here in case anyone wants to >> > do something about one or mor

Re: Input validation observations

2010-11-30 Thread Julian Foad
On Tue, 2010-11-30 at 18:42 +0530, Noorul Islam K M wrote: > Julian Foad writes: > > > I tried some potentially invalid inputs to "svn" a week or two ago and > > made notes on what I found. Just posting here in case anyone wants to > > do something about one or more of them. > > > > Noorul, I'm

Re: Input validation observations

2010-11-30 Thread Noorul Islam K M
Julian Foad writes: > I tried some potentially invalid inputs to "svn" a week or two ago and > made notes on what I found. Just posting here in case anyone wants to > do something about one or more of them. > > Noorul, I'm including you in the "To" addresses because you said you > were looking f