Thread: [Codestriker-user] full file view for subversion
Brought to you by:
sits
|
From: Sean Moss-P. <se...@mo...> - 2004-10-22 06:58:27
Attachments:
smime.p7s
|
I've searched this lists archives and googled but can't find out how to
configure the full file view for a subversion repository. Right now
when I click on 'Parallel' it opens a new window and just hangs. No
content is every displayed.
My valid repositories looks as follows:
@valid_repositories =
(
'svn:http://<...>/svn/trunk',
);
Nowhere have I entered a valid user/pass for this repository. I figure
I need to do this somewhere but I'm not sure where. Does anyone have a
sample checksetup.pl file they would be willing to email me? There's a
lot of configuration that looks very specific to CVS. I'm a bit worried
I'm missing things.
Thanks in advance for the help!
-Sean
|
|
From: David S. <si...@us...> - 2004-10-22 10:17:30
|
Hi Sean, On Fri, 22 Oct 2004 16:58, Sean Moss-Pultz wrote: > I've searched this lists archives and googled but can't find out how to > configure the full file view for a subversion repository. Right now > when I click on 'Parallel' it opens a new window and just hangs. No > content is every displayed. This might be a permissions issue. Check your apache error logs to see if there is anything helpful in there. You need to make sure the user running apache can execute the svn commands. If it is hanging though, its likely the command is prompting for some input (username/password), which we obviously can't supply. Perhaps you can run an svn command as the same user that the webserver runs as, so that the authentication information is then cached? > Nowhere have I entered a valid user/pass for this repository. I figure > I need to do this somewhere but I'm not sure where. Does anyone have a > sample checksetup.pl file they would be willing to email me? There's a Basically, the string after "svn:" in @valid_repositories is what will get used in all the svn commands. So in your case, the parallel link will generate a command like: svn cat --revision 7 http://<...>/svn/trunk/file.c In my testing, I have only worked on SVN repositories that had access to repositories without requiring a password. If you have authentication on your repository, we need to somehow set up the user running Codestriker to be able to execute the svn command without any interaction. I believe there are a number of different ways youi can do authentication with subversion, but we should be able to set it up so that a password entry is not required. I believe this information is cached after doing an initial login, or the other option is to use the svn server + ssh. Having said all that, I am not an expert in Subversion. Someone else on this list may have some better ideas here, on how this is done. I'll update the manual once we get this sorted out. -- Cheers, David |
|
From: Sean Moss-P. <se...@mo...> - 2004-10-22 09:53:32
Attachments:
smime.p7s
|
On Oct 22, 2004, at 4:11 PM, David Sitsky wrote: > Hi Sean, > > On Fri, 22 Oct 2004 16:58, Sean Moss-Pultz wrote: >> I've searched this lists archives and googled but can't find out how >> to >> configure the full file view for a subversion repository. Right now >> when I click on 'Parallel' it opens a new window and just hangs. No >> content is every displayed. > > This might be a permissions issue. Check your apache error logs to > see if > there is anything helpful in there. You need to make sure the user > running apache can execute the svn commands. I have anonymous access disabled. I'm using Basic authentication with subversion. I have an "AuthUserFile" that handles all the login information. I added wwwrun (the user for apache under SuSE) with no password. Things seem to work fine now. I'd read around on SuSE's (my distro) discussion board and they _strongly_ suggest not to change the password for the user that runs apache. Actually I think this is not really even a user is the technical sense. I can't login as it. Right now it has read access to everything. This is a temporary solution but I would really like to figure out a way to use some form of authentication. I could take a look into the code this weekend. I might have some free time. Do you have any ideas off the top of your head? > > > Having said all that, I am not an expert in Subversion. Someone else > on > this list may have some better ideas here, on how this is done. > > I'll update the manual once we get this sorted out. I would be more than happy to help with this one! -Sean |
|
From: David S. <si...@us...> - 2004-10-25 00:28:51
|
Hi Sean, > I have anonymous access disabled. I'm using Basic authentication with > subversion. I have an "AuthUserFile" that handles all the login > information. I added wwwrun (the user for apache under SuSE) with no > password. Things seem to work fine now. > > I'd read around on SuSE's (my distro) discussion board and they > _strongly_ suggest not to change the password for the user that runs > apache. Actually I think this is not really even a user is the > technical sense. I can't login as it. Right now it has read access to > everything. You can't log into wwwrun, probably because its shell is set to /bin/false in the passwd file. This is pretty standard practice for these type of accounts. I thought in my brief readings with SVN, once you login to SVN with a password-protected account, it caches this information somewhere so you don't need to re-enter it each time. You could change the wwwrun account so that its shell is /bin/bash temporarily, log in to SVN, then change it back to /bin/bash. Another solution is to run the svnserve server, and connect to SVN using TCP/IP. I believe you can then connect to it using ssh, so then you can do the usual trick of getting the ssh keys setup so that wwwrun is properly authenticated with the server, without any interactivity. People do this with remote CVS repositories with ssh. -- Cheers, David |