Commit graph

609 commits

Author SHA1 Message Date
Markus Unterwaditzer
4f05962cb0 Merge remote-tracking branch 'origin/keyring_bugfix'
Fix #116
2014-09-09 17:49:06 +02:00
Markus Unterwaditzer
3bb6662e8e Add testcase 2014-09-09 17:48:36 +02:00
Christian Geier
753e730906 bugfix: save password with host in keyring
(the same way we try to recover it)
2014-09-09 14:10:37 +02:00
Markus Unterwaditzer
f9f1e37655 Properly mark a wart in code. 2014-09-06 01:51:36 +02:00
Markus Unterwaditzer
9e12e29db6 Properly deal with invalid filename characters
Fix #110
2014-09-03 20:35:31 +02:00
Markus Unterwaditzer
3d39526531 Allow file arg on netrc mock
On my machine, requests is trying to access it for some reason
2014-09-03 19:13:20 +02:00
Markus Unterwaditzer
add9f640b4 CalDAV: Explicitly exclude items
Excluding items without mimetype "text/calendar" becomes necessary when
listing items, because iCloud would re-send us the URL we issued the
REPORT request on, a collection, with a mimetype of
"httpd/unix-directory".

    debug: REPORT https://p28-caldav.icloud.com/8010146223/calendars/home/
    debug: {'Depth': 'infinity', 'Content-Type': 'application/xml; charset=UTF-8', 'User-Agent': 'vdirsyncer '}
    debug: <?xml version="1.0" encoding="utf-8" ?>
    debug:             <C:calendar-query xmlns:D="DAV:"
    debug:                 xmlns:C="urn:ietf:params:xml:ns:caldav">
    debug:                 <D:prop>
    debug:                     <D:getetag/>
    debug:                 </D:prop>
    debug:                 <C:filter>
    debug:
    debug:                 <C:comp-filter name="VCALENDAR">
    debug:                     <C:comp-filter name="VTODO">
    debug:
    debug:                     </C:comp-filter>
    debug:                 </C:comp-filter>
    debug:
    debug:                 </C:filter>
    debug:             </C:calendar-query>
    debug: Sending request...
    debug: 207
    debug: {'content-encoding': 'gzip', 'transfer-encoding': 'chunked', 'server': 'iCloudCalendarServer 14F4 1', 'last-modified': 'Tue, 02 Sep 2014 13:59:11 GMT', 'dav': '1, access-control, calendar-access, calend ar-schedule, calendar-auto-schedule, calendar-managed-attachments, calendarserver-sharing, calendarserve r-subscribed, calendarserver-home-sync', 'x-transaction-id': '7f311996-32b4-11e4-a6db-78e3b5058dc0', 'da te': 'Tue, 02 Sep 2014 15:19:13 GMT', 'x-responding-server': 'mr21p28ic-hpaf05163701 18 a63660a6f7d1a25b 5a7ed66dab0da843', 'content-type': 'text/xml'}
    debug: <?xml version='1.0' encoding='UTF-8'?><multistatus xmlns='DAV:'>
    debug:
    debug:   <response>
    debug:     <href>/8010146223/calendars/home/</href>
    debug:     <propstat>
    debug:       <prop>
    debug:          <getetag>"FT=-@RU=301785db-0889-442c-ab5d-03144258969a@S=30"</getetag>
    debug:         <getcontenttype>httpd/unix-directory</getcontenttype>
    debug:       </prop>
    debug:       <status>HTTP/1.1 200 OK</status>
    debug:     </propstat>
    debug:   </response>
    debug:
    debug:   <response>
    debug:     <href>/8010146223/calendars/home/412580F4-7A0A-480D-BA99-73260B921E5D.ics</href>
    debug:     <propstat>
    debug:       <prop>
    debug:         <getetag>"C=30@U=301785db-0889-442c-ab5d-03144258969a"</getetag>
    debug:         <getcontenttype>text/calendar</getcontenttype>
    ...
