Referencing Subversion username/password

I'm developing a 'master' FinalBuilder (FB) script which executes 'slave' scripts, passing initialised variables on the command line.  Each slave checks out files from a Subversion repository.  I defined project variables for the Subversion username and password, entered these variable references at the relevant fields on Subversion actions, and coded the master to pass these values to the slave.  This all works fine, but I can't allow the security risk caused by FB recording the plaintext password in its log.

In my second pass at this problem, I decided to do away with variables and instead enter the username/password on the FB Options dialog: Subversion options, Repository Defaults tab.  This also works, but I'd like to have a way of prompting the script user to enter their username and password if they haven't already done so.  I haven't been able to find any predefined FB variables for Subversion.  How can I determine in a FB script whether these fields have been set?

FinalBuilder 5.5.0.518.

Thanks,
Graham

Hi Graham,

Thanks for your post. The “Repository Defaults” approach that you describe is probably the best way to achieve this goal. The properties you are looking for are called SubversionOptions.DefaultUser and SubversionOptions.DefaultPassword.

Regards,

Angus

Thanks Angus for the quick response.

I assumed the properties Subversion.DefaultUser and Subversion.DefaultPassword are available from within script code, so I added a Run Script action and coded the following in its OnExecute tab:

if Len(SubversionOptions.DefaultUser) = 0 then
SubversionOptions.DefaultUser =
InputBox("Please enter your Subversion Username:", "Subversion Username")
end if

I coded this even though Code Completion failed to list DefaultUser as a property of SubversionOptions.  Another odd thing is that the Code Completion list seems to include items in the namespace 3 times?

Anyway this is working for me now.

Cheers,
Graham

Hi Graham,

The lack of Subversion options code completion is a bug, we should be able to fix it for a future release.

I’m not sure what “include items in then namespace 3 times” is, but it doesn’t sound right. Could you give us an example, please? Also, what version of FB are you using?

Regards,

Angus

Angus,

Sorry for the long delay.

Still using the same version listed in my initial post above (I notice there’s an update now).

A month down the track I can’t seem to reproduce the behaviour “include items in the namespace 3 times”. Perhaps it was in a particular context in the VBS code (assuming code completion is context-sensitive) that I forget. What I meant was that all members (eg. StrToDate) of the namespace were listed 3 times. I hope it was just a dream :slight_smile:

Cheers,
Graham