[OGo-XML-RPC] LSDBObjectCommandException - no participants set

Adam Tauno Williams xmlrpc@opengroupware.org
Thu, 29 Jun 2006 09:45:29 -0400


> > >            The problem is that wether I try to insert an appointment
> > > without any participants, or wether I put some participants in it, I
> > > always get the same exception ("no participants set"). It seems that
> > > this version of Ogo requires participants to insert and appointment,
> > > and that there is some bug in xml-rpc (or I am doing something wrong
> > > or have something misconfigured)
> > Maybe you should create a bugreport on the matter and attach a small 
> > Python script which reproduces the issue.
> http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1683
> http://bugzilla.opengroupware.org/bugzilla/attachment.cgi?id=434&action=view

What I'm seeing is that I can create *ONE* appointment, and subsequent
calls to appointment.insert fail.  Restarting ogo-xmlrpcd allows me to
create one more appointment, etc...

First Run
-----------------------
[root@ws1 ~]# ./test2.py
20060118T10:10:10
20060118T11:15:10
/usr/lib/python2.3/xmlrpclib.py:373: FutureWarning: %u/%o/%x/%X of
negative int will return a signed string in Python 2.4 and up
  return "<DateTime %s at %x>" % (repr(self.value), id(self))
{'startDate': <DateTime '20060118T10:10:10' at b7cb4bcc>, 'endDate':
<DateTime '20060118T11:15:10' at b7cc968c>, 'title': 'Test Appointment
I'}
Appointment Created!
----------------------
{'startDate': <DateTime u'20060118T10:10:10' at b7c7d9ac>, 'endDate':
<DateTime u'20060118T11:15:10' at b7c7d9ec>, 'title': 'Test Appointment
I', 'participants': [{'password': '***************', 'dbStatus':
'updated', 'name': 'Williams', 'firstname': 'adam', 'companyId': 10410,
'number': 'OGo10410', 'objectVersion': 2, 'isLocked': 0, 'isAccount': 1,
'isExtraAccount': 0, 'isPerson': 1, 'ownerId': 10000, 'login': 'adam',
'isIntraAccount': 1, 'templateUserId': 9999}], 'location': '', 'id':
'skyrix://ws1.cable.orka.telecoms.bg/TestBox/10730'}

Second Run
-----------------------
[root@ws1 ~]# ./test2.py
20060119T10:10:10
20060119T11:15:10
/usr/lib/python2.3/xmlrpclib.py:373: FutureWarning: %u/%o/%x/%X of
negative int will return a signed string in Python 2.4 and up
  return "<DateTime %s at %x>" % (repr(self.value), id(self))
{'startDate': <DateTime '20060119T10:10:10' at b7cb5bcc>, 'endDate':
<DateTime '20060119T11:15:10' at b7cca68c>, 'title': 'Test Appointment
I'}
Traceback (most recent call last):
  File "./test2.py", line 18, in ?
    result = server.appointment.insert(dict)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.3/xmlrpclib.py", line 1080, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1219, in _parse_response
    return u.close()
  File "/usr/lib/python2.3/xmlrpclib.py", line 742, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 0: 'LSDBObjectCommandException: appointment::new
failed: no participants set !'>