You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Branko Čibej <br...@xbc.nu> on 2001/08/30 19:43:26 UTC

using svn.collab.net from a Windows client

FYI,

I've got a working svn.exe on Windows, with ra_dav and neon linked in. 
It requires some tweaking of the project files, and the following patch:

Index: subversion/clients/cmdline/checkout-cmd.c
===================================================================
RCS file: /usr/local/tigris/data/helm/cvs/repository/subversion/subversion/clients/cmdline/checkout-cmd.c,v
retrieving revision 1.8
diff -u -p -r1.8 checkout-cmd.c
--- subversion/clients/cmdline/checkout-cmd.c   2001/08/29 21:57:17     1.8
+++ subversion/clients/cmdline/checkout-cmd.c   2001/08/30 19:36:58
@@ -101,7 +101,7 @@ svn_cl__checkout (apr_getopt_t *os,
       /* Ensure that we have a default dir to checkout into. */
       if (! opt_state->target)
         local_dir = svn_path_last_component (repos_url,
-                                             svn_path_local_style,
+                                             svn_path_url_style,
                                              pool);
       else
         local_dir = opt_state->target;



This client can access the repository at svn.collab.net (modulo my flaky 
network connection, grrrr).

Karl, if there's still time for me to check in the changes before you 
roll the tarball for M3 and switch to the svn server, please tell me 
ASAP. Otherwise I'll check in the once we make the switch.


BTW -- neon's Win32 project files are completely broken. I'll provide 
pre-build neon libs for now, because that's the easiest thing to do.


-- 
Brane �ibej   <br...@xbc.nu>            http://www.xbc.nu/brane/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by kf...@collab.net.
I might well have shut it down around then or something... I wouldn't
worry too much about that.  Lots of things are going on on that box
right now.  Back to dist-building...

-K

Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
> I wrote:
> 
> > I can now checkout, commit, update, stat from morbius on my Win2k box. 
> 
> 
> Up to a point:
> 
> f... quite a lot of files, actually ...]
> A  trunk\notes\guis\pics
> A  trunk\notes\guis\pics\ClearCase-lsvtree-4.gif
> 
> apr_error: #20014, src_err 0 : <Error string not specified yet>
>   could not checkout a file
> 
> apr_error: #20014, src_err 0 : <Error string not specified yet>
>   Could not read response body: connection was closed by server.
> 
> 
> Oh, well.
> 
> -- 
> Brane �ibej   <br...@xbc.nu>            http://www.xbc.nu/brane/
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by Branko Čibej <br...@xbc.nu>.
I wrote:

> I can now checkout, commit, update, stat from morbius on my Win2k box. 


Up to a point:

f... quite a lot of files, actually ...]
A  trunk\notes\guis\pics
A  trunk\notes\guis\pics\ClearCase-lsvtree-4.gif

apr_error: #20014, src_err 0 : <Error string not specified yet>
  could not checkout a file

apr_error: #20014, src_err 0 : <Error string not specified yet>
  Could not read response body: connection was closed by server.


Oh, well.

-- 
Brane �ibej   <br...@xbc.nu>            http://www.xbc.nu/brane/




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by kf...@collab.net.
Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
> I fixed the calls to svn_client_authenticate in update and status, and 
> committed the changes that let us build with neon (and hence ra_dav) on 
> Win32. I can now checkout, commit, update, stat from morbius on my Win2k 
> box.

AweSOME!

> There are two issues I'm planning to submit:
> 
>     * Authentication stuff -- we have to clean up the design a bit,
>       define use cases, etc.

You may prefer to just add to issue #456.

>     * A segfault in commit on Win32, but *only* with the release build.
>       Somhow make_error_internal() is returning NULL to
>       svn_error_create(). The Debug build doesn't display this problem,
>       so I suggest using the debug binary for now.

Erk.  Okay, make an issue when you get a chance, I guess.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by Branko Čibej <br...@xbc.nu>.
O.K.,

I fixed the calls to svn_client_authenticate in update and status, and 
committed the changes that let us build with neon (and hence ra_dav) on 
Win32. I can now checkout, commit, update, stat from morbius on my Win2k 
box.

There are two issues I'm planning to submit:

    * Authentication stuff -- we have to clean up the design a bit,
      define use cases, etc.

    * A segfault in commit on Win32, but *only* with the release build.
      Somhow make_error_internal() is returning NULL to
      svn_error_create(). The Debug build doesn't display this problem,
      so I suggest using the debug binary for now.


Those will have to wait until tomorr^H^H^H^H^H^Hlater today.

