create new tag
, view all tags

Bug: statistics script greps in multiple webs

The script statistics greps in more than on web if you have two very similar web names.

It could be fixed very easily in the script statistics. There are some lines like this one:

my @list = grep( /^\|[^\|]*\|[^\|]*\| view \| $webName/, @theLogList );

These lines should be changed into

my @list = grep( /^\|[^\|]*\|[^\|]*\| view \| $webName\./, @theLogList );

The \. after the $webName will catch only lines with the full web name we are looking for.

Test case

  • Build a web "SE"
  • Build a web "SEAL"
  • create a statisitc for the "SE" web, it will also have the actions done in the "SEAL" web


TWiki version: Dec 2001
TWiki plugins: None
Server OS: Linux
Web server: Apache
Perl version: 5.00502
Client OS: Windows
Web Browser: IE 5.5

-- StefanScherer - 25 Feb 2002

Follow up

Fix record

As it turns out, I fixed this independently as part of rewriting this script for StatisticsUsingLessResources, but no doubt I will introduce new and more interesting bugs... smile

-- RichardDonkin - 04 Mar 2002

I just checked this is correct in the new script's regex, so I'm marking this resolved (will go into TWikiAlphaRelease soon). You can test the script at StatisticsUsingLessResources (or wait a day or two if you want a version with fewer module dependencies).

-- RichardDonkin - 22 Mar 2002

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-02-15 - SamHasler
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.