Disabling the content negotiator does not seem to have any influence on this.

Added byHanno SchlichtingonJun 11, 2010 03:03 PM

Issue state:
Unconfirmed
→
Confirmed

Wichert and me had a couple private mail exchanges about this. To fix this we need to rewrite some part of the language selector code -> it shouldn't need to inspect any part of the URL, once it sees any virtual hosting marker in it.

Added byHanno SchlichtingonJul 29, 2010 01:58 PM

Responsible manager:
(UNASSIGNED)
→
hannosch

Target release:
None
→
4.x

From a email conversation with Wichert:

Wichert said:Even for <customer site> I don't see a need to ever look at anything before VirtualHostRoot. Can you think of a reason breaking out of the loop when encountering VirtualHostRoot won't work? It does seem to solve things for me at least.

Hanno said:I looked at the code in more detail again and refactored the horrible languages method into some saner methods. The new _findpath has the logic in question and should be unit testable now.

And I think you are right, as soon as we hit any of the VHM markers, we should just break out of the loop and give up. This should also solve one other issue in the LP tracker(http://plone.org/products/linguaplone/issues/228) that uses VirtualHostBase.