This is an experimental version of PatchRelease01x01Contrib.
To configure your Foswiki to install from this repository, modify the
{ExtensionsRepositories}
setting in your
lib/LocalSite.cfg
like this:
$Foswiki::cfg{ExtensionsRepositories} = 'Foswiki.org=(http://foswiki.org/Extensions/,http://foswiki.org/pub/Extensions/);Local=(http://365847.689093.cn/Extensions/Testing/,http://365847.689093.cn/pub/Extensions/Testing/)';
Read more about configuring Extension repositories
Patched by this package:
This extension installs fixes for the following critical issues:
Item10963
: Perl 5.14 deprecated use of qw() without enclosing parenthesis (qw())
- Type of fix: System Compatibility
- Applies to Foswiki-1.1.0 thru Foswiki-1.1.5
- Patches:
lib/Foswiki/Configure/Checker.pm
Item12285
: Security fixes related to the Maketext vulnerability.
- Type of fix: Security
- Applies to Foswiki-1.1.0 thru Foswiki 1.1.6.
- Patches:
lib/Foswiki/Macros/MAKETEXT.pm
Item12391
: More Maketext validations
- Type of fix: Security
- Applies to Foswiki 1.1.0 thru 1.1.7.
- Patches:
lib/Foswiki/Macros/MAKETEXT.pm
Item12414
: Newer versions of File::Temp
cause die in Foswiki::Sandbox::sysCommand()
- Type of fix: Perl Compatibility
- Applies to Foswiki-1.1.6, Foswiki-1.1.7 and Foswiki-1.1.8
- Patches:
lib/Foswiki/Sandbox.pm
Item12616
: Warnings and Errors due to newer versions of perl.
Item12849
: Add ACL * wildcard for backwards compatibilty with Foswiki 2.0.
- Type of fix: Foswiki Backwards Compatibility
- Applies to all Foswiki 1.1 versions.
- Patches:
lib/Foswiki/Users.pm
Item13775
: Warnings due to CGI::param called in list context, and deprecation of -any
pragma.
Item13777
: Backport changes in URLPARAM and SEARCH for extension compatibility.
- Type of fix: Foswiki Backwards Compatibility
Usage
This extension allows you to "hotfix" urgent issues on your Foswiki system. It has been tested on Foswiki 1.1.0 and beyond. It does not work on Foswiki 1.0.x.
When this extension is installed, it adds some required libraries to your Foswiki system, and includes a plugin to display an inventory of patches on the system. This extension does not ship with any patches.
this extension will be identified as a dependency of the actual patch, so that necessary infrastructure is installed.
Patches are only applied if the target file is an
exact match to the original file. There is no attempt to do "fuzzy" patching.
There is no "dependency" between patches. Patches are installed in order of their patch file name.
Patches will be mapped from the default Foswiki filename to the directory location used on the target system.
Before any file is patched, a backup is copied to
working/configure/backup/<Itemxxxx-nnn-YYYMMDD-HHMMSS>
. If archive tools are found on the system, a zip or tar archive is created of the backup.
Warning: Can't find topic Extensions/Testing.PatchFoswikiContribPlugin
Installation
Patches are applied during the
POSTINSTALL
exit, and removed in the
PREUNINSTALL
exit. You must install this extension
using the "Extension Installer" to get automatic patching. If this extension
is installed by direct unzip / tar -x, or using pseudo_install.pl, patches will not be applied and will
have to be manually patched using the
patch
tool.
Manual installation
unzip
or
tar -x
the extension archive. It can be extracted into the root
of the foswiki installation if the directory paths use the default location.
The structure of a typical patch:
|-- data
| |-- System
| |-- PatchRelease01x01Contrib.txt
|-- lib
| |-- Foswiki
| |-- Contrib
| |-- PatchItem13775Contrib.pm
| |-- PatchRelease01x01Contrib
| |-- DEPENDENCIES
|-- working
|-- configure
|-- patch
|-- Item11267-110.patch (A unique version of each patch for each applicable Foswiki version.)
|-- Item11267-111.patch
|-- Item11267-....patch
|-- Item12616-118.patch
|-- Item13775-118.patch
|-- Item13775-119.patch
|-- Item13777-118.patch
|-- Item13777-119.patch
The files in the
working/configure/patch
directory are the actual patches.
If a collection of related files is patched in a single file, they can be manually applied by
changing to the root of the install and running:
patch -p0 < working/configure/patch/Item54321-001.patch
By a "collection of related files",
Item12345-001.patch
might contain
patches for
lib/Foswiki.pm
and
lib/Foswiki/Render.pm
. These could be
appplied directly. But if
Item12345-002.patch
contained different versions
of patches for the same file, ex.
lib/Foswiki.pm
for 1.1.9, and
lib/Foswiki.pm
for 1.1.8, then the file would have to be split apart in
order to apply it manually.
Info
Dependencies: |
Name | Version | Description |
---|
PatchFoswikiContrib | >=2.1 | Required | |
Change History: |
|
1.0 (02 Oct 2015) |
Initial version |