[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] Re: Re: Re: First restore failing
From: |
Kenneth Loafman |
Subject: |
Re: [Duplicity-talk] Re: Re: Re: First restore failing |
Date: |
Mon, 10 Mar 2008 07:50:44 -0500 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20080227) |
Peter Schuller wrote:
>>> What I still don't get for the life of me, is why it is behaving as
>>> if 'https' was an unknown scheme...
>> Well, what determines if something is a known scheme or not?
>
> urlparse has an internal list of various attributes associated with certain
> schemes. One of these attributes determines whether the component after
> scheme:// is a hostname. This is determined by affirmatively stating that a
> particular scheme is of this form; the default otherwise is to treat it the
> other way around.
>
> Without actually looking into the standard, I am personally slightly peeved
> by
> this behavior and would prefer to have unknown schemes default to assuming a
> hostname, since this is much more common.
>
> However, the bundled version of urlparse_2_5 *does* have https listed:
>
> uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
> 'imap', 'wais', 'file', 'mms', 'https', 'shttp',
> 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
> 'svn', 'svn+ssh', 'sftp']
The problem is that uses_netloc is overridden in line 48 of backends.py
to match only the URLs that duplicity is interested in.
To fix this behavior, import urlparse_2_5 as something other than
urlparser for use in parsing webDAV internal URLs.
...Ken
signature.asc
Description: OpenPGP digital signature
- [Duplicity-talk] Re: Re: First restore failing, (continued)
- Re: [Duplicity-talk] Re: Re: First restore failing, Darik Horn, 2008/03/08
- Re: [Duplicity-talk] Re: Re: First restore failing, Peter Schuller, 2008/03/09
- [Duplicity-talk] Re: Re: Re: First restore failing, Thorsten Kampe, 2008/03/09
- Re: [Duplicity-talk] Re: Re: Re: First restore failing, Peter Schuller, 2008/03/09
- [Duplicity-talk] Re: Re: Re: Re: First restore failing, Thorsten Kampe, 2008/03/10
- Re: [Duplicity-talk] Re: Re: Re: Re: First restore failing, Peter Schuller, 2008/03/10
- Re: [Duplicity-talk] Re: Re: Re: First restore failing,
Kenneth Loafman <=
- Re: [Duplicity-talk] Re: Re: Re: First restore failing, Peter Schuller, 2008/03/10
- Re: [Duplicity-talk] Re: Re: Re: First restore failing, Peter Schuller, 2008/03/14
- [Duplicity-talk] Re: Re: Re: Re: First restore failing, Thorsten Kampe, 2008/03/15
- Re: [Duplicity-talk] Re: Re: Re: Re: First restore failing, Peter Schuller, 2008/03/15