6.0.0-alpha12
6/12/25

[#9168] DB Error when doing ActiveSync sync
Summary DB Error when doing ActiveSync sync
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester slusarz (at) horde (dot) org
Created 08/10/2010 (5420 days ago)
Due
Updated 08/11/2010 (5419 days ago)
Assigned 08/10/2010 (5420 days ago)
Resolved 08/11/2010 (5419 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/11/2010 12:02:05 AM Michael Rubinsky Comment #3
State ⇒ Resolved
Reply to this comment
Don't have my activesync devices available at the moment to test, but 
this should be fixed now.
08/10/2010 10:51:23 PM Michael Rubinsky Assigned to Michael Rubinsky
 
08/10/2010 10:51:03 PM Michael Rubinsky Queue ⇒ Horde Framework Packages
State ⇒ Assigned
Version ⇒ Git master
 
08/10/2010 08:12:56 PM Michael Slusarz Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ DB Error when doing ActiveSync sync
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Seeing this:

2010-08-10T14:08:54-06:00 DEBUG: HORDE [horde] SQL QUERY FAILED: 
SQLSTATE[23502]: Not null violation: 7 ERROR:  null value in column 
"sync_user" violates not-null constraint
         INSERT INTO horde_activesync_map (message_uid, sync_modtime, sync_key,
           sync_devid, sync_folderid) VALUES
           ('20090625180456.190336qq0eefomug@bigworm.curecanti.org', 
1281470934,
           '{232b6f88-93a4-40f4-8f85-a427b24674f8}61', 'androidc544188419',
           'Contacts') [pid 31162 on line 749 of 
"/disk2/src/horde/framework/Db/lib/Horde/Db/Adapter/Base.php"]
2010-08-10T14:08:54-06:00 DEBUG: HORDE [horde] SQL
         INSERT INTO horde_activesync_map (message_uid, sync_modtime, sync_key,
           sync_devid, sync_folderid) VALUES
           ('20090625180456.190336qq0eefomug@bigworm.curecanti.org', 
1281470934,
           '{232b6f88-93a4-40f4-8f85-a427b24674f8}61', 'androidc544188419',
           'Contacts') [pid 31162 on line 749 of 
"/disk2/src/horde/framework/Db/lib/Horde/Db/Adapter/Base.php"]
2010-08-10T14:08:54-06:00 ERR: HORDE [horde] SQLSTATE[23502]: Not null 
violation: 7 ERROR:  null value in column "sync_user" violates 
not-null constraint [pid 31162 on line 256 of 
"/disk2/src/horde/framework/ActiveSync/lib/Horde/ActiveSync/State/History.php"]

Looking at line 256, I don't see a reference to sync_user, but it 
looks like it is defined as a NOT NULL column in the table definition.

Saved Queries