lr_log2report fails on processing a combined log

Bug #668719 reported by René Brandenburger
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
lire (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: lire

running

lr_log2report combined /path/to/logs/web.log ~/test.txt

gives the following error:
Parsing log file using combined DLF Converter...
lr_log2report: ERROR store doesn't contain a 'lire_import_log' stream at /usr/share/perl5/Lire/DlfConverterProcess.pm line 170

no log is generated

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: lire 2:2.1-1
ProcVersionSignature: Ubuntu 2.6.35-23.36-generic 2.6.35.7
Uname: Linux 2.6.35-23-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Sat Oct 30 14:58:09 2010
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=de_LU.utf8
 SHELL=/bin/bash
SourcePackage: lire

Revision history for this message
René Brandenburger (rene-brandenburger) wrote :
Changed in lire (Ubuntu):
status: New → Confirmed
Revision history for this message
Jesús Córdoba (j-cordoba) wrote :

Patch for this:

/usr/share/perl5/Lire/DlfStore.pm

sub dlf_streams {
     my $self = $_[0];

     my @streams = ();
- my $sth = $self->{'_dbh'}->table_info( "", "", "dlf_%", "TABLE" );
- $sth->execute();
- while ( my $table_info = $sth->fetchrow_hashref() ) {
- next unless $table_info->{'TABLE_NAME'} =~ /^dlf_(.*)/;
- next if $table_info->{'TABLE_NAME'} =~ /_links$/;
- push @streams, $1;
- }
- $sth->finish();
+ # JB : table_info seems to fail
+ my @table_list = $self->{'_dbh'}->tables;
+ foreach my $table ( @table_list) {
+ next unless $table =~ /dlf_(.*)"/;
+ next if $table =~ /_links$/;
+ push @streams, $1;
+ }
      return @streams;
 }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.