Commit graph

1329 commits

Author SHA1 Message Date
Zhu, Yongsheng 57916f6b92 SourceType: add a trailing '!' into source type to force to use type (Bug #2422)
When specifying a source type with a trailing '!',
syncevolution sets a force-format flag, which means
forcing to use the client's preferred format instead
giving the engine and server a choice to use it.
2009-07-07 17:26:47 +08:00
Zhu, Yongsheng bedac8a217 Funambol: Ignore and remove some property or parameters when synccompare(Bug #2422)
Funambol Server gets lost some properties of icalendar2.0:
'URL', 'ATTENDEE', 'RECURRENCE-ID'
The parameter 'CN' of the property 'ORGANIZER' is lost by server.
Also, it adds a new property 'REPEAT'.
2009-07-07 17:26:47 +08:00
Zhu, Yongsheng 5a66fbc44d Funambol + itodo20: add 'text/calendar!' to force to use icalendar20(Bug #2422)
Register 'text/calendar!' for itodo20 to force to use icalendar20
2009-07-07 17:26:47 +08:00
Zhu, Yongsheng 7a06414f59 Funambol + itodo20: ignore some property comparisions in synccompare(Bug #2422)
1)Remove 'STATUS' property for server doesn't preserve it.
2)Remove 'CLASS:PUBLIC' and 'PERCENT-COMPLETE:0', which are
added by server by default.
2009-07-07 17:26:47 +08:00
Zhu, Yongsheng 0607964693 Funambol + vcard21: Ignore 'X-ASSISTANT' property in synccompare.pl(Bug #2422)
Remove 'X-ASSISTANT' property for server doesn't preserve it.
2009-07-07 17:26:46 +08:00
zhu, yongsheng 68e945dfc8 Funambol + ical2.0: add an environment variable to set maximum item size (Bug #2422)
Funambol server has a length limitation for 'DESCRIPTION' property. If item is larger
than the limitation, the rest part will be lost. Add the environment variable
"CLIENT_TEST_MAX_ITEMSIZE" to allow controlling this size
2009-07-07 17:26:46 +08:00
zhu, yongsheng 82676911f9 icalendar2.0: Force to use icalendar2.0 as sync format (Bug #2422)
Funambol server could support icalendar2.0 but prefer vcalendar1.0. Under this circumstance,
it would like to force syncevolution to use icalendar2.0 instead of vcalendar1.0
2009-07-07 17:26:46 +08:00
zhu, yongsheng 420a8cc24c Funambol: Add README.funambol for Funambol interoperability test information(Bug #2422)
Add README.funambol for funambol interoperability test information. These include Funambol
server information, desired test types, known properties got lost by server, known failures
2009-07-07 17:26:46 +08:00
zhu, yongsheng 89019ebbc1 iCal20: Enable ical20 and itodo20 sync for Funambol server(Bug #2422)
Currently Funambol server support icalendar20 format,so we enable ical20 and
itodo20 in Funambol template.
2009-07-07 17:26:46 +08:00
zhu, yongsheng cf09810532 iCal20: Ingore properties comparasion for Funambol miss them(Bug #2422)
Five properties are missed by Funambol, so synccompare doesn't compare these
properties. These include UID, SEQUENCE, TRANSP, LAST-MODIFIED, X-EVOLUTION-ALARM-UID.
2009-07-07 17:26:46 +08:00
zhu, yongsheng 3674847549 iCal20: Add 'suppressempty="yes"' for 'LAST-MODIFIED' property(Bug #2422)
This modification allows LAST-MODIFIED property absent in VENVENT and
VTODO component.
2009-07-07 17:26:46 +08:00
lpdufres f19e8da0f5 Updates to Swedish (sv) translation
Transmitted-via: Transifex (translate.moblin.org)
2009-07-07 03:11:59 +00:00
lpdufres 9476eedcc7 Updates to Chinese (Taiwan) (zh_TW) translation
Transmitted-via: Transifex (translate.moblin.org)
2009-07-07 03:11:36 +00:00
Patrick Ohly 8c80f15a7e compiler warnings in GUI: passing string instead of format specifier
In two places a string variable was passed where a format specifier
was expected. That only works as long as the string contains
no %, so replaced with "%s", string.
2009-07-06 21:19:23 +02:00
Patrick Ohly a97d0c87ff XML config: allow backends to add their own definitions (Bugzilla #2417)
For each of the four entities that a backend might want to add (field
lists, profiles, datatypes, remote rules) a hash is kept which can
be updated by the virtual EvolutionSyncSource methods which are
called while assembling the information for the XML config (getSynthesisInfo(),
getDatastoreXML()).

This information is then subsituted in the right places of the
XML config template, in the right order.
2009-07-03 12:37:34 +02:00
Patrick Ohly 82bb495dd1 Merge commit 'origin/moblin-transifex'
Conflicts:
	po/it.po

Replaced Italian translation with the one from Transifex.
Added de and pl to LINGUAS.
2009-07-03 10:03:33 +02:00
lpdufres 9c6d03c6b9 Updates to Brazilian Portuguese translation (Thanks Gabor)
Transmitted-via: Transifex (translate.moblin.org)
2009-07-02 18:01:34 +00:00
milo 0016f83067 Added Italian translation
Transmitted-via: Transifex (translate.moblin.org)
2009-07-02 11:24:47 +00:00
Chen Congwu 4d04059365 suspend/resume improvements: improvements on suspend/resume
1) Restric SOUP transport polling only when transport is active
2) Move singal handler to EvolutionSyncClient to make it avaliable also for
syncevo-dbus-server
3) Change to new version signal system call
4) fix a bug in SoupTransport: abort the soupsession when the transport is
aborted
2009-07-02 12:28:33 +08:00
balrog b5c66e8319 First attempt at Polish strings for SyncEvolution.
Transmitted-via: Transifex (translate.moblin.org)
2009-07-01 18:45:43 +00:00
Patrick Ohly ab20b4c5f9 suspend&resume: minor cleanup
Need signal.h to avoid compiler error. Reformatted the INFO messages
and changed "twice" into "again", because CTRL-C was already pressed
once.
2009-07-01 14:59:17 +02:00
Chen Congwu b3296d6241 Test cases: Enable Interrupt* test, add suspend test 2009-07-01 14:45:47 +02:00
Chen Congwu e16e778f38 suspend and resume: add signal processing and update the logic; bug #2426, #2425
1) add a signal handler to process CTR+C signal
2) update the logic in EvolutionSyncClient accordingly
3) modify transport, detect user abort while it is busy waiting
2009-07-01 14:45:38 +02:00
Jussi Kukkonen 44b59184c3 fix crash in_server_config_for_template_cb()
the keyring changes stupidly assumed base_url will be defined in
in_server_config_for_template_cb(), which is not true when defining
new services.

Fixes #3934
2009-07-01 14:19:26 +02:00
Jussi Kukkonen ab8e3a12b5 dbus client: write '-' as password in config (so GetPassword is used)
server_config has booleans 'changed' and 'auth_changed' to represent
user changes in the settings window. The former wasn't being set when
only the password was changed so "-" did not get written into
syncevolution config.

Fixes reopened #2430
2009-07-01 14:18:54 +02:00
Patrick Ohly e2b5af8f14 extracting items: EvolutionMemoSource needs information about expected format
Both EvolutionSyncSource::backupData() (implemented for the memo source
in the TrackingSyncSource base class) and Client::Source::text::testImport
must dump items in the native format, the one which is used for restore
and for the test cases. See Bugzilla #3967 and #3929.

This broke during the 0.9 development cycle, but wasn't detected during
automated testing because the necessary tests weren't enabled for
the "text" source until recently.

Now createItem() is passed a hint what the desired format is. "raw"
is used for backup and testing.

Also removed obsolete exportData() call in EvolutionCalendarSource.
This was used before introducing the newer backupData() call.
2009-07-01 14:10:59 +02:00
Patrick Ohly ac8638bee2 testing: fixed Client::Sync::vcard30::testConversion
The test failed because it showed duplicate X-MANAGER/... properties.
This was a result of adding those a few commits earlier. Now synccompare
checks whether there are such redundant properties and removes
them.
2009-07-01 12:45:46 +02:00
Patrick Ohly c7d3bd891e testing: "text" tests didn't have the required "dump" method
Without that method most of the tests couldn't be done and combined
tests (Client::Sync::vcard30_ical20_itodo20_text::testCopy) failed
with an assertion.

All of the predefined tests share the same methods, so moved them
into the general section. Backends which need something else have
to override the defaults or unset them, if nothing works.
2009-06-26 16:01:29 +02:00
Patrick Ohly 269983003a runtests.py: updated to work with current source code
Added support for git checkout. Replaced Funambol with
Synthesis. Added --mailhost option.
2009-06-26 08:30:09 +02:00
tester 91969890ed build fix: D-Bus service .in file must be packaged in all cases
org.Moblin.SyncEvolution.service.in was only included in EXTRA_DIST
of D-Bus was enabled. It has to be packaged even if D-Bus support
is off.
2009-06-25 23:40:24 +02:00
Patrick Ohly 1f7ca84681 fixed some problems with "make dist"
Makefile had Perl elsif instead of bash elif (didn't matter,
elif branch wasn't needed). syncevolution.xml
was replaced syncclient_sample_config.xml (fatal error).
src/gtk-ui had BUILT_SOURCE files which "make dist" tried
to generate even if the necessary tools where not available.
The generated files also must not be listed as
normal source of the binary, for the same reason.
2009-06-25 19:27:51 +02:00
Patrick Ohly ff07bf5bc4 bumped version: 0.8.1+0.9+beta2+20090625 2009-06-25 11:52:58 +02:00
Patrick Ohly 6b619cda97 WBXML: enabled by default, except for Funambol
Using WBXML reduces message sizes and increases parsing performance.
It was not enabled initially in the 0.9 releases in order to test
this new feature more thoroughly.

Old configs don't have an explicit enableWBXML setting and therefore
will automatically use the new default.

The Funambol server has a known issue with WBXML:
https://forge.ow2.org/tracker/index.php?func=detail&aid=313729&group_id=96&atid=100096
When creating new configs for it, the default is overridden
and WBXML is disabled. Old configs should be updated accordingly,
just to be safe. The bug is unlikely to be triggered, but if it happens,
sync sessions fail completely.
2009-06-25 11:06:07 +02:00
Patrick Ohly 1b01a0e10b testing: fixed SyncEvolutionCmdlineTest after adding HashCode/ConfigDate
Adding new properties affects the config handling tests. Updated.
2009-06-25 10:55:22 +02:00
Patrick Ohly 9027b32b7a vCard: support X-MANAGER/ASSISTANT/SPOUSE/ANNIVERSARY (Bugzilla #2418)
These properties are supported in addition to, not instead of, the
traditional X-EVOLUTION- variants. This is done by sending both
property variants to a SyncML server and accepting both when parsing
a vCard. When parsing, X-EVOLUTION- takes precendency over the normal
X- one, which is only relevant in case that they differ.

This is necessary for Funambol, which added support for normal X-
variants in the 7.x server release. ScheduleWorld accepts both
and still works (tested).
2009-06-24 16:16:52 +02:00
Patrick Ohly 6c0721ccb1 data conversion: different data profiles for SyncML peer + local DB with remote rules
One way to convert data differently on the SyncML and local DB side of the
field list (Bugzilla #2417) is via "remote rules" in the Synthesis engine.
Normally these rules are activated by matching against the peers device information.
This patch adds an rule named "EVOLUTION" which is activated on the Evolution
side by giving its name to the PARSE/MAKETEXTWITHPROFILE() macros.

This depends on an extended Synthesis library.
2009-06-24 16:16:52 +02:00
Patrick Ohly f4e267aa51 compile error: GNOME keyring 2.24 misses extern "C"
Got an undefined reference to C++ GNOME keyring functions
which in reality should have been plain C functions. Reason
was that /usr/include/gnome-keyring-1/gnome-keyring.h (from 2.24.1)
didn't have an 'extern "C"' declarations.

Adding those in our source code fixed that and should be safe,
because double nesting of it is safe and the header is
unlikely to contain real C++ declarations.
2009-06-24 16:14:13 +02:00
Patrick Ohly bf198f4975 testing: message and object size was too small
When working with the Funambol engine, 0 meant "default values",
which were reasonably large for message size and unlimited for object
size.

After migrating to Synthesis and enabling these limits again, 0 has
no special meaning and is rounded up to some very small numbers. These
limits were too small for some items, therefore the settings used by
tests by default were bumped up to 128KB for message size (should
keep the overall message number fairly small) and 1GB for individual
items (basically unlimited again).
2009-06-24 10:35:42 +02:00
Patrick Ohly b89a301979 Merge commit 'origin/moblin-transifex' 2009-06-23 21:51:47 +02:00
Patrick Ohly 6bf56c2dc7 XML config: done with comparison of our and upstream XML config 2009-06-23 12:14:31 +02:00
Patrick Ohly 97fe7aabed XML config: use syncclient_sample_config.xml instead of syncevolution.xml
The key difference between the two is that syncclient_sample_config.xml
is kept in sync with the corresponding file on the "synthesis" branch,
which is the unmodified copy of the corresponding file in the libsynthesis
repository.

It is still possible to put an XML file into the current directory
when running SyncEvolution, but now it has to be called
syncclient_sample_config.xml.

Only minor changes are introduced as part of this transition:
- some comment changes
- PERCENT-COMPLETE is now only used in iCalendar 2.0 (as it should be,
  because it is not valid in vCalendar 1.0)
- added vtimezonegenmode and tzidgenmode settings as in upstream
  config (shouldn't change our behavior)
2009-06-23 11:22:01 +02:00
Patrick Ohly b5150b45eb XML config: keep alarm times as they are
The upstream config massages the (possibly relative) alarm times
so that they are always absolute on the client (?). In Evolution
we don't need and don't want this, as Evolution is able to handle
all kinds of alarm specifications itself, so removing these script
instructions.
2009-06-23 11:14:01 +02:00
Patrick Ohly 961e529d79 XML config: be conservative about encoding of EXDATEs
Multiple EXDATEs in the same property are encoded differently
in iCalendar 2.0 and vCalendar 1.0. ScheduleWorld had a problem
with this (bugzilla.moblin.org #2226) for a while. As other
peers might have similar issues, we accept all kinds of
encodings when parsing items and always generate several EXDATE
properties with one value each when encoding.
2009-06-23 11:08:47 +02:00
Patrick Ohly a85d62156d XML config: enhanced calendar data formats
Added URL and X-EVOLUTION-ALARM-ID (both vCalendar 1.0 and iCalendar 2.0)
plus several standard iCalendar 2.0 properties. In contrast to vCard,
SyncEvolution is strict with standard compliance here: none of the
iCalendar 2.0 properties are enabled in vCalendar 1.0.
2009-06-23 11:05:23 +02:00
Patrick Ohly a083114f1b XML config: added several vCard 3.0/Evolution specific properties
As with NICKNAME, all of the vCard 3.0 enhancements are also used
with vCard 2.1 because peers tend to accept them.
2009-06-23 10:58:20 +02:00
Patrick Ohly aeb99299f4 XML config: don't enforce http:// prefix in vCard 2.1 URL
The upstream config declares the WEB field (maps to URL) as "url",
which has the effect that the http:// prefix is added if none
is present.

Evolution does not enforce a particular format nor does it depend on
one. If a user decides to enter a plain string, that's how it should
be synchronized => turned WEB into normal string field.
2009-06-23 10:58:19 +02:00
Patrick Ohly cac58f1348 XML config: use NICKNAME also in vCard 2.1
It is not part of vCard 2.1, but some peers (like the Funambol server)
accept it anyway.
2009-06-23 10:51:03 +02:00
Patrick Ohly b01f5cc07d XML config: avoid empty LOCATION in VEVENT
libical is unhappy about empty properties, so don't force generating
an empty LOCATION.
2009-06-23 10:50:57 +02:00
Patrick Ohly a718b8560f XML config: don't encode empty DESCRIPTION in VEVENT/VTODO
The upstream Synthesis config removes a DESCRIPTION if it
is identical with the SUMMARY and then writes an empty DESCRIPTION
property.

SyncEvolution reverts that logic: an empty DESCRIPTION is set
to the SUMMARY. That's more in line with how Evolution works.
Also, libical is unhappy about such empty properties, so don't encode
them if empty (which shouldn't happen, though).
2009-06-23 10:48:58 +02:00
Patrick Ohly 566251888c XML config: fix incorrect datatype name check
The VCALENDAR_INCOMING_SCRIPT checked for an old vtodoz10 datatype
name which is no longer used in the example config. Must be
vCalendar10.
2009-06-23 09:52:32 +02:00