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,
- the file is copied to an appropriate subdirectory of the
experiment's server-side "Experiment Cache" directory (good),
but
- 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
-
Christopher Stawarz July 7th, 2015 @ 02:36 PM
- Tag cleared.
-
Christopher Stawarz August 9th, 2016 @ 10:35 AM
- Milestone set to 0.7.0
-
Christopher Stawarz August 9th, 2016 @ 04:16 PM
- State changed from open to resolved
- Assigned user set to Christopher Stawarz
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.
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