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

Item6743: Statement $VERSION = '$Rev$' breaks plugin

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension XmlQueryPlugin Urgent Closed   n/a 4.2.1

Edit Form Data

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

Detail

The following statement
$VERSION = '$Rev$';

breaks the plugin code with

unknown-a871928:0: XInclude error : failed build URL

When I try to run the XmlQueryPluginRecipe5 example on the Plugin home page.

This is because, at line 1490 the statement

$xmldir .= "/$VERSION";    # ensure that the XML generated per topic is versioned

causes a bad URL to be generated - one that includes colons and spaces.

-- TWiki:Main/DipuDeshmukh - 2011-06-02

What is the best way to refer to the plugin revision for this purpose?

-- TWiki:Main.DipuDeshmukh - 2011-06-02

Once checked-in, the value of $VERSION becomes something like $Rev: 19215 (2010-07-10) $, representing the SVN number and date.

You could either change the $VERSION of this plugin to a hand coded string, such as "2011-06-02", or sanitize the string before using it as a directory name (filter string to keep only characters that are valid by the OS).

-- TWiki:Main.PeterThoeny - 2011-06-02

I have decided to go the string sanitation route. Thanks for the suggestions.I have fixed the problem and uploaded the files into SVN and released it.

-- TWiki:Main.DipuDeshmukh - 2011-06-02

ItemTemplate
Summary Statement $VERSION = '$Rev$' breaks plugin
ReportedBy TWiki:Main.DipuDeshmukh
Codebase 5.0.1
SVN Range TWiki-5.1.0-trunk, Sun, 22 May 2011, build 21317
AppliesTo Extension
Component XmlQueryPlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:21359 TWikirev:21360
TargetRelease n/a
ReleasedIn 4.2.1
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2011-06-03 - DipuDeshmukh
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback