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

jmap_contact.c: base64url encode vCard UIDs as JMAP ids #5169

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ksmurchison
Copy link
Contributor

This prevents us from return "urn:uuid:xxx" as an object id, but also allows us to derive the vCard UID from the object id to avoid any changes to dav.db

@ksmurchison ksmurchison force-pushed the cyr-1419-jmap_contact_ids branch from ed6f4cc to 596f116 Compare December 13, 2024 14:50
@@ -11265,8 +11294,10 @@ static int _card_set_create(jmap_req_t *req,
static int maxattempts = 3;
int i;
for (i = 0; i < maxattempts; i++) {
struct buf buf = BUF_INITIALIZER;
buf_printf(&buf, "urn:uuid:%s", makeuuid());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With urn:uuid in the uid, we'll always end up picking a different resource name below since ':' isn't one of the valid characters. Is this desirable/expected?

@ksmurchison ksmurchison marked this pull request as draft December 16, 2024 15:59
@rsto rsto removed their request for review January 8, 2025 07:42
@rsto
Copy link
Member

rsto commented Jan 8, 2025

@ksmurchison I removed myself as reviewer while this is a draft. Please re-add me for review when it's ready.

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

Successfully merging this pull request may close these issues.

3 participants