subversion-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Zhakov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SVN-3926) add repository root url and uuid to saved auth data
Date Sat, 17 Oct 2015 18:27:05 GMT

    [ https://issues.apache.org/jira/browse/SVN-3926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14930427#comment-14930427
] 

Ivan Zhakov edited comment on SVN-3926 at 10/17/15 6:26 PM:
------------------------------------------------------------

Using realms gives us more flexibility than the repos_url+uuid scheme you are proposing. A
realm can map to one or more repositories.

I don't think we need to change this because people are making mistakes setting it up. This
just means the documentation may have to be improved.

If someone hosting Subversion doesn't offer per-repository realms that doesn't justify making
changes to Subversion either. The hoster should fix their offering. Or maybe multiple realms
was a premium option the user didn't want to pay for? :)



was (Author: stsp):
{noformat:nopanel=true}
Using realms gives us more flexibility than the repos_url+uuid scheme you are
proposing. A realm can map to one or more repositories.

I don't think we need to change this because people are making mistakes setting
it up. This just means the documentation may have to be improved.

If someone hosting Subversion doesn't offer per-repository realms that doesn't
justify making changes to Subversion either. The hoster should fix their
offering. Or maybe multiple realms was a premium option the user didn't want to
pay for? :)
{noformat}


> add repository root url and uuid to saved auth data
> ---------------------------------------------------
>
>                 Key: SVN-3926
>                 URL: https://issues.apache.org/jira/browse/SVN-3926
>             Project: Subversion
>          Issue Type: Improvement
>          Components: libsvn_subr
>    Affects Versions: trunk
>            Reporter: Stefan K√ľng
>             Fix For: 1.10-consider
>
>
> First reported here:
> http://svn.haxx.se/dev/archive-2011-02/0864.shtml
> Filing an issue so this won't get lost:
> Currently if the user want to have the auth data saved, it is saved in subversion\auth\svn.simple
(or another subfolder). But it is saved with the auth realm string. Of course that's the right
way to do it, but I would like to have other info saved as well, like the repo root url and/or
the repository uuid. And then some APIs that allow me to list the saved auth data, delete
a specific file, retrieve the login username (not the password, for obvious reasons).
> Use cases: users often want to login with a different username for a repository because
they're using someone elses workstation/laptop for a day or two or they use a shared workstation
but still want each commit assigned to the correct user (ugly, but happens more often than
you might think). Right now there's no way to find out which saved auth file
> corresponds to a specific repository. So either users have to delete all the saved auth
data for all repositories, or open each file in a text editor and then guess from the realm
string which is the right file. If the repo root url was saved as well, I could do this in
TSVN and show the user a list of repositories and have him chose the one to clear the auth
data for.
> Another use case: retrieving the saved username would be useful for e.g. the integration
with issue trackers. Usually the username is the same for the repository and the issue tracker
(most setups work that way). Currently there's no way to filter the list of issues by username
automatically for the issue tracker plugins because a username is not available. Using the
repo root url or repo uuid which can be read from a working copy, I could then read out the
saved username and provide that to the issue tracker plugins so they can filter for this username
by default and reduce the list of open issues to that user.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message