Item1449: PublishPlugin stuck on incorrect VIEW_TEMPLATE

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches:
Reported By: RobertJacobson
Waiting For:
Last Change By: CrawfordCurrie
The PublishPlugin seems to have two issues: 1) It seems to be incorrectly determining the VIEW_TEMPLATE for a topic. For example, when attempting to publish the System web, the topic PatternSkinCustomization doesn't have a VIEW_TEMPLATE set. PublishPlugin seems to think the VIEW_TEMPLATE is BlogPostView. This results in a 0-byte HTML file output.

2) Once a VIEW_TEMPLATE is set (incorrectly), that template remains "stuck"; all subsequent topics are rendered using that view template

There are no errors in the Apache logs or foswiki logs in the "data" directory.

"rest" excerpt showing the problem:
[...]
PatternSkinCssCookbookNoTopBar: Rev 1 published
PatternSkinCustomization: has a VIEW_TEMPLATE 'BlogPostView'
PatternSkinCustomization: Rev 1 published
PatternSkinElements: has a VIEW_TEMPLATE 'BlogPostView'
PatternSkinElements: Rev 1 published
[...]

To reproduce, publish the System web with the default settings. Optionally, you may limit the 'inclusions' to "PatternSkin*" to speed up the process.
Confirmed. Pop topic context to avoid bleeding over context from one topic to the next.

-- CrawfordCurrie - 16 May 2009
Topic revision: r3 - 18 May 2009, CrawfordCurrie - This page was cached on 24 Nov 2017 - 05:03.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License