Closed (won't fix)
Project:
Services
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2011 at 01:22 UTC
Updated:
17 Dec 2014 at 16:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
marcingy commentedComment #2
marcingy commentedWe are going to remove these libraries #1325572: Integrate services with the libraries module to improve handling of third party libraries.. They should never have been in repo in the first place.
Comment #3
marcingy commentedLibraries no longer ship with services
Comment #4
kylebrowning commentedYaml is currently broken, this needs to happen.
Comment #5
marcingy commentedWe need to update d6 to work with the latest version of spyc rather than committing the entire patch.
Comment #6
marcingy commentedThis this should be in head - http://drupal.org/node/1334784
Comment #7
cotto commentedmarcingy, that doesn't seem to be the problem. It looks like the root problem spyc doesn't know how to serialize an array of objects. The following code will also fail.
The fix for spyc is pretty simple (attached). I've also submitted an upstream issue with the same patch. It's likely to be a while before someone upstream gets around to fixing the issue, so we should probably figure out what to do in the meantime.
Comment #8
marcingy commentedI am not sure how to handle this let me think some more! I'm going to show some ignorance around this library can we make sure we supply an array or are there cases where we need to provide an object. I ask as all data being passed to services should be array anyway.
Comment #9
cotto commentedThe issue isn't the data that's being passed to services, but the data that's being returned.
Converting anything that'll get serialized through spyc into an array is possible, though clunky. I don't see any reason why objects strictly need to be part of the output, but it also seems weak reformat services' data because of a simple upstream bug in spyc.
The best way to deal with this may be to include a patched spyc with Services. If a similar patch gets integrated into upstream spyc, services can go back to requiring the download as it does now.
Comment #10
apotek commentedI think if someone can post a patched version of Spyc in this thread, that is all that needs to be done. Services should not be including the spyc library in its download. Maybe a posted patch, and a link from the main project description page to that patched version of spyc would tide users over until spyc fixes itself upstream.
Comment #11
marcingy commentedThe approach described by @apotek sounds like the best option. Moving to d7 as we need fix there as well I'm guessing.
Comment #12
cotto commentedHere's the patched version of spyc, renamed due to d.o's filename extension limits.
Comment #13
apotek commentedThanks! This looks good to me and I've committed this into production.
Comment #14
marcingy commentedMarking as rtbc note do not commit this patch ;) Just noting it has sign off and works. I have added a link to the on the main page to this issue.
Comment #15
rypit commentedDoes it make sense to use the Libraries API for all external libraries? library_get_path seems like a nice way to organize things moving forward. It seems like it's a very organized way to handle libraries for multisites especially. Should this be a feature request?
Comment #16
marcingy commented#15 is total different issue #1325572: Integrate services with the libraries module to improve handling of third party libraries. and nothing to do with the problem here and already has an item in the services queue and patch that needs work. Whether libraries is used or not there is still an upstream issue sypc and this library should not exist any on d.o in a committed state.
Comment #17
kylebrowning commentedIm marking this as won't fix, id like #15 to push forward asap.
Comment #18
pcoughlin commentedI am still not able to get the Status Report warning to go away. Have put spyc.php in every folder I can find a reference to and the warning is still present.
Comment #19
marcingy commentedComment #20
wal-78 commentedrest_server_spyc_upgrade-7.x.patch queued for re-testing.
Comment #21
marcingy commentedPlease do not re-open old issues this was solved in a different way using libraries api.
Comment #22
elijah lynnComment #23
elijah lynn