You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Edward Diener <ed...@loyaltyworks.com> on 2004/09/08 21:18:03 UTC
Finding user name
Is there a method in the svn API for finding the user name when a checkout
of a repository is made ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Finding user name
Posted by Edward Diener <ed...@loyaltyworks.com>.
"C. Michael Pilato" <cm...@collab.net> wrote in message
news:m33c1s5u96.fsf@localhost.localdomain...
> "Edward Diener" <ed...@loyaltyworks.com> writes:
>
> > Is there a method in the svn API for finding the user name when a
> > checkout of a repository is made ?
>
> Not as cut-and-dried as you might like, I'm sure. First, Subversion
> doesn't *require* usernames for checkouts -- that's a policy decision
> made by the repos admin. But besides that little bump, there's also
> this large crater -- even if a repository requires a username for
> checkouts, Subversion doesn't store that username anywhere.
I thought subversion can store user names and passwords for a particular
repository in authentication files as described in the subversion book. If
that is the case, is there an API for obtaining the user name from those
files for a particular repository.
I am not trying to get around subversion's security. Rather where I work the
need is to checkout some slightly different files from a repository path
depending on the user name. While I could require the user to input a user
name, all users will have their authentication information for a repository
stored away automatically and I would like to retrieve it in a program from
those files. I would have expected an API for doing this, but if this runs
against subversion security, I will have to have the user input their user
name into the program instead.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: filename length
Posted by "C. Michael Pilato" <cm...@collab.net>.
Don Vawter <do...@vawter.com> writes:
> using an absolute pathname worked. Interesting that I was able to
> "export" to windows box without an absolute path but couldnt
> checkout to it.
Checkouts build working copies, which means that your longest file
path length will, at some point, be extended by additional characters,
".svn/tmp/text-base/" between the dirname and basename, and
".svn-work" at the end of the path. If you're riding the line near
PATH_MAX, those additional characters could knock you over the
boundary.
Thanks for the follow-up.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
502 error on copy through stunnel proxy...
Posted by Christopher Baus <ch...@yahoo.com>.
I've also run into this problem:
http://vanderwijk.info/Members/ivo/articles/ComplexSVNSetupFix
using stunnel.
Does anybody have anymore information on this. Can it
be fixed internally to mod_dav_svn? Also I'd rather
use mod_rewrite than yet another proxy.
Any suggestions?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: filename length
Posted by Don Vawter <do...@vawter.com>.
using an absolute pathname worked. Interesting that I was able to
"export" to windows box without an absolute path but couldnt checkout to it.
C. Michael Pilato wrote:
>Don Vawter <do...@vawter.com> writes:
>
>
>
>>I am trying to check out a repository on a Windows machine and I am
>>getting errors that it can't find a path. It looks like it may be a
>>length issue as this is quite deep in the directory tree. I have
>>been using the repository on a linux box without issue. Today I
>>exported the repository to my windows box (which is the only one
>>connected to the vpn) and imported it to a new server on the vpn
>>(linux). I then tried to check it out and got the path not found
>>errors. Anybody have a clue?
>>
>>
>
>I've recently been looking into similar issues. Windows has a
>255-character path limit unless a) using a Unicode version of Windows
>*and* b) using absolute paths (where you get 32k-length paths).
>
>Try doing your Windows checkout specifying an absolute path for the
>checkout target:
>
> svn co http://blahblahblah/ C:\Temp\MyWorkingCopy
>
>And please report back here if this works for you (cuz your findings
>may help me with the issue *I'm* looking at).
>
>Thanks.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: filename length
Posted by "C. Michael Pilato" <cm...@collab.net>.
Don Vawter <do...@vawter.com> writes:
> I am trying to check out a repository on a Windows machine and I am
> getting errors that it can't find a path. It looks like it may be a
> length issue as this is quite deep in the directory tree. I have
> been using the repository on a linux box without issue. Today I
> exported the repository to my windows box (which is the only one
> connected to the vpn) and imported it to a new server on the vpn
> (linux). I then tried to check it out and got the path not found
> errors. Anybody have a clue?
I've recently been looking into similar issues. Windows has a
255-character path limit unless a) using a Unicode version of Windows
*and* b) using absolute paths (where you get 32k-length paths).
Try doing your Windows checkout specifying an absolute path for the
checkout target:
svn co http://blahblahblah/ C:\Temp\MyWorkingCopy
And please report back here if this works for you (cuz your findings
may help me with the issue *I'm* looking at).
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
filename length
Posted by Don Vawter <do...@vawter.com>.
I am trying to check out a repository on a Windows machine and I am
getting errors that it can't find a path. It looks like it may be a
length issue as this is quite deep in the directory tree. I have been
using the repository on a linux box without issue. Today I exported the
repository to my windows box (which is the only one connected to the
vpn) and imported it to a new server on the vpn (linux). I then tried to
check it out and got the path not found errors. Anybody have a clue?
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Finding user name
Posted by "C. Michael Pilato" <cm...@collab.net>.
"Edward Diener" <ed...@loyaltyworks.com> writes:
> Is there a method in the svn API for finding the user name when a
> checkout of a repository is made ?
Not as cut-and-dried as you might like, I'm sure. First, Subversion
doesn't *require* usernames for checkouts -- that's a policy decision
made by the repos admin. But besides that little bump, there's also
this large crater -- even if a repository requires a username for
checkouts, Subversion doesn't store that username anywhere.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org