Ticket #136 (new Defect)
Can't use non-default directory service
|Reported by:||tylerkeating@…||Owned by:||sagen@…|
|Component:||Calendar Server||Severity:||Crash/data loss|
Description (last modified by wsanchez@…) (diff)
Hi, After a recent update, I'm now getting the following error when trying to run the server.
Traceback (most recent call last): File "/Users/admin/Developer/Collaboration/Twisted/bin/twistd", line 21, in <module> run() File "/Users/admin/Developer/Collaboration/Twisted/twisted/scripts/twistd.py", line 27, in run app.run(runApp, ServerOptions) File "/Users/admin/Developer/Collaboration/Twisted/twisted/application/app.py", line 374, in run config.parseOptions() File "/Users/admin/Developer/Collaboration/Twisted/twisted/application/app.py", line 354, in parseOptions usage.Options.parseOptions(self, options) File "/Users/admin/Developer/Collaboration/Twisted/twisted/python/usage.py", line 189, in parseOptions self.subOptions.parseOptions(rest) File "/Users/admin/Developer/Collaboration/Twisted/twisted/python/usage.py", line 199, in parseOptions self.postOptions() File "/Users/admin/Developer/Collaboration/CalendarServer/twistedcaldav/tap.py", line 127, in postOptions parseConfig(self['config']) File "/Users/admin/Developer/Collaboration/CalendarServer/twistedcaldav/config.py", line 342, in parseConfig config.loadConfig(configFile) File "/Users/admin/Developer/Collaboration/CalendarServer/twistedcaldav/config.py", line 242, in loadConfig self.update(configDict) File "/Users/admin/Developer/Collaboration/CalendarServer/twistedcaldav/config.py", line 186, in update self._data["DirectoryService"]["params"] = copy.deepcopy(serviceDefaultParams[dsType]) KeyError: 'twistedcaldav.directory.myapp.MyAppDirectoryService'
Where 'twistedcaldav.directory.myapp.MyAppDirectoryService' is my custom directory service, which obviously isn't in the list of serviceDefaultParams. Since serviceDefaultParams only includes XML and Open directory services, you get the same error trying to use the Basic, Digest or SQL directory services too. There is something wrong with how the update method is parsing directory services.
- Priority changed from 5: Not set to 1: Blocker
- Owner changed from wsanchez@… to dreid@…
- Severity changed from Serious to Crash/data loss
- Milestone set to Preview 1
- Status changed from new to closed
- Resolution set to fixed
- Status changed from closed to reopened
- Resolution fixed deleted
comment:11 Changed 6 years ago by dreid@…
- Status changed from reopened to new
- Owner changed from dreid@… to callan@…
comment:13 Changed 4 years ago by wsanchez@…
- Owner changed from callan@… to sagen@…
- Milestone changed from CalendarServer-2.x to CalendarServer-3.x