create new tag
, view all tags

Hotfix 1 for TWiki 4.0.4

NOTE: This HotFix has been superceeded by a newer version, see TWiki-4.0.4 for latest HotFix

This first hotfix for TWiki-4.0.4 contains the fixes for the important Known Issues found since the release of TWiki-4.0.4

The idea of hotfixes is new. The idea is to provide a more customer friendly approach to providing fixes to the more urgent problems found between releases and provide a quick and easy way for a TWiki administrator to install the hotfix by simply downloading a zip or tgz file, unpack it and copy all the files on top of an existing running production site (a backup is as always recommended).

Known Problems resolved in this hotfix.

Bugs:Item2609 - Func.pm API function wikiToEmail has a coding error.

This fix only has impact on those that use the ActionTrackerPlugin. The actionnotify script in the version 8385 of ActionTrackerPlugin could not find the email address of users having a home topic in the new TWiki4 style. And it could not find the email address when it was stored in .htpasswd. This has been fixed in version 10883 of the ActionTrackerPlugin but requires that this hotfix is applied which fixes a bug in the wikiToEmail function in lib/TWiki/Func.pm

File updated is lib/TWiki/Func.pm

Bugs:Item2602 - AfterEditHandler only called by preview, not save

This fixes a problem for plugins. The issue is that the afterEditHandler is called inconsistently, which makes a beforeEditHandler / afterEditHandler pair asymmetric, e.g. content can't be changed and reverted in a consistent way.

This fix is recommended to ensure that plugins you later install will work correctly. This is the same fix earlier made available by itself on AfterEditHandlerCallFix

File updated is lib/TWiki/UI/Save.pm

Bugs:Item2595 - Emails are not stored in user topic when TWiki setup in a corporate environment

TWiki will normally copy the email address given in the registration form to the home topic of the user. Except when the PasswordManager in configure is TWiki::Users::HtPasswdUser. Then the email address is stored in the .htpasswd file and not copied to the users homepage. The reason for this is that public Internet sites are normally using .htpasswd type authentication and then you want to hide the email address from email harvesting bots. When you use another type of authentication like LDAP you cannot store the email address this way and instead the email address kept in the user topic is used for WebNotify and actionnotify. It is typically in a corporate environment that you use a central authentication mechanism.

Unfortunately in 4.0.3 and 4.0.4 the email address was never copied to the user topic during registration, even when the PasswordManager was set to 'none'.

This hotfix solves this problem. Remember to check the home page of the users that registered after you installed/upgraded to 4.0.3/4.0.4. You may have to manually add the email address to their home topic.

File updated is lib/TWiki/UI/Register.pm

Bugs:Item2573 - %META{"formfield" name="formfieldname"}% broken (returns nothing)

This hotfix makes the %META{"formfield" name="formfieldname"}% work.

File updated is lib/Render.pm

Bugs:Item2518 - INCLUDE from external url with filename breaks relative links of included content

When you include a URL like http://mydomain.com/subdir/index.htm and this page contains graphics and links that are linked relatively to the current location (which is quite normal) the images are not loaded and the links are all wrong. This hotfix take care that these relative links are converted to absolute links.

File updated is lib/TWiki.pm

Files updated in this hotfix


How to apply

Download the package from either zip or tgz.

  • hotfix-4.0.4-1.tgz is best for Linux/Unix as it contains the correct file access rights
  • hotfix-4.0.4-1.zip is best for Windows or for a hosted environment where you prefer getting default file access rights.

To make it easy for all - the hotfix is a zip or tgz file with the files placed in the same directories as a normal twiki installation. Simply copy the files on top of the existing files.

On Unix/Linux you may need to re-apply the correct file access rights to the replaced files. See SettingFileAccessRightsLinuxUnix for a quick way to do this in general.

-- Contributors: KennethLavrsen - 09 Jul 2006


Excellent, thank you very Kenneth much for the initiative and for following through! smile

For users/administrators it would be most helpful to create hotfixes that include all the content of previous hotfixes, so that it is easy to update a TWiki by applying just one hotfix.

-- PeterThoeny - 10 Jul 2006

Hmm, shouldn't this topic be called HotFix04x00x04x01

-- HeinrichNirschl - 10 Jul 2006

Yes. Dammed. I will rename and create a Hotfix04x00x01x01 topic that points to this one. Good catch.

-- KennethLavrsen - 10 Jul 2006

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivetgz hotfix-4.0.4-1.tgz r1 manage 84.6 K 2006-07-09 - 12:30 KennethLavrsen tgz of Hotfix 1 for TWiki-4.0.4
Compressed Zip archivezip hotfix-4.0.4-1.zip r1 manage 87.8 K 2006-07-09 - 12:29 KennethLavrsen Zipped Hotfix 1 for TWiki-4.0.4
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2006-09-06 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.