All of lore.kernel.org
 help / color / mirror / Atom feed
* manual http authorization (no netrc)
@ 2011-01-06 17:20 tom fogal
  2011-01-09 16:35 ` Tay Ray Chuan
  0 siblings, 1 reply; 3+ messages in thread
From: tom fogal @ 2011-01-06 17:20 UTC (permalink / raw)
  To: git

I'm getting authorization errors when I lack a .netrc for an http-based
server.  Specifically:

  tf@shigeru tmp $ git clone http://myhost:port/git/io.git
  Cloning into io...
  Username:
  Password:
  error: The requested URL returned error: 401 (curl_result = 22, http_code =
  401, sha1 = 9c201da4d64e2fd178935b9ebbd6e110a97578d4)
  error: Unable to find 9c201da4d64e2fd178935b9ebbd6e110a97578d4 under
  http://shigeru.sci.utah.edu:1234/git/io.git
  Cannot obtain needed blob 9c201da4d64e2fd178935b9ebbd6e110a97578d4
  while processing commit b1853d6f6a54cf22e259a75f77770eef53b8cb38.
  error: Fetch failed.

I did try multiple times; the username/password combo is correct :)

A friend of mine is also experiencing the same problem.  The server is
running git 1.5.6.5; my client is 1.7.3.4, and I'm not sure what the
other party's is, but it's likely to be recent.

Everything works fine if we just create a ~/.netrc and set things up
appropriately. `curl-config --version' says "libcurl 7.18.2" on my
workstation.

What have we configured incorrectly?

-tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: manual http authorization (no netrc)
  2011-01-06 17:20 manual http authorization (no netrc) tom fogal
@ 2011-01-09 16:35 ` Tay Ray Chuan
  2011-01-09 19:49   ` tom fogal
  0 siblings, 1 reply; 3+ messages in thread
From: Tay Ray Chuan @ 2011-01-09 16:35 UTC (permalink / raw)
  To: tfogal; +Cc: git

On Fri, Jan 7, 2011 at 1:20 AM, tom fogal <tfogal@sci.utah.edu> wrote:
> I'm getting authorization errors when I lack a .netrc for an http-based
> server.  Specifically:
>
>  tf@shigeru tmp $ git clone http://myhost:port/git/io.git
>  Cloning into io...
>  Username:
>  Password:
>  error: The requested URL returned error: 401 (curl_result = 22, http_code =
>  401, sha1 = 9c201da4d64e2fd178935b9ebbd6e110a97578d4)
>  error: Unable to find 9c201da4d64e2fd178935b9ebbd6e110a97578d4 under
>  http://shigeru.sci.utah.edu:1234/git/io.git
>  Cannot obtain needed blob 9c201da4d64e2fd178935b9ebbd6e110a97578d4
>  while processing commit b1853d6f6a54cf22e259a75f77770eef53b8cb38.
>  error: Fetch failed.
>
> I did try multiple times; the username/password combo is correct :)

hmm, can you try passing username and password in this manner

  http://<user>:<pwd>@server:port/

?

Also, does your username/password contain special, non-alphanumeric
characters? I remember there was a change to how we handled those some
time ago.

-- 
Cheers,
Ray Chuan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: manual http authorization (no netrc)
  2011-01-09 16:35 ` Tay Ray Chuan
@ 2011-01-09 19:49   ` tom fogal
  0 siblings, 0 replies; 3+ messages in thread
From: tom fogal @ 2011-01-09 19:49 UTC (permalink / raw)
  To: Tay Ray Chuan; +Cc: git

Tay Ray Chuan <rctay89@gmail.com> writes:
> On Fri, Jan 7, 2011 at 1:20 AM, tom fogal <tfogal@sci.utah.edu> wrote:
> > I'm getting authorization errors when I lack a .netrc for an
> > http-based server. Specifically:
> >
> > =A0tf@shigeru tmp $ git clone http://myhost:port/git/io.git
> > =A0Cloning into io...
> > =A0Username:
> > =A0Password:
> > =A0error: The requested URL returned error: 401 (curl_result =3D 22, http=
> > _code =3D
[snip]
> hmm, can you try passing username and password in this manner
> 
>   http://<user>:<pwd>@server:port/
> 
> ?

Yes.  That worked!  Though it was very quiet; the only message I
got was "Cloning into io..."; no "remote:" messages or "Receiving "
messages.  That's neither here nor there, though.

> Also, does your username/password contain special, non-alphanumeric
> characters? I remember there was a change to how we handled those
> some time ago.

Nope, both would encode fine in 7bit ascii.

Thanks much for the workaround,

-tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-09 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-06 17:20 manual http authorization (no netrc) tom fogal
2011-01-09 16:35 ` Tay Ray Chuan
2011-01-09 19:49   ` tom fogal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.