-- 
Brane �ibej   <br...@xbc.nu>            http://www.xbc.nu/brane/




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by kf...@collab.net.
cmpilato@collab.net writes:
> Karl and I found the problem, but we (with Greg Stein) aren't quite
> ready to deem it a "bug".  We've got local fixes to httpd-2.0 to make
> updates work on our hosting box (hey, that's what open-source is all
> about, right?), but Greg is planning to address the real issue (which
> is not a Subversion issue) post-M3.

See issue #470 for details.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by cm...@collab.net.
Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:

> I'm on this. I'll submit an issue if I can't nail it down tonight. 
> What's happening is that svn_client_authenticate just tacks 
> "/SVN/auth/password" on the end of its path. I'll have to think about 
> where these checks shoud happen, though, because checkout should behave 
> differently from update/status/commit.

xlnt.

> >Thanks, known problem, appeared today, probably just due to some
> >Apache misconfiguration.  We're working on it right now.
> >
> 
> Ah, O.K.

Karl and I found the problem, but we (with Greg Stein) aren't quite
ready to deem it a "bug".  We've got local fixes to httpd-2.0 to make
updates work on our hosting box (hey, that's what open-source is all
about, right?), but Greg is planning to address the real issue (which
is not a Subversion issue) post-M3.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by kf...@collab.net.
Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
>     * Should "svn status" on an added, uncommitted directory
>       authenticate at all?
>     * Should "svn checkout" of a new tree inside a wc use the existing
>       auths? What if the checkout is from a different repository?
> 
> I think I'll put together a hack to make status and update work, and 
> file an issue anyway.

Sounds like the best plan for now.  Thanks, Branko.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by Ben Collins-Sussman <su...@collab.net>.
Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:

> Yes, I've been looking at that. Update has the same problem. But some 
> questions remain:
> 
>     * Should "svn status" on an added, uncommitted directory
>       authenticate at all?

'status' tries to open an RA session *only* because it wants to know
the head repository revision.  It's set up such that any RA error is
ignored, and '?' is printed within the parens.  (So that you can run
'svn st' offline.)   That's the reason it's trying to authenticate in
the first place -- it's a prerequisite to talking to an RA library.


>     * Should "svn checkout" of a new tree inside a wc use the existing
>       auths? What if the checkout is from a different repository?

Hmmmmmmm.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by Branko Čibej <br...@xbc.nu>.
Ben Collins-Sussman wrote:

>Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
>
>>I'm on this. I'll submit an issue if I can't nail it down tonight. 
>>What's happening is that svn_client_authenticate just tacks 
>>"/SVN/auth/password" on the end of its path. I'll have to think about 
>>where these checks shoud happen, though, because checkout should behave 
>>differently from update/status/commit.
>>
>
>Look at libsvn_client/status.c.   The problem is that
>svn_client_status() can take a dir or file as an argument;  but
>internally, it calls svn_client_authenticate() on the path no matter
>what, when this routine *only* takes dirs.  If 'path' is a single
>file, the parent path should be passed to authenticate().
>

Yes, I've been looking at that. Update has the same problem. But some 
questions remain:

    * Should "svn status" on an added, uncommitted directory
      authenticate at all?
    * Should "svn checkout" of a new tree inside a wc use the existing
      auths? What if the checkout is from a different repository?

I think I'll put together a hack to make status and update work, and 
file an issue anyway.


-- 
Brane �ibej   <br...@xbc.nu>            http://www.xbc.nu/brane/




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by Ben Collins-Sussman <su...@collab.net>.
Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:

> kfogel@collab.net wrote:
> 
> >Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
> >
> >>Except that I should have started on this a week ago, instead of 
> >>yesterday. I'm still having problems:
> >>
> >>    * I have to enter the username and password for every operation. The
> >>      client's looking for the auth info in the wrong place: e.g., when
> >>      I say "svn stat NEWS", it looks for "news/SVN/auth/username"
> >>      instead of "./SVN/auth/username".
> >>
> >
> >Yeah, this definitely needs fixin', should be an easy tweak.  Would
> >you mind filing an issue (or if you think it's faster just to fix it,
> >go ahead and do that)?
> >
> 
> I'm on this. I'll submit an issue if I can't nail it down tonight. 
> What's happening is that svn_client_authenticate just tacks 
> "/SVN/auth/password" on the end of its path. I'll have to think about 
> where these checks shoud happen, though, because checkout should behave 
> differently from update/status/commit.

