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

Item6831: Metadata repository

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine Documentation, Configure Enhancement Closed   major 6.0.0

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


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.


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.

Edit | Attach | Watch | Print version | History: r35 < r34 < r33 < r32 < r31 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r35 - 2013-10-15 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback