Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Absolute paths to resources aren't handled correctly

#132

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).

Reported by Christopher Stawarz · July 7th, 2015 @ 02:35 PM

State: resolved
Milestone: 0.7.0
Assigned to: Christopher Stawarz Christopher Stawarz

Activity

  1. Christopher Stawarz
  2. Christopher Stawarz
  3. Christopher Stawarz
  4. Christopher Stawarz
    Christopher Stawarz
    • State changed from open to resolved
    • Assigned user set to Christopher Stawarz

    August 9th, 2016 @ 04:16 PM

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.