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

Re: Cygwin's svn client cannot write to a windows https repository

From: Steven Woody <narkewoody_at_gmail.com>
Date: Fri, 28 Aug 2009 11:06:26 +0800

On Fri, Aug 28, 2009 at 3:43 AM, Andrey Repin <anrdaemon_at_freemail.ru> wrote:

> Greetings, Steven Woody!
>
> >> > The repository seems running on a Windows machine. It use https as
> >> > connection protocol.
> >>
> >> > When using Windows svn client (
> >> > http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
> ),
> >> > there is no problem, it even not ask for a user name and password.
> But
> >> > when I use the svn client (1.6.4) comes from cygwin, the read
> operations
> >> > (e.g. ls, co) get no problem, but and write operation such as 'mkdir'
> >> will
> >> > always result in an error:
> >>
> >> > svn: Server sent unexpected return value (403 Forbidden) in response
> to
> >> > MKACTIVITY request for
> >> > '/svn/LowCost/!svn/act/aaf33518-92b5-11de-8af7-c3c035929cdc'
> >>
> >>
> >> > What I did
> >> > has nothing to do with local working copy, since i am doing the
> >> > 'mkdir' on the remote URL, there is no local copy involved at all.
> >>
> >> Can you do exactly the same command with native windows client?
>
>
> > Yes, I can do it with the native windows client without any problem.
>
>
> >> > Can anyone give me some help? Thanks.
> >>
> >> Cygwin client likely store it's configuration files in different place
> than
> >> native Windows client.
> >> Check that, and make sure your configuration for Cygwin SVN client
> >> identical
> >> to Windows one.
>
>
> > Okay, I will do it tomorrow when I in the office computer. I've already
> > knew that where is the configuration files for cygwin svn. but could you
> > tell me where is the configuration files for my native windows svn? My
> > windows svn is the CollabNet from tigris.org.
>
> It's the same for all Windows clients, that are not built against
> cygwin-1.dll
> %AppData%/Subversion
>
> >>
> >> Also try passing name/password in commandline along with --no-auth-cache
> >> --non-interactive
> >>
>
> > Actually, I am sure what is the user name and password. I remembered
> I've
> > tried by using my windows's domain account. But it did not work. You
> know,
> > for our repository accessing, there is no user name password required, i
> > guess it is using the OS's user name to do the authontication. If my
> > windows account is domain\tom, and password is 'hello', so can you give
> me
> > a suggest on how should I provide this to the svn client?
>
> Ahha, this could be a problem, actually.
> I haven't tried Cygwin SVN with ntlm authentication.
> If your server does not have any fallback methods of authentication, it
> would
> not work at all. Still, needs check, though.
>
>
> --
> WBR,
> Andrey Repin (anrdaemon_at_freemail.ru) 27.08.2009, <23:40>
>
> Sorry for my terrible english...
>
>

Hi, everyone

After some tests, I found the cause, but I don't know how to explain
it and how to fix it.

After I removed the whole configuration directory for both the windows and
the cygwin svn client, they both begin to ask me a username/password when i
do the first svn
operation. After I supplied the username/password, both client
re-created the configuration directory and put a file
'f95bc30e725c3e318b1348ab3a6f5cbd'
in the 'auth/svn.simple' subdirectory. But the contents of the file
generated by both clients are different even though i am operating on the
same server and do the same operation with the same username/password!

The difference is only one line for the file, it looks like an encoded
password. Now I show you the the diff output as below. (the first file is
the cygwin's file, the second one is the windows native client's file)

*** svn.simple/f95bc30e725c3e318b1348ab3a6f5cbd Fri Aug 28 10:52:50 2009
--- /cygdrive/c/Documents and Settings/wuwo/Application
Data/Subversion/auth/svn
.simple/f95bc30e725c3e318b1348ab3a6f5cbd Fri Aug 28 10:46:36 2009
***************
*** 5,11 ****
  K 8
  password
  V 272
!
AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA0+7yvxtC7ESls5Ru0ooxxwAAAAAyAAAAYQB1AHQAaABfAH
MAdgBuAC4AcwBpAG0AcABsAGUALgB3AGkAbgBjAHIAeQBwAHQAAAADZgAAqAAAABAAAAC3Nas5nuBDpj
o0Lgh5b04zAAAAAASAAACgAAAAEAAAABpnG+U2uFdB3YXZNULKqRAQAAAApCZDibnqOxNpMVY3Y3dKgR
QAAAC8yRO7RW7FUg9eNaYXP/hcNWtIMA==
  K 15
  svn:realmstring
  V 57
--- 5,11 ----
  K 8
  password
  V 272
!
AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA0+7yvxtC7ESls5Ru0ooxxwAAAAAyAAAAYQB1AHQAaABfAH
MAdgBuAC4AcwBpAG0AcABsAGUALgB3AGkAbgBjAHIAeQBwAHQAAAADZgAAqAAAABAAAAA4INy7/rVapk
TewfVfYMJ1AAAAAASAAACgAAAAEAAAALNEaxon0sWikNziZa6reLMQAAAA+ktHaRAmO1EVFPpiP7DMNB
QAAABzexq19aZmOa7Zsd+DIZqRkZHAKg==
  K 15
  svn:realmstring
  V 57

Is this enough to you to do an analysis? Thanks in advance!

-- 
Life is the only flaw in an otherwise perfect nonexistence
   -- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (narkewoody@gmail.com)
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2388100
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-28 08:45:58 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.