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

CardDAV issue - 403 Forbidden #4

Closed
spatnynick opened this issue Jul 3, 2016 · 6 comments
Closed

CardDAV issue - 403 Forbidden #4

spatnynick opened this issue Jul 3, 2016 · 6 comments

Comments

@spatnynick
Copy link

spatnynick commented Jul 3, 2016

Dear Cyrus team,
I have a Cyrus instance working, an account created, accessing CardDav via KDE's KAddressBook (I am using this app successfully also with Baïkal's CardDav) and I face following issue:

  • when I try to create a new contact manually, one by one, contacts are created
    https[11907]: nas [192.168.xxx.xxx] as "bogo" with "Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.20 (like Gecko) Konqueror/4.14"; "PUT /dav/addressbooks/user/bogo/Default/1467532147.R131.vcf HTTP/1.1" => "201 Created"
  • when I try to do more creations in short time, via selecting users of my Baïkal's CardDav account in KAddressBook and performing rightclick->Copy contacts to -> my Cyrrus account, only a few of these contacts are created successfully, most of them are forbidden
    https[11907]: nas [192.168.xxx.xxx] as "bogo" with "Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.20 (like Gecko) Konqueror/4.14"; "PUT /dav/addressbooks/user/bogo/Default/1467532038.R692.vcf HTTP/1.1" => "403 Forbidden"

When I repeat it, the problem occurs randomly - the same contact is sometime created, sometime forbidden

I am using the latest GitHub ver 3 beta 3, but tried also 2.5.8 with the same problem
Please help...

Kind regards
Bohuslav

@brong
Copy link
Member

brong commented Jul 3, 2016

Can you get a telemetry dump of the commands that are being used?

On Sun, Jul 3, 2016, at 18:00, spatnynick wrote:

Dear Cyrus team,
I have a Cyrus instance working, an account created, accessing
CardDav via KDE's KAddressBook (I am using this app successfully also
with Baïkal's CardDav) and I face following issue: > * when I try
to create a new contact manually, one by a one, all is OK, contact is
created > https[11907]: nas [192.168.xxx.xxx] as "bogo" with
"Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.20 (like Gecko)
Konqueror/4.14"; "PUT
/dav/addressbooks/user/bogo/Default/1467532147.R131.vcf HTTP/1.1" =>
"201 Created" > * when I try to do more creations in short time,
via selecting users of my Baïkal's CardDav account in KAddressBook
and performing rightlickc->Copy contacts to -> my Cyrrus account,
only a few of these contacts are created successfully, most of them
is forbidden > https[11907]: nas [192.168.xxx.xxx] as "bogo" with
"Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.20 (like Gecko)
Konqueror/4.14"; "PUT
/dav/addressbooks/user/bogo/Default/1467532038.R692.vcf HTTP/1.1" =>
"403 Forbidden"
When I repeat it, the problem occurs randomly - the same contact is
sometime created, sometime forbidden
Please help...
Kind regards
Bohuslav
— > You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub[1], or mute the
thread[2].

Bron Gondwana
brong@fastmail.fm
 

Links:

  1. CardDAV issue - 403 Forbidden #4
  2. https://github.com/notifications/unsubscribe/AABE7aGC0x4buwuyabNB6dEeNG6KPkdKks5qR2wFgaJpZM4JD0vq

@spatnynick
Copy link
Author

Hi
I have made a WireShark trace, see attachment

Br
Bohuslav

2016-07-03 10:30 GMT+02:00 Bron Gondwana notifications@github.com:

Can you get a telemetry dump of the commands that are being used?

On Sun, Jul 3, 2016, at 18:00, spatnynick wrote:

