This is the Bugs topic for
TWiki:Codev/RepositoryForSiteAndWebMetadata
--
TWiki:Main/HideyoImazu
- 2012-01-13
Revision 23444
%MDREPO{...}% has been enhanced in the following two aspecects.
- It calls TWiki::expandStandardEscapes() with the
format
parameter.
- The
exclude
parameter value is now regarded as a series of regular expressions.
VarMDREPO has been updated accordingly.
Plus the table in the "Parameters" section is now have class="twikiTable" in the
table
tag so that it is rendered in the same manner as other tables.
Revision 23481
%MDREPO{...}% enhancements with the
format
parameter.
-
?FIELD_NAME?IF_FIELD_HAS_VALUE?
allowed = as the delimiter. But that caused a problem with a URL having parameters -- http://server/path?param=value;param2=value2 So = is now excluded as well as < > ".
-
?!FIELD_NAME?IF_FIELD_HAS_NO_VALUE?
is introduced for symmetricalness.
Revision 23520
Further enhancement with %MDREPO{...}%'s
format
parameter.
Field name reference by $_FIELD_NAME
: _
(underscore) added
The
format
parameter value was processed by TWiki::expandStandardEscapes() before being used, which is not right.
Because there was no way to get literal
$_
.
$dollar_
was converted to
$_
before field value expansions were conducted.
TWiki::expandStandardEscapes() needs to be applied after field value expansion.
This implies that
$FIELD_NAME
format cannot be used because standard escapes matches
$FIELDNAME
format hence all standard escapes are expanded to the null string ("") in the field value expansion phase.
As such, a field value reference is now
$_FIELD_NAME
instead of
$FIELD_NAME
.
$question
There might be a situation where literal
?something?something?
needs to be returned.
For that,
$question
is introduced, which is replaced with
?
after
?FIELD_NAME
and
?!FIELD_NAME
constructs are processed.
Revision 23525
UnitTestContrib/test/unit/MdrepoTests.pm has been modified according to the %MDREPO{...}% change.
Revision 23916
TWiki::Mdrepo::getList() and TWiki::Mdrepo::getRec() were returning tainted data.
There were cases where operations using those data caused fatal error because of tainted data.
The error no longer happens because both functions now cleanse data before they return.
Revision 24396
In TWiki::new(), TWiki::Mdrepo::new() was called after TWiki::Users::new().
But there are cases where you want to use metadata repository in TWiki::Users::new().
So now, TWiki::Mdrepo::new() is called before TWiki::Users::new() is called.
Revision 24992
TWiki::Store::getListOfWebs() may take a very long time on a large site having thousands of webs.
So far, under
{Mdrepo}{WebRecordRequired}
, the
canmoveto
and
cancopyto
filters triggered a shortcut.
Now the
template
filter also triggers the shortcut.