Closed (fixed)
Project:
Storage API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
27 Feb 2013 at 14:55 UTC
Updated:
5 Feb 2015 at 11:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
esbenvb commentedThis patch solves the problem.
IMPORTANT: When porting the patch, make sure to provide proper author information as specified on http://drupal.org/user/989064 - thanks.
Comment #2
Island Usurper commentedI like it. It'd be kind of nice if it would detect if it's using the Filesystem service and return a good value then, but it's probably not necessary.
Comment #3
jbrown commentedDrupalStorageStreamWrapper is just a hack so that file and image fields can utilise Storage API. It is not intended to be used in this manner.
Comment #4
esbenvb commented#4 But it's not unusual that a module tries to copy from one file URI to another - and without this patch, it will fail because NULL == NULL and NULL !==FALSE...
Comment #5
bgilhome commentedIs this on the right track?
Comment #6
dansanjou commented#5 works for me, I just did a little change to the return value it wasn't returning the correct path with the $storage->getUri
Comment #6.0
dansanjou commentedtypo
Comment #7
queenvictoria commentedWorks for me and fixes an issue with Storage API and PDF to Image
https://www.drupal.org/project/pdf_to_imagefield
Thanks @dansanjou
RTBC +1
Comment #8
perignon commentedComment #9
perignon commentedHave to re-roll this patch because of file changes.
Comment #11
perignon commentedIn dev! Thanks for the review!
Comment #12
perignon commentedTagging for release documentation.