<?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>42</bug_id>
          
          <creation_ts>2002-10-26 20:05:30 +0000</creation_ts>
          <short_desc>Config file parser should use URI module for paths.</short_desc>
          <delta_ts>2002-11-26 21:43:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>0.6.0b1</version>
          <rep_platform>All</rep_platform>
          <op_sys>other</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>0.7.0</target_milestone>
          <dependson>43</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Terje Bless">link</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68</commentid>
    <comment_count>0</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2002-10-26 20:05:30 +0000</bug_when>
    <thetext>Reported by Björn Höhrmann:

In the config file there are references to other config files like

Element Map	file:///usr/local/validator/htdocs/config/eref.cfg
FPI to Text	file:///usr/local/validator/htdocs/config/fpis.cfg
....

Those lines get parsed like

      if    ($v =~ s(^file://){}) {$cfg{$k} = &amp;read_cfg($v)  }
      ...

plain wrong. The URI module should be used to parse the URIs and the
path() method used to get the path, otherwise you run into problems with
Win32 file URI references like

  file:///c:/winapp/validator/htdocs/config/eref.cfg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70</commentid>
    <comment_count>1</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2002-10-26 20:10:43 +0000</bug_when>
    <thetext>No point fixing this since we&apos;ll rip out the code and replace it with
Config::General in any case. Setting blocker on Bug #43.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87</commentid>
    <comment_count>2</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2002-10-27 10:30:24 +0000</bug_when>
    <thetext>Setting target to 0.7.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190</commentid>
    <comment_count>3</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2002-11-26 16:43:44 +0000</bug_when>
    <thetext>Done, just committed the Config::General stuff.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>