Ticket #675 (new defect)

Opened 7 years ago

Last modified 4 years ago

XML formats do not distinguish between voice and fax numbers

Reported by: jagow Owned by: cstender
Priority: high Milestone: Plugin Format: vformat 0.40
Component: Format Plugin: vformat: contact Version:
Severity: normal Keywords:
Cc:

Description

This problem was discovered with recent SVN versions of Opensync 0.3x during development of the SynCE plugin for WM5 and above.

Conversion path: Evo2 plugin -> vformat -> xml-doc

If an entry is created in the Evolution addressbook filling, for example the 'Business Phone' and 'Business Fax' field, there is no way to distinguish between the voice and fax numbers in the resulting XML. See below:

Evolution: The following fields were filled:

Business phone: '0116 workphone' Home phone: '0116 homephone' Mobile phone: '0116 cellphone' Business fax: '0116 workfax'

The important part of the XML at the output is:

  <Telephone UI-Slot="4" Location="Work">
    <Content>0116 Workfax</Content>
  </Telephone>
  <Telephone UI-Slot="3" Type="Cellular">
    <Content>0116 cellphone</Content>
  </Telephone>
  <Telephone UI-Slot="2" Location="Home">
    <Content>0116 homephone</Content>
  </Telephone>
  <Telephone UI-Slot="1" Location="Work">
    <Content>0116 workphone</Content>
  </Telephone>

This is ambiguous - I can't convert this to Airsync reliably as I can not discriminate between phone and fax. Suggest that the 'Type' attribute is filled appropriately for all 'Telephone' elements.

Change History

comment:1 Changed 7 years ago by cstender

  • Status changed from new to assigned
  • Milestone set to OpenSync 0.40

comment:2 Changed 6 years ago by cstender

  • Priority changed from normal to highest

Yes, you're right. There should be a type parameter. I'll look at it but can't promise any ETA since there are some more bugs with type parameter handler in xmlformat-vcard.c code.

comment:3 Changed 6 years ago by tuju

  • Milestone changed from 0.40 to 0.38

comment:4 Changed 6 years ago by tuju

  • Milestone changed from 0.38 to 0.39

vformat will get more attention in 0.39.

comment:5 Changed 6 years ago by tuju

  • Priority changed from highest to high

not a security problem: priority -> high causes metadata loss: severity -> major http://opensync.org/wiki/BugManagement

comment:6 Changed 6 years ago by dgollub

  • Milestone 0.39 deleted

comment:7 Changed 6 years ago by cstender

  • Component changed from Format Plugin: vformat to Format Plugin: vformat: contact

comment:8 Changed 5 years ago by tetzlav

same here with svn HEAD (0.39-snapshot) in combination of

# osynctool --discover w880i-evo2-contact
Discovered Objtypes:
	contact
		Format: vcard21
Discovered Objtypes:
	contact
		Format: vcard21
				 conversion config: VCARD_EXTENSION=Evolution
		Format: vcard30
				 conversion config: VCARD_EXTENSION=Evolution

Only numbers of type "TEL;CELL" are synced from Phone->Evo2, from Evo2->Phone works well. All other numbers are listed in .vcf-file, but are not shown in Evolution/Contacts?. There is missing the VOICE-flag, eg. "TYPE=WORK,VOICE".

comment:9 Changed 4 years ago by cstender

  • Status changed from assigned to new
Note: See TracTickets for help on using tickets.