<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5665</bug_id>
          
          <creation_ts>2008-04-27 22:37:21 +0000</creation_ts>
          <short_desc>can&apos;t use string as an array while strict refs in use for log file</short_desc>
          <delta_ts>2008-11-18 15:08:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>LogValidator</product>
          <component>logprocess.pl</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hugh Byrne">hugh</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19951</commentid>
    <comment_count>0</comment_count>
    <who name="Hugh Byrne">hugh</who>
    <bug_when>2008-04-27 22:37:21 +0000</bug_when>
    <thetext>Installed W3C-Logvalidator and try to run
&gt;logprocess -f logprocess.conf
Can&apos;t use string (&quot;\var\log/apache/access.log combi&quot;) as an ARRAY ref while &quot;str
ict refs&quot; in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.

I am running Windows XP SP2

Perl version as below
C:\Program Files\W3C-LogValidator&gt;perl -v

This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 3 registered patches, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 1002 [283697] provided by ActiveState http://www.ActiveState.com
Built Jan 10 2008 11:00:53

Any help would be much appreciated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19979</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-04-29 04:59:27 +0000</bug_when>
    <thetext>Hello,

&quot;\var\log/apache/access.log&quot; looks odd, are you sure this is the path to your logs?

I&apos;ll try to look at why it triggers such an error.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19992</commentid>
    <comment_count>2</comment_count>
    <who name="Hugh Byrne">hugh</who>
    <bug_when>2008-04-29 22:23:15 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hello,
&gt; &quot;\var\log/apache/access.log&quot; looks odd, are you sure this is the path to your
&gt; logs?
&gt; I&apos;ll try to look at why it triggers such an error.

Olivier many apologies for the typo I tried so many log combinations.
The issue appears to be that the process is failing before it attempts to open the file whether the file exists or not.

I have tried the following location examples and some more besides.

Can&apos;t use string (&quot;\var\log\apache\access.log combi&quot;) as an ARRAY ref while 
&quot;strict refs&quot; in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.
Can&apos;t use string (&quot;/var/log/apache/access.log combi&quot;) as an ARRAY ref while 
&quot;strict refs&quot; in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.
Can&apos;t use string (&quot;&apos;c:\weblogs\access.log&apos; combined&quot;) as an ARRAY ref while 
&quot;strict refs&quot; in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.
Can&apos;t use string (&quot;c:\weblogs\access.log combined&quot;) as an ARRAY ref while 

I tried looking at the perl and docs etc. to debug but it was a bit beyond me I&apos;m afraid as I have a very basic knowledge just about sufficient to install and run etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22168</commentid>
    <comment_count>3</comment_count>
      <attachid>602</attachid>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-10-14 15:59:51 +0000</bug_when>
    <thetext>Created attachment 602
proposed patch

Patch proposed (off-list) by Colm Dougan. To be tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22463</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-11-18 15:08:57 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Created an attachment (id=602) [details]
&gt; proposed patch
&gt; 
&gt; Patch proposed (off-list) by Colm Dougan. To be tested.

I applied Colm&apos;s patch and am moving forward with a release. </thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>602</attachid>
            <date>2008-10-14 15:59:51 +0000</date>
            <delta_ts>2008-10-14 15:59:51 +0000</delta_ts>
            <desc>proposed patch</desc>
            <filename>logval.patch</filename>
            <type>text/plain</type>
            <size>509</size>
            <attacher name="Olivier Thereaux">ot</attacher>
            
              <data encoding="base64">LS0tIFczQy9Mb2dWYWxpZGF0b3IvQ29uZmlnLnBtLmJhayAgICAgIDIwMDgtMTAtMDkgMjI6NDQ6
NTMuNjI2MDAwMDAwICswMTAwCisrKyBXM0MvTG9nVmFsaWRhdG9yL0NvbmZpZy5wbSAgMjAwOC0x
MC0wOSAyMjo0NDoyNi45Njk3NTAwMDAgKzAxMDAKQEAgLTE2NCw3ICsxNjQsNyBAQAogICAgICAg
aWYgKGV4aXN0cygkdG1wY29uZntDdXN0b21Mb2d9KSkKICAgICAgIHsKICAgICAgICAgICAgICAg
IyBpZiB0aGVyZSBhcmUgc2V2ZXJhbCBsb2cgZmlsZXMsICR0bXBjb25me0N1c3RvbUxvZ30KaXMg
YW4gYXJyYXkKLSAgICAgICAgICAgICAgIGlmIChkZWZpbmVkIEB7ICR0bXBjb25me0N1c3RvbUxv
Z30gfSkKKyAgICAgICAgICAgICAgIGlmIChyZWYoJHRtcGNvbmZ7Q3VzdG9tTG9nfSkgZXEgJ0FS
UkFZJykKICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBmb3JlYWNoIG15ICRjdXN0
b21sb2cgKEB7ICR0bXBjb25me0N1c3RvbUxvZ30gfSkKICAgICAgICAgICAgICAgICAgewo=
</data>

          </attachment>
      

    </bug>

</bugzilla>