Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
user.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Mar 2010 at 03:50 UTC
Updated:
3 Jan 2014 at 01:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
moshe weitzman commentedtake your pick. catch and i split patch author and reviewer roles on this.
Comment #2
moshe weitzman commentedComment #3
catchI opened a separate issue for #745702: Remove duff user_load() when new users are created but turns out the test failures there disappear when these patches are combined. So here's both together - all the failing tests pass locally for me.
Comment #4
moshe weitzman commentedWell that works out nicely. RTBC.
Comment #5
mikeryanDitto - in my performance testing, this slims down user_save() to the point where the heavy hitter time-wise is the db_next_id() call.
Comment #6
catch#3: bogus_user_loads.patch queued for re-testing.
Comment #8
catchRe-rolled.
Comment #9
moshe weitzman commentedComment #11
catchFixing test failures, which also happens to fix chx's complaint with the user->data patch.
Comment #12
moshe weitzman commentedComment #13
dries commentedCommitted to CVS HEAD. Thanks.
Comment #14
mfbThis is broken: Now there is nothing to unserialize user->data so it gets more and more serialized each time you save a profile category page.
If we don't unserialize $user->data here when the user is being saved, then we need to unserialize it earlier, like when the user is being loaded.
Although maybe there should be something in the base entity controller to automatically unserialize any serialized schema fields on load?
Comment #15
mfbMight as well see if this passes tests. Although this is pretty lame, $user->data ends up getting unserialized twice in a row by drupal_unpack() and unserialize()
Comment #16
catchMoving this back to fixed, dealt with in #721436: Remove magical fairy saving of cruft from user_save().
Comment #17
catch