wotifgroup/grails-lightweight-deploy — pull request #40 by davidmc24 (2014-09-22 21:34:10+00:00)
Title: Restrict internal servlets to only the internal connectors (#30)

Previously, both the internal and external contexts were setting the handler's connector names to all existing connectors. This resulted in the intended behavior for the external servlets, as at that point, only the external connectors exist. However, at the point where the internal servlets are configured, both the internal and external connectors exist, resulting in the internal servlets being accessible on the external connectors.

This commit fixes the problem by explicitly controlling which connectors the internal/external contexts are applied to. This approach breaks compatibility with applications that have a custom Launcher that overrides createInternalContext/createExternalContext by adding a new parameter.