Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list-folders can't find folders on SOGo #112

Open
ghost opened this issue Apr 1, 2017 · 0 comments
Open

list-folders can't find folders on SOGo #112

ghost opened this issue Apr 1, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2017

ASynK won't list Folders on a SOGo server (https://sogo.nu/) :

$ python asynk.py --db cd --op=list-folders --user-dir=~/.config/asynk --store https://sogo.servermx.com/SOGo/dav/me@mydomain.com/Contacts
Applying base config from file /home/myles/gits/github/ASynK/config/config_v8.json...
Applying base config from file /home/myles/gits/github/ASynK/config/config_v8.json...done
Applying user customizations from file /home/myles/.config/asynk/config.py...
Applying user customizations from file /home/myles/.config/asynk/config.py...done
[20:59:41.699 INFO] Debug logging to file: /home/myles/.config/asynk/logs/asynk_logs.2017-04-01.20-59-41.699019
[20:59:41.725 INFO] Deleting log files older than 7 days, if any...
[20:59:41.729 INFO] Deleting log files older than 7 days, if any...done
Please enter username for cd1: MY_USERNAME
Enter password for cd1: MY_PASSWORD
[21:00:20.302 INFO] Logging into CardDAV server: https://sogo.servermx.com/SOGo/dav/me@mydomain.com/Contacts - user: me@mydomain.com...
Found current principal path: /SOGo/dav/me%40mydomain.com
[21:00:21.784 INFO] Logging into CardDAV server: https://sogo.servermx.com/SOGo/dav/me@mydomain.com/Contacts - user: me@mydomain.com... done.
[21:00:21.785 INFO] Listing all folders in PIMDB cd...
[21:00:21.785 INFO] 1: Contacts. Name: personal; GID: /SOGo/dav/me@mydomain.com/Contacts/personal/;
[21:00:21.786 INFO] Listing all folders in PIMDB cd...done

The log file:

[20:59:41.724 DEBUG] Command line: "asynk.py --db cd --op=list-folders --user-dir=~/.config/asynk --store https://sogo.servermx.com/SOGo/dav/me@mydomain.com/Contacts"
[20:59:41.725 INFO] Deleting log files older than 7 days, if any...
[20:59:41.729 INFO] Deleting log files older than 7 days, if any...done
[21:00:20.302 INFO] Logging into CardDAV server: https://sogo.servermx.com/SOGo/dav/me@mydomain.com/Contacts - user: me@mydomain.com...
[21:00:20.303 DEBUG] PIMDB cd does not have email_domains.
[21:00:20.304 DEBUG] PIMDB cd does not have postal_map
[21:00:20.304 DEBUG] PIMDB cd does not have notes_map
[21:00:20.304 DEBUG] PIMDB cd does not have phones_map
[21:00:20.306 DEBUG] Sending request OPTIONS to server sogo.servermx.com/SOGo/dav/me%40mydomain.com/Contacts...
[21:00:20.627 DEBUG] Sending Request URL: /SOGo/dav/me%40mydomain.com/Contacts Method: OPTIONS
[21:00:20.668 DEBUG] Received Response: HTTP/1.1 401 Authorization Required

[21:00:20.669 DEBUG] Sending request OPTIONS to server sogo.servermx.com/SOGo/dav/me%40mydomain.com/Contacts...
[21:00:20.669 DEBUG] Sending Request URL: /SOGo/dav/me%40mydomain.com/Contacts Method: OPTIONS
[21:00:20.752 DEBUG] Received Response: HTTP/1.1 200 OK

[21:00:20.753 DEBUG] Sending Request URL: /SOGo/dav/me%40mydomain.com/Contacts Method: PROPFIND
[21:00:20.866 DEBUG] Received Response: HTTP/1.1 207 Multi-Status

[21:00:21.075 DEBUG] Sending Request URL: /SOGo/dav/me%40mydomain.com Method: PROPFIND
[21:00:21.211 DEBUG] Received Response: HTTP/1.1 207 Multi-Status

[21:00:21.219 DEBUG] Found principal:
[21:00:21.220 DEBUG] CDPIMDB.fetch_folders(): Begin
[21:00:21.220 DEBUG] Exploring following root paths: ['/SOGo/dav/me@mydomain.com/Contacts/']
[21:00:21.220 DEBUG] Processing root path /SOGo/dav/me@mydomain.com/Contacts/
[21:00:21.364 DEBUG] Sending Request URL: /SOGo/dav/me%40mydomain.com/Contacts/ Method: PROPFIND
[21:00:21.496 DEBUG] Received Response: HTTP/1.1 207 Multi-Status

[21:00:21.503 DEBUG] Found following properties: ['/SOGo/dav/me%40mydomain.com/Contacts/', '/SOGo/dav/me%40mydomain.com/Contacts/personal/'].
[21:00:21.503 DEBUG] Resource type of prop: <Element '{DAV:}resourcetype' at 0x7ff12f90f950>.
[21:00:21.504 DEBUG] Found Folder personal in URI "/SOGo/dav/me@mydomain.com/Contacts/personal/"
[21:00:21.504 DEBUG] CDPIMDB.fetch_folders(): Done.
[21:00:21.648 DEBUG] Sending Request URL: /SOGo/dav/me%40mydomain.com/Contacts/ Method: PROPFIND
[21:00:21.779 DEBUG] Received Response: HTTP/1.1 207 Multi-Status

[21:00:21.784 DEBUG] Coud not find default adbk Property. Trying to use first of the available contacts folders
[21:00:21.784 INFO] Logging into CardDAV server: https://sogo.servermx.com/SOGo/dav/me@mydomain.com/Contacts - user: me@mydomain.com... done.
[21:00:21.785 INFO] Listing all folders in PIMDB cd...
[21:00:21.785 INFO] 1: Contacts. Name: personal; GID: /SOGo/dav/me@mydomain.com/Contacts/personal/;
[21:00:21.786 INFO] Listing all folders in PIMDB cd...done

Cadaver finds the Folders correctly:

$ cadaver https://sogo.servermx.com/SOGo/dav/me@mydomain.com
Authentication required for SOGo on server 'sogo.servermx.com':
Username: me@mydomain.com
Password:
dav:/SOGo/dav/me@mydomain.com/> ls
Listing collection `/SOGo/dav/me@mydomain.com/': succeeded.
Coll: Calendar 0 Mar 31 18:53
Coll: Contacts 0 Mar 31 18:53
Coll: Mail 0 Mar 31 18:53
freebusy.ifb 0 Mar 31 18:53
dav:/SOGo/dav/me@mydomain.com/> ls Contacts
Listing collection '/SOGo/dav/me@mydomain.com/Contacts/': succeeded.
Coll: directory 0 Mar 31 18:54
Coll: mob 0 Mar 31 18:54
Coll: mob2 0 Mar 31 18:54
Coll: personal 0 Mar 31 18:54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants