Ticket #2448 (new defect)

Opened 1 month ago

Last modified 1 month ago

Genshi xi:include Caching Issue

Reported by: rpetrello Assigned to:
Priority: high Milestone: 2.1b2
Component: TurboGears Version: 2.1a3
Severity: major Keywords:
Cc:

Description

We're experiencing a caching issue with genshi when we include two different files in two different directories that happen to have the same name. I'm not sure if this is actually a Genshi defect, or if it belongs in TG, but I figured it was enough of an issue to bring up here. Example:

templates/examplea/index.html includes templates/examplea/include.html templates/exampleb/index.html includes templates/exampleb/include.html

Sometimes when visiting the controller hooked to the exampleb template, the examplea include is used (and vice-versa).

To illustrate, I've attached a quickstart project that illustrates this behavior. To replicate:

* Run the quickstart project and visit localhost:8080. * At the bottom of the root page, click the link that takes you to the second page. * On the second page, click the link that takes you back to the first page.

Our Genshi version: 0.5.1 We're able to reproduce this in TG2.1a3+ (including the most recent 2.1b1).

Attachments

GenshiBug.zip (131.7 kB) - added by rpetrello on 01/27/10 09:21:41.

Change History

01/27/10 09:21:41 changed by rpetrello

  • attachment GenshiBug.zip added.

01/27/10 09:25:36 changed by rpetrello

Worth mentioning - this is very possibly a Genshi bug. In fact, this ticket in Genshi's tracker describes our issue perfectly: http://genshi.edgewall.org/ticket/240

01/29/10 14:04:19 changed by percious

  • priority changed from normal to high.
  • severity changed from normal to major.
  • milestone changed from __unclassified__ to 2.1b2.