bugGNU arch -- a revision control system - Bugs: bug #8005, Webdav authentication doesn't work

 
 

bug #8005: Webdav authentication doesn't work

Submitted by:  None
Submitted on:  Thu 04 Mar 2004 12:01:45 PM UTC  
 
Category: tlaSeverity: 3 - Normal
Item Group: bugStatus: None
Privacy: PublicOpen/Closed: Open
Release: 1.2
Fixed Release: 
Merge Request?: None
Your Archive Name: 
Your Archive Location: 
Assigned to: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 04 Mar 2004 01:16:16 PM UTC, comment #1:

OK, I've found it !!

The str_cpy_n function in str.c is buggy :-(

Please, apply the following patch :

--- str.c~ Wed Feb 11 00:17:10 2004
+++ str.c Thu Mar 4 14:14:29 2004
@@ -540,6 +540,7 @@
to++ = from++;
--n;
}
+ *to = 0;
}
while (n--)
*to++ = 0;

Thanks,

Matthieu.

Anonymous
Thu 04 Mar 2004 12:01:45 PM UTC, original submission:

I have a working installation of tla 1.2.

Local access to an archive works fine.

Remote access through webdav works when password authentication is disabled.

My webdav server works with password authentication, I'm able to access it from windows explorer for exemple.

Now, I'm trying to use tla with authentificated webdav, but I get the following error :

$ tla archives
Matthieu.Moy@imag.fr--archive
http://user:password@www-verimag.imag.fr/path/to/archive
$ tla get hello--mainline--1
webdav error: 401 Unauthorized

I've played a little with gdb : The error appears in the file pfs-dav.c:698:

if (pfs->sess_opts.dav_class1) /* if the server supports DAV */
{
if ((ne_err = ne_simple_propfind (pfs->sess, dir, NE_DEPTH_ONE, ls_props, NULL, NULL)))
{
==> safe_printfmt (2, "webdav error: %s\n", ne_get_error (pfs->sess));
exit (2);
}
}

But a bit earlier, in pfs-dav.c:269

if (root_path)
==> dav_client_cwd (answer, root_path);

The variable auth has the correct value (user and password are set).

Do you have an idea of what's happening ?

What can I do more to give more information ?

Thanks in advance.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup