Genshi xi:include Caching Issue #16

Open
pedersen opened this Issue Sep 24, 2012 · 3 comments

Comments

Projects
None yet
1 participant
@pedersen
Owner

pedersen commented Sep 24, 2012

This issue existed in Trac. The original can be viewed at http://trac.turbogears.org/ticket/2448

This issue existed on SourceForge. The original can be viewed at https://sourceforge.net/p/turbogears2/tickets/90

@pedersen

This comment has been minimized.

Show comment Hide comment
@pedersen

pedersen Sep 24, 2012

Owner

Original Author: pedersen, Original Timestamp: 2011-03-29 03:30:04.152000

Original Body: 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).


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

attachment GenshiBug.zip added.

Delete 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
Delete 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.

Delete 09/25/10 15:43:51 changed by mramm

priority changed from high to normal.
severity changed from major to normal.

If we can't fix this, we need to lean on the genshi folks, but I'm going to mark down the priority since it's not something we can change in our code, and I don't think it should be a blocker for a 2.1 release.

Owner

pedersen commented Sep 24, 2012

Original Author: pedersen, Original Timestamp: 2011-03-29 03:30:04.152000

Original Body: 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).


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

attachment GenshiBug.zip added.

Delete 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
Delete 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.

Delete 09/25/10 15:43:51 changed by mramm

priority changed from high to normal.
severity changed from major to normal.

If we can't fix this, we need to lean on the genshi folks, but I'm going to mark down the priority since it's not something we can change in our code, and I don't think it should be a blocker for a 2.1 release.

@pedersen

This comment has been minimized.

Show comment Hide comment
@pedersen

pedersen Sep 24, 2012

Owner

Original Author: nlaurance, Original Timestamp: 2011-05-27 12:33:52.335000

Original Body: I have the same issues as described here and http://genshi.edgewall.org/ticket/240 with Genshi 0.6 (python 2.6, Ubuntu 10.04 LTS)

the change log http://genshi.edgewall.org/browser/tags/0.6.0/ChangeLog states that this has been fixed in 0.5.1... confusing

Owner

pedersen commented Sep 24, 2012

Original Author: nlaurance, Original Timestamp: 2011-05-27 12:33:52.335000

Original Body: I have the same issues as described here and http://genshi.edgewall.org/ticket/240 with Genshi 0.6 (python 2.6, Ubuntu 10.04 LTS)

the change log http://genshi.edgewall.org/browser/tags/0.6.0/ChangeLog states that this has been fixed in 0.5.1... confusing

@pedersen

This comment has been minimized.

Show comment Hide comment
@pedersen

pedersen Sep 24, 2012

Owner

Original Author: pedersen, Original Timestamp: 2012-08-24 01:44:00.006000

Original Body: - version: 2.1.0 --> 2.1.5

  • milestone: 2.2.0 --> 2.3.0
Owner

pedersen commented Sep 24, 2012

Original Author: pedersen, Original Timestamp: 2012-08-24 01:44:00.006000

Original Body: - version: 2.1.0 --> 2.1.5

  • milestone: 2.2.0 --> 2.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment