Password-protected SVN repositories...
It would be great to be able to access password-protected repositories. I'm not sure if this support is already present
but, if it is, I've not been able to find it.
#2 Updated by Chris Grant over 15 years ago
One last request on this issue...
In the name of security, I'm going to look into how we can
store the password within the database differently. I
notice that the password is stored in clear-text within the
database. This is necessary because redMine needs to pass
it on to the repository.
First of all, even simply-encrypted would fair better than
leaving the password in clear-text. I'll look around to see
how other organizations are implementing encryption on
values that they'll need to know (not just simple hashing).
Also, another approach would be to have the SVN repository
password only stored for as long as needed (i.e. within the
session). This, too, would be encrypted and only asked for
once within a session. Personally, I feel that this is the
most secure way of handling this ... at least for my own
If anyone has any suggestions as to how they'd implement
this stuff, start up a forum post and we'll collaborate.
#4 Updated by Jean-Philippe Lang over 15 years ago
I've updated a few projects and didn't have any problem.
I can't see why you got an undefined method `password='
for #<Repository:0x312ce58> error if the password field
was added in the database and your app was properly restarted,
since this method is automatically defined by AR.
Let me know if you experience this problem again.
#5 Updated by Chris Grant over 15 years ago
Ok, I deleted the whole project and created a new one ... this
time, when adding
the SVN details (including login and password), the SVN credentials
and allow me to access SVN repository and details.
So, the problem seems to be limited to updating a current project
creating a new one.
#6 Updated by Chris Grant over 15 years ago
I've updated to the newest build, migrated the database and attempted
this new feature. First, I added the login and password to the
existing repository URL for the project but it did not update.
I disabled the
repository for the project which deleted it from the database.
After the entry
was removed from the database, I attempted to enable the repository,
providing a URL, login and password, but it threw an exception:
NoMethodError in ProjectsController#edit
undefined method `password=' for #<Repository:0x312ce58>
I hope you can make sense of this ... I see that you have the
idea of a
repository implemented in a few places and I'm sure you can nail
problem faster than I can make sense of it all. ;)
Thanks for adding this functionality so quickly!