r4 - 15 Feb 2005 - 23:08:51 - SamHaslerYou are here: TWiki >  Codev Web > StatisticsScriptGrepsMultipleWebs
Tags:
, create new tag

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

Environment

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 | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
Codev.StatisticsScriptGrepsMultipleWebs moved from Codev.StasticsScriptGrepsMultipleWebs on 22 Mar 2002 - 23:57 by RichardDonkin - put it back
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo