• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6298: GenPDF chokes on undefined hftopic and titletopic

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension GenPDFAddOn Normal New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

In viewPDF method GenPDFAddOn checks if topics given in hftopic and titletopic exists without checking if any of those preferences has been set. This is fine with any ordinary Web, i.e. with WebHome topic, since that's what returned by TWiki::Func::topicExists when preferences are not set.

Additionally, somewhere else existence of both preferences is checked, just before reading actual data, so it is somewhat an inconsistency.

Patch included as attachment.

-- TWiki:Main/WaldemarZurowski - 12 Aug 2009

One more thing - <NOP>viewPDF method reference oops templates which don't exist in the TWiki version we run.

-- TWiki:Main.WaldemarZurowski - 13 Aug 2009

ItemTemplate
Summary GenPDF chokes on undefined hftopic and titletopic
ReportedBy TWiki:Main.WaldemarZurowski
Codebase 4.2.4
SVN Range TWiki-5.0.0, Sat, 18 Apr 2009, build 18024
AppliesTo Extension
Component GenPDFAddOn
Priority Normal
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatpatch GenPDF-Topic-Check.patch r1 manage 0.9 K 2009-08-12 - 17:05 UnknownUser  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2009-08-13 - WaldemarZurowski
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback