Submitted by : hideo at yokohama at: 2006-10-25T09:20:46+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

ZWiki can be configured to accept anonymous posting. In such cases, the IP address of the poster is stored as a last editor name.

When only the IP address is recorded as the last editor name, ZWiki inhibits showing this name.

It does so by testing the stored name against a regular expression, seemingly trying to match IP addresses.

However this regular expression is incorrect, and matches digit-only strings. If your User ID consists of digits only--- such as the LDAP user ID in my situation --- this regular expression will match, and the user name will not be shown.

I found this when I was trying to convert the digital user ID into a human readable full name. ZWiki didn't show the converted string because of this implementation.

The regular expression is in linkTitleFrom() in, but I think there are more. I noticed that the comment poster user name has the same problem. I haven't studied the source but I suspect the same thing is happening.

changed the regex --betabug, Wed, 14 Feb 2007 02:47:05 -0800 reply

Status: open => closed

It does some halfway decent recognition of an IP address now. Good enough for now, but of course maybe there could have been a better test for anonymous changes apart from looking for an IP address. Should be in the CodeRepos by now, so I'm closing this.

Thank you Hideo!