Tags:
create new tag
view all tags
I found a really strange bug in wikistore, unfortunately my Perls not up to understanding it.

In method prvGetUsersOfGroup:

Code was:

	 $topic =~ /^([^\.]*)\.(.*)$/;
	 if( $2 ) {
		  $topic = $2;
		  $web = $1;
	 }

When topic was Main.TWikiAdminGroup web was TWik topic was TWikiAdminGroup

Changed code to:

	 $topic =~ /^([^\.]*)\.(.*)$/;
	 if( $2 ) {
		  $web = $1;
		  $topic = $2;
	 }

Solved the problem.

-- JohnTalintyre - 01 Feb 2001

Note that the orginal code worked fine in isolation. I assmume sometimes, some versions of Perl store bracket results as indexes into original string. If this is is changed, you can get strange results. Will upload to CVS.

-- JohnTalintyre - 11 May 2001

Fixed to CVS for Access.pm module, so in TWikiAlphaRelease.

-- JohnTalintyre - 12 Jun 2001

TopicClassification:
BugResolved
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2001-08-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.