Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #247 (closed Defect: Software changed)

Opened 5 years ago

Last modified 5 years ago

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>

Change History

comment:1 Changed 5 years ago by wsanchez@…

  • Owner changed from wsanchez@… to dreid@…
  • Milestone set to 1.3

comment:2 Changed 5 years ago by wsanchez@…

  • Status changed from new to closed
  • Resolution set to Software changed
  • Milestone changed from CalendarServer-1.3 to CalendarServer-2.0

Fixed in trunk

Note: See TracTickets for help on using tickets.