Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: issue with username in http(s)-svn commit

fsvs
Discussion topic

Back to topic list

Re: issue with username in http(s)-svn commit

Author pmarek
Full name P.Marek
Date 2008-06-06 10:30:55 PDT
Message Hello Gunnar!

On Friday 06 June 2008 Gunnar Thielebein wrote:
> I have an issue when using sudo with fsvs in environments where we don't
> have the svn-client installed. We do a userbased auth before committing
> via an http-url.
>
> The error message is this:
> > (R)eject or accept (t)emporarily? t
> > Authentication realm: <https://*********:443
> > <https://svn.tpip.net​:443>> SVN - Repository
> > Password for 'root':
> >
> > An error occurred: RA layer request failed (175002)
> > in ci__work: svn_ra_get_commit_editor: OPTIONS request failed on
> > '/repos/tp/OPS/********/office'
>
> Where it does ask for a password I only hit return.
>
> When we installed svn and did "svn ls" with the same url it asked for
> username and saved the credentials.
But that was as a user, not as root (which sudo switches too), right?
I'm not sure what happens.
If I do
    sudo bash -c set | grep HOME
I still get the user-home; so the subversion-libraries should take the stored
authentication information.

Maybe it gets rejected because it has a different owner?


Could you do a "fsvs up -d" and "strace fsvs up" of empty updates, ie. where
nothing gets fetched? Maybe I find a hint where to look there.


> I would also like to propose to set a -u or -l parameter for specifying
> the user when committing via fsvs. This would ease the user handling in
> environments where you have different admins working with only one
> (root) account.
Yes ... that's maybe necessary.

IIUYC that should be used for the "svn:author" value? I'm not sure whether the
subversion libraries allow to use *any* value (or restrict to the username,
or the remote user...), but we can try.


How about I make that configurable?
- Either you use environment variables on your authorized_keys:
    environment="FSVS_AU​THOR=some_user" ssh-rsa ...
- Or, if that is not specified, it could be taken from /etc/fsvs/config as
    author=some_user

Then I could add the special case that a '$' as first character means get
value from the environment; then /etc/fsvs/config could read
    author=$SUDO_USER
If the ssh key is used, the environment variable FSVS_AUTHOR is used; else
$SUDO_USER is taken.


How about that?


Regards,

Phil


[ PS: Yes, Marek is a polish name ... but it's my surname :-]

--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 2 of 7 | Next message in topic »

Messages

Show all messages in topic

issue with username in http(s)-svn commit tekknokrat Gunnar Thielebein 2008-06-06 08:52:19 PDT
     Re: issue with username in http(s)-svn commit pmarek P.Marek 2008-06-06 10:30:55 PDT
         Re: issue with username in http(s)-svn commit Sheldon Hearn <sheldonh at starjuice dot net> Sheldon Hearn <sheldonh at starjuice dot net> 2008-06-06 11:13:12 PDT
         Re: issue with username in http(s)-svn commit tekknokrat Gunnar Thielebein 2008-06-08 10:28:47 PDT
             Re: issue with username in http(s)-svn commit pmarek P.Marek 2008-06-08 22:38:32 PDT
                 Re: issue with username in http(s)-svn commit tekknokrat Gunnar Thielebein 2008-06-10 08:56:54 PDT
                     Re: issue with username in http(s)-svn commit pmarek P.Marek 2008-06-11 10:11:14 PDT
Messages per page: