Summary | Keep parameter variable from being overwritten |
Queue | Turba |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | chuck (at) horde (dot) org |
Requester | jan (at) horde (dot) org |
Created | 10/29/2007 (6457 days ago) |
Due | |
Updated | 10/30/2007 (6456 days ago) |
Assigned | |
Resolved | 10/30/2007 (6456 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Assigned to Chuck Hagenbuch
Taken from
State ⇒ Resolved
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Keep parameter variable from being overwritten
Queue ⇒ Turba
Assigned to
State ⇒ Assigned
After replacing my dear old phone with a Motorola RAZR2 V8. i was able
to do a pretty good synchronization of contacts.
My source(backend) is a LDAP, where the entries was not added with turba.
Now i understand that they have to, just to get the _uid ( suid ).
I added some contacts in Turba and they where the only contacts showing
up on the phone after a sync.
I always thought that _uid would be added on the first sync.
Now i have _uid on all objects and almost all of them are being
synchronized.
The pattern i can see for those not being synchronized in
/tmp/sync/syncml_log.txt are contacts where the_uid are like this lines
DEBUG: add: 20071021203756.95531gu3j57vxw9w@localhost
DEBUG: check: contacts 20071021203756.95531gu3j57vxw9w@localhost
text/x-vcard::
ERR: api export call for 20071021203756.95531gu3j57vxw9w@localhost
failed: Object not found
The object is there, if i delete this contact and add it again,
then an other contact will be effected and not synced and the re-added is.
Well 41 of 45 is a good start so where can this bug be hidden?
many thanks,
::Beppe
down the trace i found out it's a variable conflict,
In turba lib/api.php in the function _turba_export, here the $uid was
change to my login uid(?). After this line
require_once dirname(__FILE__) . '/base.php';
I think its a good idea to change the source.php.dist
Where the example for a personal_ldap ("My Address Book") is the one i
based mine.
Here you can see that $uid is used like this "$uid =
Auth::getBareAuth();" and change the ldap search criteria.