Unable to connec tto owncloud contacts using caldavclient library
I am unable to connect to a owncloud carddav account using runshell like I am able to do with a calendar server installation. Has anyone had any success? I tried: ./runshell.py --server https://unhammer.org/owncloud/index.php/carddav/principals/skarra/ --user skarra --pswd Initially there is no message or error. All commands fail with a 405 Any clues?
Add --logging when running the tool and see what http requests are being sent. -- Cyrus Daboo (Tapped out on my iPhone)
On Jun 28, 2013, at 8:59 PM, Sriram Karra <karra.etc@gmail.com> wrote:
I am unable to connect to a owncloud carddav account using runshell like I am able to do with a calendar server installation. Has anyone had any success?
I tried:
./runshell.py --server https://unhammer.org/owncloud/index.php/carddav/principals/skarra/ --user skarra --pswd
Initially there is no message or error. All commands fail with a 405
Any clues? _______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/calendarserver-dev
I started the shell with the -l flag, and then issued a single ls command at the prompt. The results logs are in the attachment. I can see some strange goings on, but no idea what to do to fix it up... -Sriram On Sat, Jun 29, 2013 at 6:38 AM, Cyrus Daboo <cdaboo@apple.com> wrote:
Add --logging when running the tool and see what http requests are being sent.
-- Cyrus Daboo (Tapped out on my iPhone)
On Jun 28, 2013, at 8:59 PM, Sriram Karra <karra.etc@gmail.com> wrote:
I am unable to connect to a owncloud carddav account using runshell like I am able to do with a calendar server installation. Has anyone had any success?
I tried:
./runshell.py --server https://unhammer.org/owncloud/index.php/carddav/principals/skarra/ --user skarra --pswd
Initially there is no message or error. All commands fail with a 405
Any clues?
_______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/calendarserver-dev
Hi, Can anyone spot waht's going wrong with the caldavclient talking to an owncloud installation? I had sent some logs with my previous email. Regards, Sriram On Sat, Jun 29, 2013 at 11:38 AM, Sriram Karra <karra.etc@gmail.com> wrote:
I started the shell with the -l flag, and then issued a single ls command at the prompt. The results logs are in the attachment.
I can see some strange goings on, but no idea what to do to fix it up...
-Sriram
On Sat, Jun 29, 2013 at 6:38 AM, Cyrus Daboo <cdaboo@apple.com> wrote:
Add --logging when running the tool and see what http requests are being sent.
-- Cyrus Daboo (Tapped out on my iPhone)
On Jun 28, 2013, at 8:59 PM, Sriram Karra <karra.etc@gmail.com> wrote:
I am unable to connect to a owncloud carddav account using runshell like I am able to do with a calendar server installation. Has anyone had any success?
I tried:
./runshell.py --server https://unhammer.org/owncloud/index.php/carddav/principals/skarra/ --user skarra --pswd
Initially there is no message or error. All commands fail with a 405
Any clues?
_______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/calendarserver-dev
On Jul 5, 2013, at 7:44 PM, Sriram Karra <karra.etc@gmail.com> wrote:
Hi, Can anyone spot waht's going wrong with the caldavclient talking to an owncloud installation? I had sent some logs with my previous email.
Hi, From near the end of the log, we see that you ran ‘ls’ with a current working directory of “/“ / > ls
<-------- BEGIN HTTP CONNECTION --------> Server: unhammer.org
<-------- BEGIN HTTP REQUEST --------> PROPFIND / HTTP/1.1
and the error message returned from the server was:
The PROPFIND method is not allowed for the requested URL.
Using ‘ls’ in the shell requires the use of the PROPFIND method, which might be rightfully disabled by the server for on “/“. Try changing the working directory to your calendar home first. The shell includes a “calendars” command to do this for you. An example usage is shown below - note the change in the prompt when the cwd changes.
{18} andre@foci [ccs/CalDAVClientLibrary] % ./runshell.py --server=https://ssical.apple.com:8443 --user=dre Password: Found current principal path: /principals/__uids__/B6D75AB6-63D9-433F-850D-A2FC447FF23C/ / > calendars /calendars/__uids__/B6D75AB6-63D9-433F-850D-A2FC447FF23C/ >
HTH, -dre
Regards, Sriram
On Sat, Jun 29, 2013 at 11:38 AM, Sriram Karra <karra.etc@gmail.com> wrote:
I started the shell with the -l flag, and then issued a single ls command at the prompt. The results logs are in the attachment.
I can see some strange goings on, but no idea what to do to fix it up...
-Sriram
On Sat, Jun 29, 2013 at 6:38 AM, Cyrus Daboo <cdaboo@apple.com> wrote: Add --logging when running the tool and see what http requests are being sent.
-- Cyrus Daboo (Tapped out on my iPhone)
On Jun 28, 2013, at 8:59 PM, Sriram Karra <karra.etc@gmail.com> wrote:
I am unable to connect to a owncloud carddav account using runshell like I am able to do with a calendar server installation. Has anyone had any success?
I tried:
./runshell.py --server https://unhammer.org/owncloud/index.php/carddav/principals/skarra/ --user skarra --pswd
Initially there is no message or error. All commands fail with a 405
Any clues? _______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/calendarserver-dev
_______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/calendarserver-dev
On Sat, Jul 6, 2013 at 8:29 AM, Andre LaBranche <dre@apple.com> wrote: Using ‘ls’ in the shell requires the use of the PROPFIND method, which
might be rightfully disabled by the server for on “/“. Try changing the working directory to your calendar home first. The shell includes a “calendars” command to do this for you. An example usage is shown below - note the change in the prompt when the cwd changes.
Hey Andre, Your approach works fine when I connect to the APple Calender Sever on my localhost. I get an exception if I try the 'calendars' or the 'addressbooks: / > calendars No principal found for current principal The problem is the owncloud thing works in a strange way. I have tried every possible URL to connect. There are various errors we are ignoring as seen from the prompts. I suspect some of them should be handled. I can send detailed logs for any of them as required. Cardassia:CalDAVClientLibrary sriramkarra$ ./runshell.py --server https://unhammer.org --user skarra -pswd Ignoring error: 405 Ignoring error: 405 / > quit Exiting shell: quitting Cardassia:CalDAVClientLibrary sriramkarra$ ./runshell.py --server https://unhammer.org/owncloud --user skarra --pswd Ignoring error: 301 Ignoring error: 0 Ignoring error: 301 Ignoring error: 0 / > ls Ignoring error: 301 Ignoring error: 0 / > quit Exiting shell: quitting Cardassia:CalDAVClientLibrary sriramkarra$ ./runshell.py --server https://unhammer.org/owncloud/index.php --user skarra --pswd / > ls Ignoring error: 405 / > quit Exiting shell: quitting Cardassia:CalDAVClientLibrary sriramkarra$ ./runshell.py --server https://unhammer.org/owncloud/index.php/carddav --user skarra --pswd / > ls Ignoring error: 405 / > quit Exiting shell: quitting Cardassia:CalDAVClientLibrary sriramkarra$ ./runshell.py --server https://unhammer.org/owncloud/index.php/carddav/principals --user skarra --pswd / > ls Ignoring error: 405 / > quit Exiting shell: quitting Cardassia:CalDAVClientLibrary sriramkarra$ ./runshell.py --server https://unhammer.org/owncloud/index.php/carddav/principals/skarra --user skarra --pswd / > ls Ignoring error: 405 / > quit Exiting shell: quitting
participants (3)
-
Andre LaBranche
-
Cyrus Daboo
-
Sriram Karra