Steps To Reproduce | 1) In sogo.conf set:
SOGoCalendarCategories = (
"Anrufe",
"Besprechung",
"Favoriten",
"Feiertag",
"Ferien",
"Nachgehen",
"Fragen",
"Geburtstag",
"Gesch\U00E4ft",
"Geschenke",
"Ideen",
"Jubil\U00E4um",
"Klienten",
"Konkurrenz",
"Kunde",
"Lieferant",
"Pers\U00F6nlich",
"Projekte",
"Reise",
"Status",
"Urlaub",
"Verschiedenes",
"Vorl\U00E4ufig"
);
SOGoCalendarCategoriesColors = {
"Anrufe" = "#993399";
"Besprechung" = "#FF9900";
"Favoriten" = "#FF6600";
"Feiertag" = "#3366FF";
"Ferien" = "#990000";
"Nachgehen" = "0000099";
"Fragen" = "#33CC00";
"Geburtstag" = "#330099";
"Gesch\U00E4ft" = "#66CCCC";
"Geschenke" = "#330033";
"Ideen" = "0003300";
"Jubil\U00E4um" = "#339999";
"Klienten" = "#336666";
"Konkurrenz" = "#CC0000";
"Kunde" = "#FFFF66";
"Lieferant" = "#FFFF66";
"Pers\U00F6nlich" = "#663300";
"Projekte" = "0003333";
"Reise" = "#FFFF33";
"Status" = "#FFFF33";
"Urlaub" = "#663366";
"Verschiedenes" = "#FF9900";
"Vorl\U00E4ufig" = "#FF0000";
};
2) Restart SOGo and memcached
3) create a new userA in e.g. LDAP (or remove her data with sogo-tool)
4) check default setting for calendar categories
/usr/sbin/sogo-tool user-preferences get defaults userA SOGoCalendarCategories
gives:
SOGoCalendarCategories: ["Anrufe", "Besprechung", "Favoriten", "Feiertag", "Ferien", "Nachgehen", "Fragen", "Geburtstag", "Geschäft", "Geschenke", "Ideen", "Jubiläum", "Klienten", "Konkurrenz", "Kunde", "Lieferant", "Persönlich", "Projekte", "Reise", "Status", "Urlaub", "Verschiedenes", "Vorläufig"]
=> There are all 23 categories set in sogo.conf, as expected.
Only one "Reise" and one "Status"!
5) check default setting for calendar categories colors
/usr/sbin/sogo-tool user-preferences get defaults userA SOGoCalendarCategoriesColors
gives:
SOGoCalendarCategoriesColors: {"Vorläufig": "#FF0000", "Geschäft": "#66CCCC", "Nachgehen": "0000099", "Ideen": "0003300", "Ferien": "#990000", "Persönlich": "#663300", "Geburtstag": "#330099", "Projekte": "0003333", "Urlaub": "#663366", "Fragen": "#33CC00", "Lieferant": "#FFFF66", "Konkurrenz": "#CC0000", "Jubiläum": "#339999", "Status": "#FFFF33", "Feiertag": "#3366FF", "Klienten": "#336666", "Anrufe": "#993399", "Verschiedenes": "#FF9900", "Reise": "#FFFF33", "Besprechung": "#FF9900", "Kunde": "#FFFF66", "Geschenke": "#330033", "Favoriten": "#FF6600"}
=> There are all 23 categories and all colors from sogo.conf, as expected.
Especially color "#FFFF33" for "Status" is set.
6) login as userA
7) check default setting for calendar categories again
/usr/sbin/sogo-tool user-preferences get defaults userA SOGoCalendarCategories
gives:
SOGoCalendarCategories: ["Anrufe", "Besprechung", "Favoriten", "Feiertag", "Ferien", "Nachgehen", "Fragen", "Geburtstag", "Geschäft", "Geschenke", "Ideen", "Jubiläum", "Klienten", "Konkurrenz", "Kunde", "Lieferant", "Persönlich", "Projekte", "Reise", "Reise", "Urlaub", "Verschiedenes", "Vorläufig"]
=> There are 2 categories "Reise" and no category "Status", which is plain wrong!!!!
This is the critical part, as now userA always gets the above error when trying to change any setting.
8) check default setting for calendar categories colors again
/usr/sbin/sogo-tool user-preferences get defaults userA SOGoCalendarCategoriesColors
gives:
SOGoCalendarCategoriesColors: {"Vorläufig": "#FF0000", "Geschäft": "#66CCCC", "Nachgehen": "0000099", "Ideen": "0003300", "Ferien": "#990000", "Persönlich": "#663300", "Geburtstag": "#330099", "Projekte": "0003333", "Urlaub": "#663366", "Fragen": "#33CC00", "Lieferant": "#FFFF66", "Konkurrenz": "#CC0000", "Jubiläum": "#339999", "Feiertag": "#3366FF", "Klienten": "#336666", "Anrufe": "#993399", "Reise": "#FFFF33", "Verschiedenes": "#FF9900", "Besprechung": "#FF9900", "Kunde": "#FFFF66", "Geschenke": "#330033", "Favoriten": "#FF6600"}
=> There is no "Status" at all, which is also wrong!!
Only 22 categories left with colors.
This is not critical, as the color can be set when needed. |
---|
Additional Information | SOGo 4.3.0 stable
You can fix affected users with:
/usr/sbin/sogo-tool user-preferences set defaults userA SOGoCalendarCategories '{"SOGoCalendarCategories":["Anrufe", "Besprechung", "Favoriten", "Feiertag", "Ferien", "Nachgehen", "Fragen", "Geburtstag", "Geschäft", "Geschenke", "Ideen", "Jubiläum", "Klienten", "Konkurrenz", "Kunde", "Lieferant", "Persönlich", "Projekte", "Reise", "Status", "Urlaub", "Verschiedenes", "Vorläufig"]}'
and
/usr/sbin/sogo-tool user-preferences set defaults userA SOGoCalendarCategoriesColors '{"SOGoCalendarCategoriesColors":{"Vorläufig": "#FF0000", "Geschäft": "#66CCCC", "Nachgehen": "0000099", "Ideen": "0003300", "Ferien": "#990000", "Persönlich": "#663300", "Geburtstag": "#330099", "Projekte": "0003333", "Urlaub": "#663366", "Fragen": "#33CC00", "Lieferant": "#FFFF66", "Konkurrenz": "#CC0000", "Jubiläum": "#339999", "Feiertag": "#3366FF", "Klienten": "#336666", "Anrufe": "#993399", "Reise": "#FFFF33", "Verschiedenes": "#FF9900", "Besprechung": "#FF9900", "Geschenke": "#330033", "Kunde": "#FFEE66", "Favoriten": "#FF6600","Status": "#FFFF33"}}'
Or you can delete the duplicate category "Reise" within "Preferences" before changing any other preference.
After setting it as user preference it will stick and not getting changed back to the wrong, duplicate setting. |
---|