Ticket #136 (new Defect)
Can't use non-default directory service
| Reported by: | tylerkeating@… | Owned by: | sagen@… |
|---|---|---|---|
| Priority: | 1: Blocker | Milestone: | Later |
| Component: | Calendar Server | Severity: | Crash/data loss |
| Keywords: | Cc: |
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.
- Tyler
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

