Since Dakar if you have a custom META without a key
name, like the following:
It was picked up by TWiki::Store, could be manipulated and it was preserved when saved.
In the latest build, TWiki::Store is only reading the METAs that have the key
name, ignoring the rest.
The following patch solves the issue, but I'm not sure if it's a problem of TWiki::Store that must decide how to put a META in the $meta object, or if the semantic of putKeyed should be changed to just "put" if the META doesn't have the key
name.
Index: TWiki/Store.pm
===================================================================
--- TWiki/Store.pm (revision 14423)
+++ TWiki/Store.pm (working copy)
@@ -1330,7 +1330,10 @@
if (defined($keys->{name})) {
# don't attempt to save it keyed unless it has a name
$meta->putKeyed( $1, $keys);
- }
+ } else {
+ $meta->put( $1, $keys);
+ }
+
'';
)gem;
I put the severity to "Urgent" because this bug broke our main application.
--
TWiki:Main/RafaelAlvarez - 17 Jul 2007
I'll be uploading the Unit Tests for this fix this weekend.
--
TWiki:Main.RafaelAlvarez - 18 Jul 2007
Cleaned "WaitingFor" field.
--
TWiki:Main.GilmarSantosJr - 10 Aug 2008