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

Item5773: SEARCH in the topicinfo for author not working well because of non-compatible changes in format

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Confirmed   major  

Edit Form Data

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


Two things fail in TWiki 4.2 if login names are different from wiki names:

  • %SEARCH{"whatever" order="editby"}% sorts according to login names, which looks like "random" fixed in Item5443
  • %SEARCH{"TOPICINFO.*author= .%WIKINAME%." type="regex"}% should return all pages edited by the current user, but fails if there are login names which are different from wiki names.
    • The (anyway ugly) workaround %SEARCH{"TOPICINFO.*author= .%USERNAME%." type="regex"}% fails in our case where we have special characters in our login names

Both seem to be related to the fact that with 4.2, the "internal" user name as derived from the login name is being used for TWiki's system actions.

-- TWiki:Main/HaraldJoerg - 14 Mar 2008

From Cairo/4.0 to 4.1 the spec changed so instead of login ID the wikiname was stored in the TOPICINFO author field.

And in 4.2 we again changed to using canonical user ID (cUID)

There is no fix to this problem. This was a non backwards compatible change. We have learned now that changing was seems to be a harmless internal format has a consequence because TWiki apps dig information out of the META content - because there is no other alternative.

For 4.2.1 we probably change the cUID a little to address another issue. We have no alternative to this. So in order to resolve this we probably have to add an additional wikiname or displayname field to the META that people can search for. This requires an update of peoples META searches. And it requires an update scriptof some kind which people only have to use if they need this specific feature.

This may be possible in the scope of 4.2.1. But it can be deferred to 5.0 thus the Normal priority.

Better to delay the fix and get a proper fix than to rush things through.

To those that need a work around for 4.2.0 - change your search so it searches for BOTH the wikiname and the login name. That will work for most. If you use non A-Za-z0-9 login names you may have to find another way to search or to make an advanved piece of TML to create a cUID from the login name.

-- KennethLavrsen - 13 Jul 2008

Summary SEARCH in the topicinfo for author not working well because of non-compatible changes in format
ReportedBy TWiki:Main.KennethLavrsen

SVN Range TWiki-5.0.0, Wed, 09 Jul 2008, build 17004
AppliesTo Engine

Priority Normal
CurrentState Confirmed


TargetRelease major

Topic revision: r1 - 2008-07-13 - KennethLavrsen
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