Look at libsvn_client/status.c.   The problem is that
svn_client_status() can take a dir or file as an argument;  but
internally, it calls svn_client_authenticate() on the path no matter
what, when this routine *only* takes dirs.  If 'path' is a single
file, the parent path should be passed to authenticate().


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by kf...@collab.net.
Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
> I'm on this. I'll submit an issue if I can't nail it down tonight. 
> What's happening is that svn_client_authenticate just tacks 
> "/SVN/auth/password" on the end of its path. I'll have to think about 
> where these checks shoud happen, though, because checkout should behave 
> differently from update/status/commit.

Thanks!

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by Branko Čibej <br...@xbc.nu>.
kfogel@collab.net wrote:

>Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
>
>>Except that I should have started on this a week ago, instead of 
>>yesterday. I'm still having problems:
>>
>>    * I have to enter the username and password for every operation. The
>>      client's looking for the auth info in the wrong place: e.g., when
>>      I say "svn stat NEWS", it looks for "news/SVN/auth/username"
>>      instead of "./SVN/auth/username".
>>
>
>Yeah, this definitely needs fixin', should be an easy tweak.  Would
>you mind filing an issue (or if you think it's faster just to fix it,
>go ahead and do that)?
>

I'm on this. I'll submit an issue if I can't nail it down tonight. 
What's happening is that svn_client_authenticate just tacks 
"/SVN/auth/password" on the end of its path. I'll have to think about 
where these checks shoud happen, though, because checkout should behave 
differently from update/status/commit.

>>    * svn up says
>>      apr_error: #20014, src_err 0 : <Error string not specified yet>
>>          The REPORT status was 500, but expected 200.
>>
>>Any hints welcome.
>>
>
>Thanks, known problem, appeared today, probably just due to some
>Apache misconfiguration.  We're working on it right now.
>

Ah, O.K.


-- 
Brane �ibej   <br...@xbc.nu>            http://www.xbc.nu/brane/




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by kf...@collab.net.
Branko =?ISO-8859-2?Q?=C8ibej?= <br...@xbc.nu> writes:
> Except that I should have started on this a week ago, instead of 
> yesterday. I'm still having problems:
>
>     * I have to enter the username and password for every operation. The
>       client's looking for the auth info in the wrong place: e.g., when
>       I say "svn stat NEWS", it looks for "news/SVN/auth/username"
>       instead of "./SVN/auth/username".

Yeah, this definitely needs fixin', should be an easy tweak.  Would
you mind filing an issue (or if you think it's faster just to fix it,
go ahead and do that)?

>     * svn up says
>       apr_error: #20014, src_err 0 : <Error string not specified yet>
>           The REPORT status was 500, but expected 200.
> 
> Any hints welcome.

Thanks, known problem, appeared today, probably just due to some
Apache misconfiguration.  We're working on it right now.

We had been running an httpd-2.0 sticky-tagged at August 20th, due to
some problems with the bleeding edge.  Now we're going back to
bleeding edge (which is different today than it was two days ago), to
get rid of those update errors.  

The update errors look like this in the apache error_log, by the way:

   [Thu Aug 30 15:02:18 2001] [warn] [client 213.143.69.107] handler \
      "dav-handler" not found for: /usr/www/docroot/repos

That path is all wrong.  The location directive *should* know that
`/repos/svn' is not located under the DocumentRoot:

   <Location /repos/svn>
           DAV svn
           SVNPath /usr/www/repositories/svn
           AuthType Basic
           AuthName "Subversion repository"
           AuthUserFile /usr/www/svn-user-file
           <LimitExcept GET PROPFIND OPTIONS REPORT>
             require valid-user
           </LimitExcept>
   </Location>

But for some reason, that path is not getting DAV handled.  Greg
Stein's first suggestion was to ditch the ten-day-old apache and see
what the latest tree gives us, so that's what we're trying now.

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by Branko Čibej <br...@xbc.nu>.
cmpilato@collab.net wrote:

>Hm...considering multiframe ASCII-art animation of someone bowing
>repeatedly to Branko in worship...
>
:-)

Except that I should have started on this a week ago, instead of 
yesterday. I'm still having problems:

    * I have to enter the username and password for every operation. The
      client's looking for the auth info in the wrong place: e.g., when
      I say "svn stat NEWS", it looks for "news/SVN/auth/username"
      instead of "./SVN/auth/username".
    * svn up says
      apr_error: #20014, src_err 0 : <Error string not specified yet>
          The REPORT status was 500, but expected 200.

Any hints welcome.


-- 
Brane �ibej   <br...@xbc.nu>            http://www.xbc.nu/brane/




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: using svn.collab.net from a Windows client

Posted by cm...@collab.net.
Hm...considering multiframe ASCII-art animation of someone bowing
repeatedly to Branko in worship...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org