Re: [SailfishDevel] SyncML: Can not edit calendar events created on the PC
Hi Chris, thank you once again. Please help me think further, what the root cause could be. Chris Adams wrote: > I'm not sure if this is what you're seeing or not, but some applications > are members of the privileged group, which allows them to access data > under /home/nemo/.local/share/system/privileged/ directory, which includes > the mkcal database etc. > > You can modify the packaging for the appropriate syncml server process to > ensure it installs a config file to the mapplauncherd's privileges > directory (see e.g. > https://git.merproject.org/mer-core/buteo-syncfw/blob/master/rpm/buteo-syncfw-qt5.privileges > for msyncd) - although if it is a child process of msyncd it shouldn't > need anything extra as it should inherit egid from parent process IIRC. > > If the issue you're seeing is unrelated to that, it might be that at some > point in the sync process a particular notebook (i.e. calendar) is being > set as read-only in the database. The mKCal::Notebook::setIsReadOnly() > method causes the FLAG_IS_READONLY to be set into the Flags column for > that notebook when it is stored. A read-only notebook is considered > invalid for writes (i.e. it can be used to archive an old notebook which > is no longer valid for reads/writes). > The events are stored in the same "Personal" calendar. I looked yesterday in the flags as you suggested below, but flags are set on the notebook and I have only one notebook. On the items/events in the notebook I do not see any flags or something suggesting read only. I also compared two records from the msync db and they look the same except the UUID. > If it's unrelated to these, then I'm not sure what the issue might be. I looked in /usr/lib/qt5/qml/org/nemomobile/calendar/plugins.qmltypes and I see many fields/properties are defaulted as read only in NemoCalendarEvent and NemoCalendarEventModification. It could be that over the years something changed and now the code is creating the records in the db with some RO defaults. I am not sure if I can just change there or what exactly is to be changed. I will try to find some description of the model, if you have ideas and/or links please let me know. thanks in advance E. ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SyncML: Can not edit calendar events created on the PC
Hi, I'm not sure if this is what you're seeing or not, but some applications are members of the privileged group, which allows them to access data under /home/nemo/.local/share/system/privileged/ directory, which includes the mkcal database etc. You can modify the packaging for the appropriate syncml server process to ensure it installs a config file to the mapplauncherd's privileges directory (see e.g. https://git.merproject.org/mer-core/buteo-syncfw/blob/master/rpm/buteo-syncfw-qt5.privileges for msyncd) - although if it is a child process of msyncd it shouldn't need anything extra as it should inherit egid from parent process IIRC. If the issue you're seeing is unrelated to that, it might be that at some point in the sync process a particular notebook (i.e. calendar) is being set as read-only in the database. The mKCal::Notebook::setIsReadOnly() method causes the FLAG_IS_READONLY to be set into the Flags column for that notebook when it is stored. A read-only notebook is considered invalid for writes (i.e. it can be used to archive an old notebook which is no longer valid for reads/writes). If it's unrelated to these, then I'm not sure what the issue might be. Best regards, Chris. From: Devel [devel-boun...@lists.sailfishos.org] on behalf of deloptes [delop...@gmail.com] Sent: Sunday, August 11, 2019 3:08 AM To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] SyncML: Can not edit calendar events created on the PC Tone Kastlunger wrote: > Sounds more like a permission issue to me? > Could be the user of the SyncML (server?) is not authorized to modify but > just to add entries? > I don't know where to look at. This is why I am asking. At the end it is stored in a sqlite DB. How am I supposed to understand where these permissions are set. I found one article describing calendar in Sailfis https://weekly-geekly.github.io/articles/329692/index.html But still not clear where this is set. I hope someone here can give me a hint. BTW: I am using the sync on daily bases already, like I did with N9. regards ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SyncML: Can not edit calendar events created on the PC
Thee searchet, thee shall find: https://github.com/ivanshchitov/sailfish-calendar-example/blob/master/privileges/calendar-example.privileges On Sat, Aug 10, 2019 at 8:08 PM deloptes wrote: > Tone Kastlunger wrote: > > > Sounds more like a permission issue to me? > > Could be the user of the SyncML (server?) is not authorized to modify but > > just to add entries? > > > > I don't know where to look at. This is why I am asking. > At the end it is stored in a sqlite DB. How am I supposed to understand > where these permissions are set. > > I found one article describing calendar in Sailfis > https://weekly-geekly.github.io/articles/329692/index.html > > But still not clear where this is set. I hope someone here can give me a > hint. > > BTW: I am using the sync on daily bases already, like I did with N9. > > regards > > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to > devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SyncML: Can not edit calendar events created on the PC
Tone Kastlunger wrote: > Sounds more like a permission issue to me? > Could be the user of the SyncML (server?) is not authorized to modify but > just to add entries? > I don't know where to look at. This is why I am asking. At the end it is stored in a sqlite DB. How am I supposed to understand where these permissions are set. I found one article describing calendar in Sailfis https://weekly-geekly.github.io/articles/329692/index.html But still not clear where this is set. I hope someone here can give me a hint. BTW: I am using the sync on daily bases already, like I did with N9. regards ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
Re: [SailfishDevel] SyncML: Can not edit calendar events created on the PC
Sounds more like a permission issue to me? Could be the user of the SyncML (server?) is not authorized to modify but just to add entries? Best, tk On Wed, Aug 7, 2019 at 6:30 PM deloptes wrote: > Hi, > again in the context of SyncML I just now noticed that events created on > the > PC can not be modified in Sailfish X. > > Where is this configured/set? Does someone know why the calendar items is > not editable? > > Events created in Sailfish X can be synchronized to PC, modified there and > synchronized back to X, where they are editable again. Why the difference > and how to change this? Which makes me think it depends on the ID, but > could be anything else like vcal/ical format or something. > > Does someone have more information or where I could look at? > > thanks > > > > > > ___ > SailfishOS.org Devel mailing list > To unsubscribe, please send a mail to > devel-unsubscr...@lists.sailfishos.org ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
[SailfishDevel] SyncML: Can not edit calendar events created on the PC
Hi, again in the context of SyncML I just now noticed that events created on the PC can not be modified in Sailfish X. Where is this configured/set? Does someone know why the calendar items is not editable? Events created in Sailfish X can be synchronized to PC, modified there and synchronized back to X, where they are editable again. Why the difference and how to change this? Which makes me think it depends on the ID, but could be anything else like vcal/ical format or something. Does someone have more information or where I could look at? thanks ___ SailfishOS.org Devel mailing list To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org