kyosun / svnx

Automatically exported from code.google.com/p/svnx
0 stars 0 forks source link

no authentication in working copy commands #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On version 1.2b i'm getting a strange problem authentication with the
internal subversion server. reverting to the version 1.1, the problem
disappears.

>What steps will reproduce the problem?
1. checkout a repository via http, with basic authentication
2. select the working copy
3. selecting the repository and trying to update, will work as aspect
4. trying to update the working copy will give authentication error

>What is the expected output? What do you see instead?
svnx is reporting that the server could not do the basic authentication. on
version 1.1 its working fine and on version 1.2b, but in the repository, it
also work. only fails in access from the working copy

>What version of the product are you using? On what operating system?
svnx 1.2b, MacOSX Snow Leopard

>Please provide any additional information below.
i tried to checkout a new repository, with success, but again, update will
fail.

checking the server logs, i see valid requests, with authentication from
the repository windows, but only one request, without any authentication,
from the working copy window:

OK:
10.16.0.198 - dleite [27/Apr/2010:15:20:46 +0100] "OPTIONS /azimute
HTTP/1.1" 200 187 "-" "SVN/1.6.5 (r38866) neon/0.28.3"
10.16.0.198 - dleite [27/Apr/2010:15:22:53 +0100] "PROPFIND
/azimute-mr/!svn/vcc/default HTTP/1.1" 207 453 "-" "SVN/1.6.9 (r901367)
neon/0.28.6"
10.16.0.198 - dleite [27/Apr/2010:15:22:53 +0100] "REPORT
/azimute-mr/!svn/bc/8 HTTP/1.1" 200 2634 "-" "SVN/1.6.9 (r901367) neon/0.28.6"

FAILED:
10.16.0.198 - - [27/Apr/2010:15:23:08 +0100] "OPTIONS /azimute-mr HTTP/1.1"
401 527 "-" "SVN/1.6.9 (r901367) neon/0.28.6"

from the tcpdump:

OPTIONS /azimute-mr HTTP/1.1

Host: srv-webtest.xxxxxx.pt

User-Agent: SVN/1.6.9 (r901367) neon/0.28.6

Keep-Alive: 

Connection: TE, Keep-Alive

TE: trailers

Content-Type: text/xml

Accept-Encoding: gzip

DAV: http://subversion.tigris.org/xmlns/dav/svn/depth

DAV: http://subversion.tigris.org/xmlns/dav/svn/mergeinfo

DAV: http://subversion.tigris.org/xmlns/dav/svn/log-revprops

Content-Length: 104

Accept-Encoding: gzip

<?xml version="1.0" encoding="utf-8"?><D:options
xmlns:D="DAV:"><D:activity-collection-set/></D:options>HTTP/1.1 401
Authorization Required

Date: Tue, 27 Apr 2010 14:41:22 GMT

Server: Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/4.4.4-8+etch6

WWW-Authenticate: Basic realm="Repositorio de Subversion azimute-mr"

Content-Length: 527

Keep-Alive: timeout=15, max=100

Connection: Keep-Alive

Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/4.4.4-8+etch6 Server at
srv-webtest.xxxxxxxxxx.pt Port 80</address>
</body></html>

So, as far i can see, svnx 1.2b isn't sending the authentication with the
commands executed from the working copy window

Original issue reported on code.google.com by dmotale...@gmail.com on 27 Apr 2010 at 2:53

GoogleCodeExporter commented 8 years ago
The only reason I can think of that svnX would not send authentication info is 
if it had not been entered.
Also svnX 1.1 may work when svnX 1.2b1 does not (or vice versa) due to only one 
having been authorised to 
access you Keychain.
[Search for 'svn' in Keychain Access & look in the Access Control tab.]

Select your WC in the Working Copies window & click the edit button (top-right).
Check that the 'User' & 'Password' fields are correct.  Are they?

Open the Activity window, click 'info' & re-execute the update.
Does the `svn update` command include correct --username *** & --password *** 
info?
What does it show?  And what does the Activity window's log drawer show?

What version of Subversion is displayed in the Preferences window
& what is the state of the 'Call Subversion libraries directly' checkbox?

Original comment by chris...@gmail.com on 27 Apr 2010 at 4:39

GoogleCodeExporter commented 8 years ago
Due to inability to reproduce, no similar reports & a lack of response I'm 
going to put this down to user error.

Original comment by chris...@gmail.com on 6 May 2010 at 5:56