<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>vCard (3.0) that contains a photo can&#039;t be imported when using postgres</title> 
  <pubDate>Thu, 09 Apr 2026 22:37:19 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9725</link> 
  <atom:link rel="self" type="application/rss+xml" title="vCard (3.0) that contains a photo can&#039;t be imported when using postgres" href="https://bugs.horde.org/ticket/9725/rss" /> 
  <description>vCard (3.0) that contains a photo can&#039;t be imported when using postgres</description> 
 
   
   
  <item> 
   <title>When importing a vcard turba checks if the contained contact</title> 
   <description>When importing a vcard turba checks if the contained contacts are already present in the database so it does not double contacts on import. In the sql select statement of this check there is an ILIKE comparison on the field &#039;object_photo&#039; which is of type bytea.
This is not valid in postgres and leads to the following error: 

ERROR:  operator does not exist: bytea ~~* unknown

See the following entry in the postgres mailing list on this error: http://archives.postgresql.org/pgsql-admin/2009-09/msg00041.php

I suggest to either correctly cast the entry into something that can be compared, or simply remove the check for the photo as I don&#039;t think this is a check that has any value to the task of finding double entries.

PS: sorry if this is already reported and fixed in the turba query, I couldn&#039;t find a similar entry</description> 
   <pubDate>Sun, 27 Mar 2011 13:32:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9725#t62690</link> 
  </item> 
   
  <item> 
   <title>What exactly is the query that raises this error?</title> 
   <description>What exactly is the query that raises this error?</description> 
   <pubDate>Wed, 30 Mar 2011 10:58:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9725#t62839</link> 
  </item> 
   
  <item> 
   <title>Hi there, sorry for the delay was kind of busy this week.
F</title> 
   <description>Hi there, sorry for the delay was kind of busy this week.
Following this comes the complete error message form the horde log including the specific sql statement. I also attached the test vcard with which I produced said error. This currently happens with Postgres 8.4 running, but I guess this will be a problem with other versions as well (as has been said in the linked mailing list entries).

Apr 03 12:48:09 HORDE [error] [turba] DB Error: unknown error: SELECT object_id, owner_id, object_type, object_members, object_uid, object_firstname, object_lastname, object_middlenames, object_nameprefix, object_namesuffix, object_alias, object_bday, object_photo, object_phototype, object_homestreet, object_homepob, object_homecity, object_homeprovince, object_homepostalcode, object_homecountry, object_workstreet, object_workpob, object_workcity, object_workprovince, object_workpostalcode, object_workcountry, object_tz, object_email, object_homephone, object_workphone, object_cellphone, object_fax, object_pager, object_title, object_role, object_company, object_logo, object_logotype, object_category, object_notes, object_url, object_freebusyurl, object_pgppublickey, object_smimepublickey FROM turba_objects WHERE (owner_id = &#039;gsnerf@gsnerf.de&#039; AND (((object_nameprefix ILIKE &#039;%Postgres%&#039; OR object_nameprefix ILIKE &#039;%Error%&#039; OR (object_nameprefix = &#039;&#039; OR object_nameprefix IS NULL)) AND (object_firstname ILIKE &#039;%Postgres%&#039; OR object_firstname ILIKE &#039;%Error%&#039; OR (object_firstname = &#039;&#039; OR object_firstname IS NULL)) AND (object_middlenames ILIKE &#039;%Postgres%&#039; OR object_middlenames ILIKE &#039;%Error%&#039; OR (object_middlenames = &#039;&#039; OR object_middlenames IS NULL)) AND (object_lastname ILIKE &#039;%Postgres%&#039; OR object_lastname ILIKE &#039;%Error%&#039; OR (object_lastname = &#039;&#039; OR object_lastname IS NULL)) AND (object_namesuffix ILIKE &#039;%Postgres%&#039; OR object_namesuffix ILIKE &#039;%Error%&#039; OR (object_namesuffix = &#039;&#039; OR object_namesuffix IS NULL))) AND object_lastname ILIKE &#039;%Postgres Error%&#039; AND object_homephone ILIKE &#039;%12345678%&#039; AND object_homestreet ILIKE &#039;%Road
City\\, State 54321%&#039; AND object_email ILIKE &#039;%postgres@error.net%&#039; AND object_photo ILIKE &#039;%?PNG

&#039;)) [nativecode=ERROR:  operator does not exist: bytea ~~* unknown
ZEILE 2: ...ail ILIKE &#039;%postgres@error.net%&#039; AND object_photo ILIKE &#039;%?P...
</description> 
   <pubDate>Sun, 03 Apr 2011 10:58:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9725#t63016</link> 
  </item> 
   
  <item> 
   <title>Any news on this Problem?</title> 
   <description>Any news on this Problem?</description> 
   <pubDate>Thu, 21 Apr 2011 19:12:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9725#t64045</link> 
  </item> 
   
  <item> 
   <title>&gt; When importing a vcard turba checks if the contained conta</title> 
   <description>&gt; When importing a vcard turba checks if the contained contacts are 
&gt; already present in the database so it does not double contacts on 
&gt; import. In the sql select statement of this check there is an ILIKE 
&gt; comparison on the field &#039;object_photo&#039; which is of type bytea.
&gt; This is not valid in postgres and leads to the following error:
&gt;
&gt; ERROR:  operator does not exist: bytea ~~* unknown
&gt;
&gt; See the following entry in the postgres mailing list on this error: 
&gt; http://archives.postgresql.org/pgsql-admin/2009-09/msg00041.php
&gt;
&gt; I suggest to either correctly cast the entry into something that can 
&gt; be compared, or simply remove the check for the photo as I don&#039;t 
&gt; think this is a check that has any value to the task of finding 
&gt; double entries.
&gt;
&gt; PS: sorry if this is already reported and fixed in the turba query, I 
&gt; couldn&#039;t find a similar entry

This error occures also during sync, if a mobile device tries to sync a newly created contact bakc to horde.

Therfore it is a show stopper for syncing. </description> 
   <pubDate>Tue, 10 May 2011 17:43:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9725#t64558</link> 
  </item> 
   
  <item> 
   <title>If I&#039;m reading the turba driver code correctly, the blob fie</title> 
   <description>If I&#039;m reading the turba driver code correctly, the blob fields are currently ignored in the search.

Marking as resolved in current code.</description> 
   <pubDate>Thu, 18 Oct 2012 06:09:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9725#t73804</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
