|
From: Steve L. <sw...@ca...> - 2008-06-12 01:45:40
|
Just to follow up on this, given that we only had the moodle part of the demo running with the aid of Windows <-> Mac connectivity we didn't go live with that on the day. However, this evening we've worked on getting playr working on the Windows box with some success. In doing this we discovered a bug in constructr when running on a Windows server. The problem is to do with the writing of paths directly into href attributes when writing out to XML files. These paths need to go through an encoding process to turn them in to valid relative URIs. Our content was failing because constructr was using the DOS-style backslash path separator which isn't valid in a URI. I've attached a diff to this message to show you how I fixed the problem for our content but the real solution is to hunt down a class for dealing with other characters that need escaping too. I have some python code which does something very similar if you end up needing to roll your own -- I had a quick look and couldn't see an obvious way to do this with java.net.URI or java.net.URL. Tell me if you want me to commit this diff back to the SVN or if you want to fix this properly yourself ;-) Steve |