This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 42 - Config file parser should use URI module for paths.
Summary: Config file parser should use URI module for paths.
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.6.0b1
Hardware: All other
: P2 normal
Target Milestone: 0.7.0
Assignee: Terje Bless
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 43
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-26 20:05 UTC by Terje Bless
Modified: 2002-11-26 21:43 UTC (History)
0 users

See Also:


Attachments

Description Terje Bless 2002-10-26 20:05:30 UTC
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} = &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
Comment 1 Terje Bless 2002-10-26 20:10:43 UTC
No point fixing this since we'll rip out the code and replace it with
Config::General in any case. Setting blocker on Bug #43.
Comment 2 Terje Bless 2002-10-27 10:30:24 UTC
Setting target to 0.7.0.
Comment 3 Ville Skyttä 2002-11-26 16:43:44 UTC
Done, just committed the Config::General stuff.