Ticket #247 (closed Defect: Software changed)
Only HTTPS ports are defined in automatically generated pydirectory configuration
| Reported by: | jasper@… | Owned by: | dreid@… |
|---|---|---|---|
| Priority: | 1: Blocker | Milestone: | CalendarServer-2.2 |
| Component: | Calendar Server | Severity: | Other |
| Keywords: | Cc: | ||
| Port: |
Description
In the file: twistedcaldav/cluster.py around line 114: def getHostLine(self, ssl=True), the ssl option is set to true by default which should be set to False.
When this option is set to "True" and multiple processors are used, all ports in the automatically generated pydirectory configuration (/tmp/pydirXXXXXX) file are set to httpS ports, which causes invalid redirection on the pydirector port 8008
Below an incorrectly generated configuration file example:
<pdconfig>
<service name="http">
<listen ip="localhost:8008" />
<group name="main" scheduler="leastconns">
<host name="caldav-8009" ip="127.0.0.1:8444" />
<host name="caldav-8010" ip="127.0.0.1:8445" />
</group> <enable group="main" />
</service>
<service name="https">
<listen ip="localhost:8443" />
<group name="main" scheduler="leastconns">
<host name="caldav-8009" ip="127.0.0.1:8444" />
<host name="caldav-8010" ip="127.0.0.1:8445" />
</group> <enable group="main" />
</service>
<service name="http">
<listen ip="10.88.55.2:8008" />
<group name="main" scheduler="leastconns">
<host name="caldav-8009" ip="127.0.0.1:8444" />
<host name="caldav-8010" ip="127.0.0.1:8445" />
</group> <enable group="main" />
</service>
<service name="https">
<listen ip="10.88.55.2:8443" />
<group name="main" scheduler="leastconns">
<host name="caldav-8009" ip="127.0.0.1:8444" />
<host name="caldav-8010" ip="127.0.0.1:8445" />
</group> <enable group="main" />
</service>
<control socket="logs/caldavd-pydir.sock" />
</pdconfig>

