Subversion Actions and Password

Where is the Subversion password stored?  I currently use a variable svn_pw which contains my actually password and all my subversion actions reference it.  I've found my commit action doesn't seem to get the update when I change the variable (although it's hard to tell because it's masked in the log).  I went looking inside the XML of the project file and I don't see it.  Is it encrypted or hidden in a different file?

 

Thanks!

 Ok I definitely think there is a bug here:

 

On my svn commit action, I set the user name in the action to ValuesSetInBeforeAction and cleared the Password field.

In the BeforeAction I have the following javascript:

Action.UserName = svn_user;

Action.Password = svn_pw;

 

 

Here is the output of the action:

Starting Directory: E:\Depot\projects\xxxx3.5-cache

Parameters: commit --force-log --message "xxxx Build 3.5.88.0.790.0" --non-interactive --password [suppressed] --username build_master  E:\Depot\projects\xxxx3.5-cache

Output from C:\Program Files\CollabNet Subversion Client\svn.exe

svn: Commit failed (details follow):

svn: OPTIONS of 'https://yyyy.net/svn/xxxx/branches/3.5/main': authorization failed (https://yyyy.net)

Subversion commit failed with return code 1

Command line was : svn commit --force-log --message "xxxx Build 3.5.88.0.790.0" --non-interactive --password [suppressed] --username build_master  E:\Depot\projects\xxxx3.5-cache

 

The username is correctly set, but it looks like the password is coming from somewhere else.  

I took the exact svn commit line, plugged in the correct password and executed it on the box.  Went fine.

 

Any ideas?

 

Thanks!

 

I also just added Action.SendLogMessage("Password: " + Action.Password); to the AfterAction and confirmed it is not using the value of svn_pw, but rather the last password that was set.

Hi Nelson,

We’re not able to reproduce the problems you’re having with the Subversion Commit action, when you set the value of an action property to a variable value in the BeforeScript event the action is updated with the value of the variable at that time, the value will not get updated until the event is called again even if the variable value changes. Also, another thing to keep in mind is that the Subversion client will cache credentials which may also be causing confusion, here’s the documentation that explains it:

URL: http://svnbook.red-bean.com/nightly/en/svn.serverconfig.netmodel.html#svn.serverconfig.netmodel.credcache

Regards,
Paul.

 Hi Paul,

I am specifying credentials with the commit command, so according to docs it shouldn't be using the cached credentials.  I am definitely seeing some strange behavior outlined above on my server, but I'm working on steps and a project to demonstrate the problem.  

When I plug in a value (variable or hard coded) value into the password text entry box of the Subversion Commit (and I assume all other Subversion actions), where does FB store this password?  When I view the raw XML, I don't see any changes in the project between changing the password.

Thanks!

-Nelson

Ok I confirmed the error was on my part. My apologies. I am still curious where the password is stored though. Maybe that's right in front me as well :)

> I am still curious where the password is stored though

It's encrypted in the project file :)