2014-09-02 17:25:09 +02:00
Markus Unterwaditzer
4426fbc1d3 Merge pull request #109 from geier/master
README: build.sh command names changed
2014-09-01 17:44:40 +02:00
Christian Geier
406392db5d README: build.sh command names changed 2014-09-01 17:43:27 +02:00
Markus Unterwaditzer
686441b5ab Merge pull request #106 from untitaker/tls_fingerprints
TLS fingerprints (2.1)
2014-08-30 18:59:26 +02:00
Markus Unterwaditzer
0bc03666ba Fix dead doubleclick testcase
click.CliRunner swallowed all exceptions, also AssertionError
2014-08-30 17:06:01 +02:00
Markus Unterwaditzer
2bbc92534d Some sync refactoring
- Use only one dict for storing all temporary state of a storage
- Rename functions to be internal
2014-08-30 16:23:27 +02:00
Thomas Weißschuh
fa2f7ca540 always serve something, else werkzeug blows up 2014-08-29 18:44:23 +00:00
Thomas Weißschuh
23ae6eb03f we need the git version of werkzeug for ssl support on py3 2014-08-29 17:24:27 +00:00
Markus Unterwaditzer
69505f4c61 Fix link again 2014-08-27 17:46:04 +02:00
Markus Unterwaditzer
7e606f6123 Update link 2014-08-27 17:42:13 +02:00
Markus Unterwaditzer
b3e6f22518 Version 0.2.5 2014-08-27 14:06:55 +02:00
Markus Unterwaditzer
96b1c08804 doubleclick: sanity check re multiple contexts 2014-08-26 00:43:44 +02:00
Markus Unterwaditzer
c78ac67ba9 Merge pull request #107 from untitaker/reuse_passwords
Reuse passwords
2014-08-24 19:55:44 +02:00
Markus Unterwaditzer
f6088fd036 Give up on proper signal handling 2014-08-23 10:37:42 +02:00
Markus Unterwaditzer
ed6d75f1db Add locks for click.confirm
I assumed click.confirm uses click.prompt, but it doesn't (version 3.1)
2014-08-22 20:06:37 +02:00
Markus Unterwaditzer
c7e6acc0ba Rewrite get_password
Only fetching by hostname, no bruteforce algorithm for system keyring
2014-08-22 20:06:37 +02:00
Markus Unterwaditzer
25843580e0 Switch to threading 2014-08-22 20:06:37 +02:00
Markus Unterwaditzer
f5a701a920 Create global context 2014-08-22 13:06:22 +02:00
Markus Unterwaditzer
9816e0140d Require click>=3.1
See https://github.com/mitsuhiko/click/issues/200
2014-08-21 17:38:52 +02:00
Markus Unterwaditzer
b093989220 Refine testcase again 2014-08-21 01:26:00 +02:00
Markus Unterwaditzer
63c990a320 Properly remove monkeypatching in radicale tests 2014-08-21 00:56:13 +02:00
Markus Unterwaditzer
b909d525f8 Fix broken testcase 2014-08-21 00:51:25 +02:00
Markus Unterwaditzer
e8e55de165 Add some tests 2014-08-21 00:26:48 +02:00
Thomas Weißschuh
f61ef5318d remove superfluous method override 2014-08-20 22:04:35 +00:00
Markus Unterwaditzer
44c1d84a7e Fix style errors 2014-08-21 00:01:17 +02:00
Markus Unterwaditzer
c9c2a43f43 Rename tls_fingerprint to verify_fingerprint 2014-08-20 23:39:26 +02:00
Markus Unterwaditzer
5509868958 Revert "Revert "Tls fingerprints"" 2014-08-20 18:43:34 +02:00
Markus Unterwaditzer
d30437b8fe Merge pull request #104 from untitaker/revert-102-tls_fingerprints
Revert "Tls fingerprints"
2014-08-20 18:39:11 +02:00
Markus Unterwaditzer
c86ad88c96 Revert "Tls fingerprints" 2014-08-20 18:38:59 +02:00
Markus Unterwaditzer
ec708ea273 Fix typo 2014-08-19 23:04:33 +02:00
Markus Unterwaditzer
eb0833e180 Make CI scripts more readable. 2014-08-19 22:56:40 +02:00
Markus Unterwaditzer
d0a2331d86 Don't produce overlapping output or prompts.
See #96 and #101
2014-08-19 15:54:25 +02:00
Markus Unterwaditzer
73b8381ab8 Merge pull request #102 from t-8ch/tls_fingerprints
Tls fingerprints

Fix #100
2014-08-18 23:51:23 +02:00
Thomas Weißschuh
8c77c57d4c document tls_fingerprint 2014-08-18 21:08:11 +00:00
Thomas Weißschuh
0de3102c2c add tls_fingerprint to storage.dav.DavStorage 2014-08-18 21:02:46 +00:00
Thomas Weißschuh
c9cfd0f1ed s/CONTRIBUTORS.rst/AUTHORS.rst/ 2014-08-18 19:21:00 +00:00
Thomas Weißschuh
9d034b7ed6 add myself to AUTHORS.rst 2014-08-18 19:20:25 +00:00
Thomas Weißschuh
cd72de610a add tls_fingerprint support to the http backend 2014-08-18 19:18:30 +00:00
Thomas Weißschuh
af06e24f45 enable tls_fingerprint for the dav backend 2014-08-18 19:18:30 +00:00
Thomas Weißschuh
56d566e55a add a tls_prefix parameter to utils.request
This assumes that a backend only ever connects to a single domain, because we
set the fingerprint on the whole session
2014-08-18 19:17:55 +00:00
Thomas Weißschuh
d5e8be4979 [tests] directly monkeypatch requests Session
need for later changes
2014-08-18 19:11:07 +00:00
Markus Unterwaditzer
a321038a1d Don't try to show pretty error messages for ^C 2014-08-18 18:39:19 +02:00
Markus Unterwaditzer
bb4939bfdb Validate general section.
Fix #100
2014-08-18 18:33:58 +02:00
Markus Unterwaditzer
ea756175d3 Raise proper error messages when using discovery
Init arg introspection didn't properly occur when the user used
collection discovery to create the storages. Instead the raw exception
from the inside of s.discover bubbled up.
2014-08-18 17:13:15 +02:00