[CalendarServer-dev] twistedcaldav/directory/ldapdirectory.py:1267:getGroups empty argument error

Dennison Williams dennison.williams at gmail.com
Wed Jan 30 20:06:10 PST 2013



Hello,

I have been getting the following error when trying to start myinstance
of calendarserver:

2013-01-30 19:52:59-0800 [-]
[twistedcaldav.directory.ldapdirectory.LdapDirectoryService#debug]
Peforming principal property search for [['guid', None, False, 'equals']]
2013-01-30 19:52:59-0800 [-] Unhandled error in Deferred:
2013-01-30 19:52:59-0800 [-] Unhandled Error
        Traceback (most recent call last):
          File
"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line
1045, in _inlineCallbacks
            result = g.send(result)
          File
"/usr/local/lib/python2.7/dist-packages/twistedcaldav/directory/directory.py",
line 679, in getGroups
            records = (yield self.directory.getGroups(guids))
          File
"/usr/local/lib/python2.7/dist-packages/twistedcaldav/directory/aggregate.py",
line 224, in getGroups
            return service.getGroups(guids)
          File
"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line
1187, in unwindGenerator
            return _inlineCallbacks(None, gen, Deferred())
        --- <exception caught here> ---
          File
"/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line
1045, in _inlineCallbacks
            result = g.send(result)
          File
"/usr/local/lib/python2.7/dist-packages/twistedcaldav/directory/ldapdirectory.py",
line 1268, in getGroups
            recordType=self.recordType_groups))
          File
"/usr/local/lib/python2.7/dist-packages/twistedcaldav/directory/ldapdirectory.py",
line 1180, in recordsMatchingFields
            optimizeMultiName=self.optimizeMultiName)
          File
"/usr/local/lib/python2.7/dist-packages/twistedcaldav/directory/ldapdirectory.py",
line 1359, in buildFilter
            value = _convertValue(value, matchType)
          File
"/usr/local/lib/python2.7/dist-packages/twistedcaldav/directory/ldapdirectory.py",
line 1339, in _convertValue
            value = ldapEsc(value)
          File "/usr/local/lib/python2.7/dist-packages/ldap/filter.py",
line 39, in escape_filter_chars
            s = assertion_value.replace('\\', r'\5c')
        exceptions.AttributeError: 'NoneType' object has no attribute
'replace'

Tracing this all the way up the stack I see tha the getGroups method
receives a guid value of  set([None]), but this is not caught as I think
maybe it should be on line 675

if guids is None:

But because I am not super familar with this application and have
limited familiarity with python I am not sure if this indicates an issue
with my config, my environment, or the code.

Any help is appreciated.
Sincerely,
Dennison



More information about the calendarserver-dev mailing list