Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2005 at 01:04 UTC
Updated:
3 Mar 2008 at 15:53 UTC
node_load function in node.module does not call drupal_unpack after retrieving node and author user informations.
author user 'data' field is thus still serialized, and author prefs cannot be accessed as usual.
this leads to issues on modules using node's author 'data' fields (link hook in privatemsg, which access author prefs to display link or not).
the drupal_unpack is done in 4.6, but not in head, and this is not described as a change on the update module handbook page, so i'm submitting this potential issue.
patch to add the missing call is attached (this fixes the issue with privatemsg link hook).
please review and apply the patch if necessary.
| Comment | File | Size | Author |
|---|---|---|---|
| node_load-unpackfix.patch | 855 bytes | syllance |
Comments
Comment #1
Bèr Kessels commentedShould we not only unpatch the parts that are potentially packed.
So instead of a $node = unpack($node), do a
$node->data = unpack($node->data) and same for $node->user->data ?
Please change the patch status back If I am completely mistaken.
Comment #2
Jaza commentedThis is possibly still an issue in 6.x (personally, I think we should remove serialized fields such as
$node->datafrom core).Anyway.. moving.
Comment #3
ricabrantes commentedI can´t find this bug.. closed