#132 ✓resolved
Christopher Stawarz

Absolute paths to resources aren't handled correctly

Reported by Christopher Stawarz | July 7th, 2015 @ 02:35 PM | in 0.7.0 (closed)

When a resource file (e.g. image, sound) is identified via an absolute path,

  1. the file is copied to an appropriate subdirectory of the experiment's server-side "Experiment Cache" directory (good), but
  2. MWorks still tries to load the file using the original, client-side absolute path (bad).

Item 2 happens because the specialization of mw::ParameterValue::convert that returns a boost::filesystem::path uses mw::expandPath, and mw::expandPath doesn't prepend the working directory to paths that start with /. I think any changes will need to happen in ParameterValue::convert, since expandPath is used both client-side (where absolute paths shouldn't be altered) and server-side (where they should).

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The core framework and supporting libraries for the MWorks Suite

People watching this ticket

Pages