Skip to content
This repository has been archived by the owner. It is now read-only.

Only HTTPS ports are defined in automatically generated pydirectory configuration #448

Closed
macosforgebot opened this issue Jan 29, 2008 · 2 comments

Comments

@macosforgebot
Copy link

@macosforgebot macosforgebot commented Jan 29, 2008

jasper@… originally submitted this as ticket:247

  • Owner: @dreid
  • Version: trunk

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>

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Apr 16, 2008

@wsanchez originally submitted this as comment:1:⁠ticket:247

@macosforgebot
Copy link
Author

@macosforgebot macosforgebot commented Oct 28, 2008

@wsanchez originally submitted this as comment:2:⁠ticket:247

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

Fixed in trunk

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.