Closed (fixed)
Project:
Display Suite
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2011 at 21:15 UTC
Updated:
9 Mar 2011 at 17:31 UTC
I had the problem, when a string in the node has some special characters the unserialize() function failed an the node is loaded by node_load() in _solr_document_to_node().
To prevent this problem, the serialized string should be urlencoded before the data is sent to solr (see patch).
Or is there another solution?
| Comment | File | Size | Author |
|---|---|---|---|
| nd_search-serialize-encode.patch | 780 bytes | weri |
Comments
Comment #1
swentel commentedThis is interesting, I've been bitten by this one too a couple of times, but I never really investigated this. Moving this to the Display Suite project to test (support for search in D7 moved overthere too). I'll let you know how this turns out!
I'm not fully sure If I'll be able to commit this to D6 since people will have to wipe their entire index, maybe as a patch for the next download.
Comment #2
swentel commentedI've committed this to the 7 branch of DS after testing and your fix works! Great, haven't committed this to D6 version because people running previous versions and having to upgrade would have to wipe their entire index. Added info on the project page of http://drupal.org/project/nd_contrib with a link to this patch so people can use it if they really have to.
Comment #3
weri commentedGreat! Thank you!
People could be confused, because the issue is set to version 7 and the patch is for version 6? I think it's better to change the Version of this issue back to 6?
Comment #4
swentel commentedTrue, changed the version tag.