View Issue Details

IDProjectCategoryView StatusLast Update
0001642SOGo Connectorwith external serverpublic2018-03-16 19:14
Reporterralfbecker Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Summary0001642: Photo is not uploaded by SOGo Connector
Description

When adding a photo to a contact (using photo tab >> on this compute), it will be displayed in TB addressbook, but it is not contained in CardDAV PUT:

PUT /epl-11.1/groupdav.php/addressbook/13.vcf HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 Lightning/1.2.1
Accept: text/xml
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Accept-Charset: utf-8,*;q=0.1
Content-Type: text/vcard; charset=utf-8
Content-Length: 313
Pragma: no-cache
Cache-Control: no-cache

BEGIN:VCARD
VERSION:3.0
PRODID:-//Inverse inc.//SOGo Connector 1.0//EN
UID:addressbook-13-976aa3ad356d7b6155db2f795dea8293
N:Tester;Testname
FN:Testname Tester
ORG:Test.org;
ADR;TYPE=work:;;Teststreet 123;Testing;;12345;GERMANY
X-MOZILLA-HTML:FALSE
CLASS:PUBLIC
REV:2012-01-09T22\:29\:11Z
END:VCARD

TagsNo tags attached.

Activities

ludovic

ludovic

2012-02-18 10:13

administrator   ~0003459

What version of SOGo Connector are you using?

ralfbecker

ralfbecker

2012-02-18 10:43

reporter   ~0003460

The released one from http://www.sogo.nu/english/downloads/backend.html

Christian Mack

Christian Mack

2012-02-20 16:17

developer   ~0003465

Sorry, but ludovic asked for your Connector version which is frontend, see:
http://www.sogo.nu/english/downloads/frontends.html

ralfbecker

ralfbecker

2012-02-20 16:21

reporter   ~0003466

Sorry when copied the wrong link, it's the released version from the frontend side: http://www.sogo.nu/files/downloads/extensions/sogo-connector-10.0.xpi

Ralf

wsourdeau

wsourdeau

2012-03-06 19:57

viewer   ~0003536

What file format are you using? The feature seems to work perfectly here.

CAn you try with https://inverse.ca/downloads/extensions/nightly/sogo-connector-10.0.1pre1.xpi ?

Thanks

ralfbecker

ralfbecker

2012-03-07 14:09

reporter   ~0003545

It was a simple jpeg I use for most of my tests. Thought so far everyone using SOGo connector with EGroupware reported that issue, so I doubt it has to do with the foto.
SOGo connector uploads (PUT) a new vCard, which simply contains no PHOTO tag.

No change with 10.0.1pre1.xpi :-(

Where is the vCard generated? Is it done by SOGo code our "outside" from TB?

Ralf

wsourdeau

wsourdeau

2012-03-07 14:13

viewer   ~0003546

The PHOTO tag is generated from the PhotoURI and PhotoType properties of the thunderbird contact. If the photo is added properly, it cannot not work. By any chance, are you using any other extension along with SOGo Connector?

FYI , the code adding the PHOTO tag goes as follows (from vcards.utils.js):
/* - PhotoName : filename in Photos/

    • PhotoType : web or file
    • PhotoURI : uri (file:// or http://)
      */

    let photoUri = card.getProperty("PhotoURI", null);
    let photoType = card.getProperty("PhotoType", "file");
    if (photoType == "web") {
    if (photoUri) {
    vCard += foldedLine("PHOTO;VALUE=uri:"

    • escapedForCard(photoUri)) + "\r\n";
      }
      }
      else if (photoType == "file") { / always "file" /
      if (photoUri) {
      let photoType = deducePhotoTypeFromExt(photoUri);
      if (photoType) {
      let content = photoContent(photoUri);
      if (content) {
      vCard += foldedLine("PHOTO;ENCODING=b;TYPE=" + photoType
      • ":" + btoa(content)) + "\r\n";
        }
        }
        }
        }
ludovic

ludovic

2018-03-16 19:14

administrator   ~0012757

Never got feedback.

Issue History

Date Modified Username Field Change
2012-02-18 09:04 ralfbecker New Issue
2012-02-18 10:13 ludovic Note Added: 0003459
2012-02-18 10:43 ralfbecker Note Added: 0003460
2012-02-20 16:17 Christian Mack Note Added: 0003465
2012-02-20 16:21 ralfbecker Note Added: 0003466
2012-03-06 19:57 wsourdeau Note Added: 0003536
2012-03-07 14:09 ralfbecker Note Added: 0003545
2012-03-07 14:13 wsourdeau Note Added: 0003546
2016-07-12 12:05 ludovic Status new => assigned
2016-07-12 12:05 ludovic Assigned To => ludovic
2018-03-16 19:14 ludovic Note Added: 0012757
2018-03-16 19:14 ludovic Status assigned => closed
2018-03-16 19:14 ludovic Resolution open => suspended