Dear Cyrus team,
I have a Cyrus instance working, an account created, accessing
CardDav via KDE's KAddressBook (I am using this app successfully also
with Baïkal's CardDav) and I face following issue: > * when I try
to create a new contact manually, one by a one, all is OK, contact is
created > https[11907]: nas [192.168.xxx.xxx] as "bogo" with
"Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.20 (like Gecko)
Konqueror/4.14"; "PUT
/dav/addressbooks/user/bogo/Default/1467532147.R131.vcf HTTP/1.1" =>
"201 Created" > * when I try to do more creations in short time,
via selecting users of my Baïkal's CardDav account in KAddressBook
and performing rightlickc->Copy contacts to -> my Cyrrus account,
only a few of these contacts are created successfully, most of them
is forbidden > https[11907]: nas [192.168.xxx.xxx] as "bogo" with
"Mozilla/5.0 (X11; Linux x86_64) KHTML/4.14.20 (like Gecko)
Konqueror/4.14"; "PUT
/dav/addressbooks/user/bogo/Default/1467532038.R692.vcf HTTP/1.1" =>
"403 Forbidden"
When I repeat it, the problem occurs randomly - the same contact is
sometime created, sometime forbidden
Please help...
Kind regards
Bohuslav
— > You are receiving this because you are subscribed to this thread.

Reply to this email directly, view it on GitHub[1], or mute the
thread[2].

Bron Gondwana
brong@fastmail.fm

Links:

  1. CardDAV issue - 403 Forbidden #4
    2.
    https://github.com/notifications/unsubscribe/AABE7aGC0x4buwuyabNB6dEeNG6KPkdKks5qR2wFgaJpZM4JD0vq


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/APLGvxcB9IJ9g8ZD0Psi5d_NSp4gljowks5qR3MhgaJpZM4JD0vq
.

@brong
Copy link
Member

brong commented Jul 3, 2016

BEGIN:VCARD
VERSION:3.0
N:;Barton....ek;;;
ORG:Foto doln.. ..jezd
TEL;TYPE=WORK:+420603753359
UID:1d03ac06-1de6-4c32-a56e-7936f18b900a
END:VCARD

HTTP/1.1 403 Forbidden
Keep-Alive: timeout=300
Connection: Keep-Alive
Date: Sun, 03 Jul 2016 09:22:34 GMT
Cache-Control: no-cache
Vary: Accept-Encoding
Content-Type: application/xml; charset=utf-8
Content-Length: 138

<D:error xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav"><C:valid-address-
data/>/D:error

That would be the lack of an 'FN' field.

https://en.wikipedia.org/wiki/VCard#Properties
FN S R R The formatted name string associated with the vCard object.
FN:Dr. John Doe

The second "R" there is "required in VERSION:3.0".

You should file a bug against KAddressBook for failing to follow
the standard.

Regards,

Bron.

On Sun, Jul 3, 2016, at 19:29, spatnynick wrote:

cyrus-carddav-trace.pcapng.gz[1]
— > You are receiving this because you commented. > Reply to this
email directly, view it on GitHub[2], or mute the thread[3].

Bron Gondwana
brong@fastmail.fm

 

Links:

  1. https://github.com/cyrusimap/cyrus-imapd/files/344952/cyrus-carddav-trace.pcapng.gz
  2. CardDAV issue - 403 Forbidden #4 (comment)
  3. https://github.com/notifications/unsubscribe/AABE7dZc03kdsXwECEdPWJFHrnqGL--_ks5qR4DjgaJpZM4JD0vq

@spatnynick
Copy link
Author

Looks you are right. When I export this contact to vcf, import throws forbidden; if I fill in FN field in text editor, it's then loaded successfully

Thanks!

@ksmurchison
Copy link
Contributor

Should this be closed since its a client issue?

@elliefm
Copy link
Contributor

elliefm commented Jul 7, 2016

IMO yes, let's not clutter this up with dead ends like bugzilla/phabricator if we can help it

We can always reopen it if it becomes a Cyrus problem

rsto pushed a commit to rsto/cyrus-imapd that referenced this issue Sep 5, 2023
xapian: just use the autotools we've already got thanks
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

4 participants