DECA-113: Decapod's server contains hardcoded paths in a number of places

Metadata

Source
DECA-113
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Colin Clark
Reporter
Colin Clark
Created
2010-06-09T00:01:42.705-0400
Updated
2012-01-10T09:50:01.795-0500
Versions
  1. 0.3
Fixed Versions
  1. 0.4
Component
  1. Server

Description

The Decapod server has hardcoded paths in a number of locations:

1. In dserver.conf, the configuration file used to set CherryPy static mount points (tools.staticdir.root)
2. In both copy/pasted version of the server's capture() method (a path to Capture.html)

These should be removed to reduce brittleness and assumptions about how the file system is laid out.

Comments

  • Colin Clark commented 2010-06-25T19:10:29.600-0400

    Hardcoded paths have been largely removed from the MockServer in favour of the ResourceSource. dserver still needs to updated accordingly.

  • Colin Clark commented 2010-07-14T10:25:26.147-0400

    Hardcoded paths have been removed completely with the introduction of the ResourceSource, and the removal of the forked servers.