Uploaded image for project: 'Kopano Groupware Core'
  1. Kopano Groupware Core
  2. KC-1980

pyko: Unable to create items from ics file in public store

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: QA
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 8.7.22
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Environment:
      8.7.20

      Description

      f=kopano.public_store.folder('test', create=True)
      c=open('sample.ics', 'rb').read()
      f.create_item(ics=c) 
      

      Results in

      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/lib/python3/dist-packages/kopano/folder.py", line 483, in create_item
          item = _item.Item(self, eml=eml, ics=ics, vcf=vcf, load=load, loads=loads, attachments=attachments, create=True, save=save)
        File "/usr/lib/python3/dist-packages/kopano/item.py", line 197, in __init__
          icm.ParseICal(ics, 'utf-8', 'UTC', self.user.mapiobj, 0)
      AttributeError: 'NoneType' object has no attribute 'mapiobj'
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rvangenderen Robin van Genderen
            Votes:
            10 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: