-
Notifications
You must be signed in to change notification settings - Fork 149
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
proppatch_todb(): do not mask the annotations for admins user #3403
base: master
Are you sure you want to change the base?
proppatch_todb(): do not mask the annotations for admins user #3403
Conversation
8174947
to
9686939
Compare
The second push enables PROPPATCH by admin users everywhere. |
Actually, we should probably do this for SEEN state as well - have the admin user always write the seen state as the mailbox owner. I like the idea. Gonna pop it on the team meeting agenda today. |
Hello Bron, what happened in the team meeting? |
Could up update this to apply cleanly to master? |
Rationale: when an admin user sends PROPPATCH, then the annotations set by the mailbox owner shall be updated. This permits the admin user to modify WebDAV properties without fighting with the annotations database directly or asking for the user’s password.
This is blocked by #5035 . |
9686939
to
61526f4
Compare
I have updated the changes for the tip of the master branch. In my eyes it is not pleasant when I contribute some code, then time passes until I for sure forget all the context, then the changes are reviewed and only then any form of questions appear. Asking me to change the code anyhow is a form of question. I have forgotten all the context and have to start anew. That said, these changes work only when fastmailsharing is enabled - #5035 - and only affect the WebDAV code. For JMAP such logic will probably be useful, too. While looking now on the code, I see in http_caldav.c:caldav_mkcol(), http_carddav.c:_create_mailbox(), and caldav_util.c:_create_mailbox() calls to In the same sense, I think in proppatch_scheddefault instead of - r = annotate_state_writemask(astate, annotname, httpd_userid, &pctx->buf);
+ r = annotate_state_writemask(astate, annotname, httpd_userisadmin ? "" : httpd_userid, &pctx->buf); should be
|
Rationale: when an admin user sends PROPPATCH, then the annotations set by the mailbox owner shall be updated. This permits the admin user to modify WebDAV properties without fighting with the annotations database directly or asking for the user’s password. Admitted, not all cases for PROPPATCH are handled here. cyrusimap#3403
Rationale: when an admin user sends PROPPATCH, then the annotations set by the mailbox owner shall be updated. This permits the admin user to modify WebDAV properties without fighting with the annotations database directly or asking for the user’s password.
Admitted, not all cases for PROPPATCH are handled here.