6.0.0-beta1
7/27/25

[#14843] GAL Search - ERR: Unexpected output: string(5) "email"
Summary GAL Search - ERR: Unexpected output: string(5) "email"
Queue Synchronization
Queue Version FRAMEWORK_5_2
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester samuel.wolf (at) wolf-maschinenbau (dot) de
Created 08/03/2018 (2550 days ago)
Due
Updated 08/18/2018 (2535 days ago)
Assigned 08/05/2018 (2548 days ago)
Resolved 08/05/2018 (2548 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/18/2018 06:28:25 PM Git Commit Comment #20 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 17b5988caaa6ed957b23ff87bba8338fca6c3464
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed, 08 Aug 2018 21:29:14 -0400

Bug: 14843 Always return __key, and if it's a group, __type.

The phpdoc states this will always return __key, make it so and (re)add
the __type value. It was removed at some point, which is a BC break and
broke EAS GAL searching which needs to filter out contact groups.

  M lib/Api.php

https://github.com/horde/turba/commit/17b5988caaa6ed957b23ff87bba8338fca6c3464
08/11/2018 08:02:02 PM Git Commit Comment #19 Reply to this comment
Changes have been made in Git (master):

commit 754d509dda6fb1ed111f6fcd68cf6641619c16ff
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed, 08 Aug 2018 21:37:24 -0400

[mjr] Fix returning EAS GAL search results (Bug #14843).

  M doc/Horde/Core/changelog.yml

https://github.com/horde/Core/commit/754d509dda6fb1ed111f6fcd68cf6641619c16ff
08/11/2018 08:02:00 PM Git Commit Comment #18 Reply to this comment
Changes have been made in Git (master):

commit 3408282724dc240d1497a2dfcff33663fc3cedf9
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed, 08 Aug 2018 21:33:09 -0400

Bug: 14843 Fix logic.

Fix broken logic in filtering out Contact Groups from EAS GAL
search results.

  M lib/Horde/Core/ActiveSync/Driver.php

https://github.com/horde/Core/commit/3408282724dc240d1497a2dfcff33663fc3cedf9
08/09/2018 03:14:06 AM samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #17 Reply to this comment
Yea, GAL search is back.
Thank you Mike!
08/09/2018 01:45:03 AM Michael Rubinsky Comment #16 Reply to this comment
This is fixed and in the update of the "Horde/Core" package. Of note, 
there is a sort-of-related bug that was just fixed in Turba as well. 
The bug was causing issues if the GAL results included Contact Groups. 
These were filtered out long ago, but regressed recently.
08/09/2018 01:39:39 AM Git Commit Comment #15 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit e49e2ba7a3a3b4a6b14fa9eb1f945e99b1254b10
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed, 08 Aug 2018 21:37:01 -0400

[mjr] Fix returning EAS GAL search results (Bug #14843).

  M doc/Horde/Core/CHANGES
  M package.xml

https://github.com/horde/Core/commit/e49e2ba7a3a3b4a6b14fa9eb1f945e99b1254b10
08/09/2018 01:39:38 AM Git Commit Comment #14 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit bf9717253790ff8646943747a5825c02b99723e6
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed, 08 Aug 2018 21:37:01 -0400

[mjr] Fix returning EAS GAL search results (Bug #14843).

  M doc/Horde/Core/changelog.yml

https://github.com/horde/Core/commit/bf9717253790ff8646943747a5825c02b99723e6
08/09/2018 01:34:28 AM Git Commit Comment #13 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit cefb79b8cc9247bf997bbee2a5c1bb65a81660a6
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed, 08 Aug 2018 21:34:22 -0400

Bug: 14843 Fix logic.

Fix broken logic in filtering out Contact Groups from EAS GAL
search results.

  M lib/Horde/Core/ActiveSync/Driver.php

https://github.com/horde/Core/commit/cefb79b8cc9247bf997bbee2a5c1bb65a81660a6
08/08/2018 03:50:56 PM samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #12 Reply to this comment
search results in the log. Something isn't right.
I apply this two patches and verify the code:
https://github.com/horde/base/commit/9cb60f96e5af2fc93de922170e9fbc3f5e2e9faf
https://github.com/horde/Core/commit/7e452801e1fac3a963644281ebf8823a1f8364f2

Could that be the problem?
Only one user has the no_gal permission, but GAL don't work on any user.
08/08/2018 03:33:34 PM Michael Rubinsky Comment #11 Reply to this comment
NINE v4.2.5 also don't show results of GAL search.
Correct. It was fixed in source control but was not released yet. 
You'll need to update Turba when I release it. Hopefully I'll find 
time this week.
Sorry. It dawned on me that you probably removed that line on your 
own. I'll check into the issue. Yes, you should see the returned 
search results in the log. Something isn't right.

08/08/2018 03:28:42 PM samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #10 Reply to this comment
I remove the var_dump($field); on my setup.
https://github.com/horde/turba/commit/499a12789dcaf5786d21f6e8423491ac38033af9

Is there something more?
08/08/2018 03:24:09 PM Michael Rubinsky Comment #9 Reply to this comment
NINE v4.2.5 also don't show results of GAL search.
Correct. It was fixed in source control but was not released yet. 
You'll need to update Turba when I release it. Hopefully I'll find 
time this week.


08/08/2018 10:11:28 AM samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #8 Reply to this comment
NINE v4.2.5 also don't show results of GAL search.
08/06/2018 09:16:55 AM samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #7
New Attachment: GAL_Search_Log.txt Download
Reply to this comment
Thank you.

See in the log there is a match of 58, but device don't show the result.
With logging level "Detailed", should I see the names/contacts?

Maybe this is now a device problem?



08/05/2018 09:45:59 PM Michael Rubinsky Assigned to Michael Rubinsky
State ⇒ Resolved
 
08/05/2018 09:45:28 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (master):

commit 1e3e948b1ac1a311bbbc88bb753742f2f406514b
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 05 Aug 2018 17:32:23 -0400

Remove debug output.

Resolves Bug: 14843, this outputs the var_dump into the output stream,
which breaks EAS searching.

  M lib/Api.php

https://github.com/horde/turba/commit/1e3e948b1ac1a311bbbc88bb753742f2f406514b
08/05/2018 09:36:21 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit a3667bdb562d99c11f411c8d486828b1ae58dca5
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 05 Aug 2018 17:31:20 -0400

[mjr] Remove debug output that was breaking EAS searches (Bug: 14843).

  M docs/CHANGES
  M package.xml

https://github.com/horde/turba/commit/a3667bdb562d99c11f411c8d486828b1ae58dca5
08/05/2018 09:29:43 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (FRAMEWORK_5_2):

commit 499a12789dcaf5786d21f6e8423491ac38033af9
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Sun, 05 Aug 2018 17:28:54 -0400

Remove debug output.

Resolves Bug: 14843, this outputs the var_dump into the output stream,
which breaks EAS searching.

  M lib/Api.php

https://github.com/horde/turba/commit/499a12789dcaf5786d21f6e8423491ac38033af9
08/05/2018 09:28:34 PM Michael Rubinsky Comment #3 Reply to this comment
...and nevermind. There is a var_dump in Turba_Api that should not be 
there in FRAMEWORK_5_2.
08/05/2018 09:18:38 PM Michael Rubinsky State ⇒ Feedback
 
08/05/2018 09:18:12 PM Michael Rubinsky Comment #2 Reply to this comment
[3597][2018-08-03T18:13:59+02:00] ERR: Unexpected output: string(5) "email"
string(4) "name"
string(5) "email"
string(4) "name"
string(5) "email"
[...]
Cannot reproduce this. This looks like you might have a var_dump() or 
some other debug output somewhere in the code path.
08/03/2018 04:25:08 PM samuel (dot) wolf (at) wolf-maschinenbau (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ GAL Search - ERR: Unexpected output: string(5) "email"
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
GAL search on ActiveSync device (IMP works fine) without result:

[3597][2018-08-03T18:13:58+02:00] I: <Search:Search>
[3597][2018-08-03T18:13:58+02:00] I:  <Search:Store>
[3597][2018-08-03T18:13:58+02:00] I:   <Search:Name>
[3597][2018-08-03T18:13:58+02:00] I:     GAL
[3597][2018-08-03T18:13:58+02:00] I:   </Search:Name>
[3597][2018-08-03T18:13:58+02:00] I:   <Search:Query>
[3597][2018-08-03T18:13:58+02:00] I:     WA
[3597][2018-08-03T18:13:58+02:00] I:   </Search:Query>
[3597][2018-08-03T18:13:58+02:00] I:   <Search:Options>
[3597][2018-08-03T18:13:58+02:00] I:    <Search:Range>
[3597][2018-08-03T18:13:58+02:00] I:      0-19
[3597][2018-08-03T18:13:58+02:00] I:    </Search:Range>
[3597][2018-08-03T18:13:58+02:00] I:   </Search:Options>
[3597][2018-08-03T18:13:58+02:00] I:  </Search:Store>
[3597][2018-08-03T18:13:58+02:00] I: </Search:Search>
[3597][2018-08-03T18:13:59+02:00] ERR: Unexpected output: string(5) "email"
string(4) "name"
string(5) "email"
string(4) "name"
string(5) "email"
[...]


turba/config/backends.local.php

     'map' => array(
         '__key' => 'dn',
         'name' => 'displayname',
         'email' => 'mail',
         'homePhone' => 'homephone',
         'workPhone' => 'telephonenumber',
         'cellPhone' => 'mobile',
         'firstname' => 'givenname',
         'lastname' => 'sn',
         'company' => 'o',
         'workStreet' => 'street',
         'workPostalCode' => 'postalCode',
         'workCity' => 'l',

Saved Queries