Hi Lyle,
The uc_importer.module in the repository is now using an URL as the absolute path to an image. However it is unable to import its own export file for images with spaces in their names.
<image>
<path>http://localhost/drupal-5.2/files/cool+shot+of+PV.JPG</path>
<alt>cool shot of PV.JPG</alt>
<title>cool shot of PV.JPG</title>
</image>There seem to be two cases:
1) looking for the file "cool+shot+of+PV.JPG" instead of "cool shot of PV.JPG" in the $local_path variable. We aren't going to find "cool+shot+of+PV" using file_exists().
2) The file is going to be copied to $local_path with the function 'file_put_contents()'. fopen() has trouble with the URL-encoding:
* warning: fopen(http://localhost/drupal-5.2/files/taranaki+copy_0.jpg) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp\www\drupal-5.2\modules\ubercart\uc_importer\uc_importer.module on line 866.
* warning: fopen(http://localhost/drupal-5.2/files/cool+shot+of+PV.JPG) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp\www\drupal-5.2\modules\ubercart\uc_importer\uc_importer.module on line 866.I'm not sure how you would like to proceed. You could try and sort out the URL encoding/decoding keeping in mind that people will be generating the .XML files from various sources and will have to generate these properly URL-encoded image paths. Another option would be to use absolute file paths but be restricted to importing images from the local disk instead of anywhere on the web.
I'll be on the lookout for your decision and subsequent bazaar checkin.
-cdigs
