View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005588 | SOGo | Backend Calendar | public | 2022-08-25 08:57 | 2022-08-25 08:57 |
Reporter | eugenesu | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 5.7.0 | ||||
Summary | 0005588: Displayname of address books and calendars created for users under admin account are incorrect | ||||
Description | There is wrong behaviour in CalDAV engine, as I think: Sogo processes displayname of address books and calendars with CalDAV incorrect. I try to create calendar collections for users while logged in under admin user account. As I understand, when MKCOL request is received, it creates a record in sogo_folder_info with c_folder_name equals to the last part of the path specified in the request by default. If I try to set display name by adding D:displayname prop to the MKCOL request, or by making second PROPPATCH request, it does not set/update folder name globally, but sets it for current user only in sogo_user_profile -> c_settings -> FolderDisplayNames. Here are the requests I make:
I think this behavior is incorrect and these requests should create/update in sogo_folder_info c_foldername field instead of per-user settings. There are other thoughts: If I make MKCALENDAR request under admin account then it correctly sets c_foldername.
If I make POST user_name/Calendar/createFolder { name: "Cal 1" } then it correctly sets c_foldername and does not add extra values to c_settings. MKCOL and PROPPATCH on addressbook and calendar collections should work same way. | ||||
Steps To Reproduce | Steps to reproduce: 1) Under admin user account perform two CalDAV requests to create address book for other user: PROPPATCH https://.../SOGo/dav/user@domain/Contacts/4eaa265a-0e9c-40e5-932e-35728f2b70b0/ HTTP/1.1 2) Login under user. Expected results: Actual results: | ||||
Tags | CalDAV, CardDAV | ||||