[Bug 1066834] Re: LevelForFileTypesDetection=0 produces unexpected results

2012-12-05 Thread Eric Klien
This bug is beyond annoying as I documented at
https://sourceforge.net/p/awstats/discussion/43430/thread/d2d5b969/

Here is the text from the posts that I did there:

After I upgraded from 6.95 to 7.0, the top ten pages started listing
.png files, etc. I tried downgrading and the problem didn't go away. I
put debug statements in awstats.pl and $NotPageList{png} has the correct
value. Any hints of what type of debug statements I should add to figure
out this problem?

Eric Klien

It seems that setting LevelForFileTypesDetection to 2 (from 0) stops the
statistics from adding more .png hits to the top 10 page list although
the old .png hits are still listed. (The apache log files are purged by
awstats after processing them since my logs get pretty big.) This seems
to be related to the bug documented at
https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1066834

I cleaned up the stuff between BEGIN_SIDER and END_SIDER in the relevant
.txt file and the problem seems to be solved. The fact that downgrading
didn't clean up the mistake in the .txt file threw me off for a while
when I tried to diagnose the problem.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to awstats in Ubuntu.
https://bugs.launchpad.net/bugs/1066834

Title:
  LevelForFileTypesDetection=0 produces unexpected results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1066834/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1066834] Re: LevelForFileTypesDetection=0 produces unexpected results

2012-12-05 Thread Eric Klien
A solution to the problem is to change the following in awstats.pl:

   if ($LevelForFileTypesDetection){
   $datatoload{$filemime} = 1;

to:

#   if ($LevelForFileTypesDetection)
{   $datatoload{$filemime} = 1;

This still won't handle the .cur extension.  You could handle it by
adding it to MimeHashLib at lib/mime.pm or you could simply change (
$LevelForFileTypesDetection = 2 || $MimeHashLib{$1} ) to (
$LevelForFileTypesDetection = 0 || $MimeHashLib{$1} )

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to awstats in Ubuntu.
https://bugs.launchpad.net/bugs/1066834

Title:
  LevelForFileTypesDetection=0 produces unexpected results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1066834/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1066834] Re: LevelForFileTypesDetection=0 produces unexpected results

2012-12-05 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: awstats (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to awstats in Ubuntu.
https://bugs.launchpad.net/bugs/1066834

Title:
  LevelForFileTypesDetection=0 produces unexpected results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1066834/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1066834] Re: LevelForFileTypesDetection=0 produces unexpected results

2012-10-15 Thread Robie Basak
** Changed in: awstats (Ubuntu)
   Importance: Undecided = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to awstats in Ubuntu.
https://bugs.launchpad.net/bugs/1066834

Title:
  LevelForFileTypesDetection=0 produces unexpected results

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1066834/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs