[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Offer re-prompt to change user authn after failed commit?

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Fri, 3 Feb 2017 10:53:11 -0800 (PST)

In TortoiseSVN 1.9.5, on a Windows 10 box [1], I needed to do a commit from an existing working copy, but on that machine, Tortoise only had cached authentication credentials for a read-only user for the repository in question.

"No problem," I thought, "It'll just fail the first commit attempt, because it will default first to the cached user creds, but then it will prompt me for a new username / password pair, the way the command-line client would, and let me commit with those."

That's not what happened. I right-clicked on the file and chose "TortoiseSVN Commit", and as expected the initial commit attempt failed... but that was it. There was no re-prompt interface at which I could enter a different username and password. The only client-side solution would have been to wipe out all the cached authentication credentials, which of course I didn't want to do (I didn't want to lose the creds for the read-only user, I just wanted to do this commit as another user.) The solution I actually used was to temporarily enable read-write for the original user on the repository side, commit, and then use propset to change the "svn:author" revprop. But that's obviously not ideal, and would have been impossible if I didn't have admin access to the repository.

Is there a re-prompt feature in TortoiseSVN and I just didn't manage to find it? Or if not, would this be a desirable feature to have? (I looked in the ChangeLog, the users@ archive, and in the bug tracker, and did not see any discussion of this enhancement.)

Best regards,
-Karl Fogel

[0] Details of my TortoiseSVN installation:

    TortoiseSVN 1.9.5, Build 27581 - 64 Bit, 2016/11/26 09:18:58
    Subversion 1.9.5, -release
    apr 1.5.2
    apr-util 1.5.4
    serf 1.3.9
    OpenSSL 1.0.2j 26 Sep 2016
    zlib 1.2.8
    SQLite 3.14.1 (wait, are they doing Π-based versioning?)

[1] In case anyone who knows me is on this list, which seems possible
    :-), and wonders what the heck I'm doing using a Windows machine,
    the answer is that we keep one around to check formatting of
    certain documents before sending them to customers. E.g., I might
    make a .docx or a .pptx using LibreOffice, but I've learned to
    make sure that it looks okay in Microsoft Office running on
    Windows before sending.

[2] http://stackoverflow.com/questions/1153489/how-to-change-users-in-tortoisesvn

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3206565

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2017-02-03 19:53:16 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.