Commit graph

2837 commits

Author SHA1 Message Date
Patrick Ohly
2018114977 gdbus: ensure that header files are included in "make dist"
After commenting out the files, they were no longer considered
by automake.
2010-08-15 21:26:53 +02:00
Patrick Ohly
18dd70a275 Revert "compile fix for FC 13 (and possibly others): use private copy of gdbus (MBC #3556)"
This reverts commit ec7eb74366.

With the symbol prefix renamed from gdbus into bdbus, we can install
the lib into /usr/lib/syncevolution again, to get it shared between
the "syncevolution" and "syncevo-dbus-server" binaries.
2010-08-09 10:46:11 -04:00
Patrick Ohly
4ba42082fa gdbus: avoid name conflict with glib
The previous solution of linking Bluex gdbus statically was not
enough. On Fedora 14, compile errors due to the glib header files
being pulled in indirectly appeared.

This patch does a global search/replace which changes the
"gdbus" (GLib D-Bus) prefix into "bdbus" (Bluez D-Bus). For the
record:
perl -pi 's/g_dbus_/b_dbus_/g; s/GDBus/BDBus/g; s/GDBUS/BDBUS/g' ...
2010-08-09 10:46:03 -04:00
Patrick Ohly
dd5f4b94b0 gdbus: do not install header files
The library was already considered "private",
so no software should need the header files.
2010-08-09 10:45:55 -04:00
Patrick Ohly
1e95828f63 NEWS, version: updated for 1.0.1 2010-07-16 17:12:44 +02:00
Jussi Kukkonen
5c2c115c87 canonize new device config names (MBC #1194)
Fixes the second half of bug 1194: only allow "-_[a-z][A-Z][0-9]"
characters in the name.
2010-07-16 16:57:09 +02:00
Jussi Kukkonen
181035f8ac prevent overwriting device configs by accident (MBC #3566,1194)
Currently the configuration name for a new config is the
fingerPrint and it overwrites any existing configuration.
This commit starts using deviceName as the base name and adds a
incremental number to the end if a configuration already exists
for that name.
2010-07-16 16:56:58 +02:00
Patrick Ohly
a92e987e81 ZYB.com: service goes away end of June 2010, template removed (MBC #3310)
ZYB.com will be replaced with Vodafone 360, which we don't support (yet).
This patch removes the obsolete template for ZYB.com. The sync-UI still
has some strings for it, just in case that someone has an old template
around or runs it against an old syncevo-dbus-server.
2010-07-16 16:56:44 +02:00
Patrick Ohly
34bb1b1066 syncevo-dbus-server: accept 'application/vnd.syncml+xml; charset=UTF-8' for starting an HTTP session (MBC #3554)
The redundant charset specification was set by the Funambol
Thunderbird client. Because of a literal comparison against
'application/vnd.syncml+xml' the messages were rejected.

This patch strips everything after a semicolon. None of the options
there should matter for SyncML.
2010-07-16 16:56:27 +02:00
Patrick Ohly
4224a33fa9 autotools: added --enable-gnome-keyring (MBC #3557)
Using the GNOME keyring should be optional. Right now it is always on when
found.

--enable-gnome-keyring: fail if not available or invalid value given
--disable-gnome-keyring: disable, even if found
unset: use if found
2010-07-16 16:56:17 +02:00
Patrick Ohly
ec7eb74366 compile fix for FC 13 (and possibly others): use private copy of gdbus (MBC #3556)
SyncEvolution on FC 13 crashes because it conflicts with a different
system version of the gdbus library. Always linking statically fixes
this.

There never was an official upstream release of gdbus, so sharing the
implementation does not work.
2010-07-16 16:56:11 +02:00
Patrick Ohly
98b8ff7033 gen-autotools.sh: make order of files deterministic (MBC #2586)
"find" reports files in a filesystem dependent order. Added "sort"
to make that order deterministic, which minimizes changes when
comparing source distribution archives.
2010-07-16 16:56:06 +02:00
Patrick Ohly
ca7c58b014 config fix: operations on non-peer configs failed (MBC #3157)
When running operations on a non-peer configuration (like --restore @default
addressbook), the operation fails with
[ERROR] <source name>: type 'select backend' not supported

The root cause is that the "type" property was read from a virtual, empty peer
node. MultiplexConfigNode already handled this by falling back to the non-peer
node.

The same special case also needs to be added to SyncSourceNodes::getNode().
2010-07-16 16:56:01 +02:00
Patrick Ohly
ab6ae20a51 Merge commit 'syncevolution-1-0' into meego-1.0
Conflicts:
	po/de.po
	po/es.po
	po/it.po
	po/ja.po
	po/ru.po

Translations were updated independently, leading
mostly to conflicts because of line number changes.
2010-07-16 16:09:14 +02:00
Zhu, Yongsheng
677e163d56 valgrind: suppress memory issues for libical (MBC#1007)
currently suppress memory issues. Investigate and try to
fix their root causes in libical later.
2010-06-14 17:35:24 +02:00
Zhu, Yongsheng
528725e75b valgrind: relax rules for icaltimezone_get_component (MBC#1007)
icaltimezone_get_component invalid reads a memory allocated
by the libical itself. so relax the rule to only match its
own functions in the callstack.
2010-06-14 17:35:24 +02:00
Jussi Kukkonen
2eeefbf723 gtk-ui: make "Sync now" always translatable (MBC #3052) 2010-06-14 17:34:33 +02:00
Patrick Ohly
8276a74305 NEWS, version: SyncEvolution 1.0 2010-06-11 21:43:37 +02:00
Patrick Ohly
70d6dc28a3 NEWS: updated 2010-06-09 14:59:05 +02:00
Patrick Ohly
da4bab20df nightly testing: updated suppression of tests for Memotoo and Funambol
Funambol doubles one email address during twinning.

Memotoo doesn't support refresh-from-client.
2010-06-09 11:58:15 +02:00
Patrick Ohly
a1f7f56914 D-Bus API doc: fix for 'make dist'
The .html version should have been only installed, not distributed
as part of the source:
dist_doc_DATA => doc_DATA

That broke when using "make dist" without --enable-doc.
2010-06-09 11:47:50 +02:00
Patrick Ohly
a6957404c6 Doc: enhanced D-Bus API documentation (MBC #1745)
Updated spec-to-docbook.xsl and the documentation in the .xml
files to improve formatting (added lists and paragraphs).

Added README explaining how this formatting works.

The updated spec-to-docbook.xsl no longer produces <reference>
elements in its output, which broke mergepages.xsl. Replaced
with some shell commands which concatenate the <refentry> elements
in a larger <reference> element with a title that also includes
the version.

Cross-references between the different APIs would be nice,
but don't work with the current spec-to-docbook.xsl (because
it only processes one API at a time?). Perhaps merge original
.xml files into one, then produce documentation? Nope, didn't
work. Seems that spec-to-docbook.xsl can only handle one interface
per file.
2010-06-08 17:20:14 +02:00
Zhu, Yongsheng
3c307b04dd Doc: add '--enable-doc' option and generate D-Bus API doc(MBC #1745)
'--enable-doc' configure option is newly added to control
generation of API documentation for backend public API
and D-Bus API. The default value is 'no'.

D-Bus API html documentation could be generated and all
pages(currently 3 docbook files) are merged into one single
html page called 'syncevo-dbus-api-doc.html'. To dynamically
generate 'version' of syncevolution into the html page, a placeholder
'##VERSION##' is used and changed in the generation.
2010-06-08 17:20:14 +02:00
Patrick Ohly
c8af3d4c94 D-Bus Qt bindings: remove annotations for glib
The <annotation> element is not accepted by the binding tool for
glib. Remove them as part of filtering out <doc:*> elements.
2010-06-08 17:06:55 +02:00
Carl Wong
fd072afd7c D-Bus binding for Qt
This patch adds annotations as needed by Qt D-Bus support.
For some of the more complex methods, additional types are
defined.
2010-06-08 17:06:33 +02:00
Patrick Ohly
4989a8ce6f SyncConfig::getUseProxy(): avoid TRUE/FALSE (MBC #10506)
TRUE/FALSE are defines that may or may not be set. Better use the C++ true/false.
2010-06-04 16:31:48 +02:00
Patrick Ohly
8a1c26e3d2 sync-ui: renamed local sync() to do_sync() to avoid name collision with system sync()
As reported by Peter Robison, the source code no longer compiles on
Fedora Core 13. The root cause is a name collision of a static
function with the previously defined system call sync().
2010-06-04 08:03:49 +02:00
Patrick Ohly
313f8383bf Funambol: no longer supports COMPLETED
Nightly testing shows that itodo20::testItems, a test which must have
passed in the past, now fails because the COMPLETED property is lost
on the server. It is definitely sent.

Disabling testing of this property for Funambol.
2010-06-02 08:30:10 +02:00
Zhu, Yongsheng
52634d191b valgrind: clean up valgrind issues (MBC#1007)
There are valgrind issues in third party library - libical.
So just suppress them.
2010-06-01 08:29:31 +02:00
Patrick Ohly
f98d275a51 evo.supp: relaxed rule for icalparser_parse_string (MBC #1007)
Our valgrind suppression for a libical internal error did not
longer match because it included a long call stack. Simplified
the callstack to the one inside libical and the one level
inside SyncEvolution. This one location has been checked and
definitely is not our fault - other locations might be, so
don't suppress the error there.
2010-06-01 08:22:01 +02:00
Zhu, Yongsheng
ad361f365d LogDirTest: save and restore logger level (MBC#2570)
4 cases in LogDirTest classes are failed due to logging ouput
missing. The root cause is that the 'session' function in LogDirTest
sets the top logger as 'INFO' level and thus the testing output of
'DEBUG' info can't be written in the log file. Thus nightly testing
can't check the result.
The solution is to save the logging level before creating a new session
and restore it again when completion.
2010-06-01 08:13:23 +02:00
Patrick Ohly
2bdda6ae27 lcs: fixed out-of-bounds array access (MBC #1007)
Found by valgrind: the cost function is called with indices just
outside the array, causing it to read unitialized (and potentially
unavailable) memory.

Calling it like this is intentional, as the original LCS algorithm
works like that. The cost function has to map access outside of the
array to the cost at the boundaries. It also has to handle empty
arrays.
2010-05-31 12:44:55 +02:00
Patrick Ohly
6aff1e8988 test-dbus.py: remove timeout before entering cleanup
When an exception occurred inside TestDBusSession.testSecondSession,
the timeout wasn't removed and would fire sometime later. If the
original problem was "server died", then the timeout code would
try to detach and cause another exception, which then stopped
the whole test-dbus.py run because it triggered outside of a test's
catch block.

This patch solves this by always removing the timeout in a "finally"
clause.
2010-05-27 17:31:35 +02:00
Patrick Ohly
912c52e370 HTTP SyncML server mode: fixed crash when handling second session
This problem is specific to SyncEvolution running as HTTP server:
when a second session is requested, SyncContext::analyzeSyncMLMessage()
creates a second sync session that is active temporarily instead
of the main one. This is necessary to detect when the same peer
connects again.

The static m_sourceListPtr was not reset properly by that function,
causing the main session to fail later on when reading it. This patch
solves the problem by making m_sourceListPtr a normal member of
SyncContext and relying on m_activeContext instead to find the current
source list.
2010-05-27 15:33:06 +02:00
Patrick Ohly
0d48a79733 output redirection: detect glib output despite app name
When an application name is set (as introduced for client-test
by some recent changes), testing against "** (process:" as glib
prefix is insufficient, because "process" will be replaced by
the actual application name.

This was detected by the unit tests. This patch fixes the problem
by relaxing the glib testing (check for "** (" prefix and " **:")
and extends the unit test.
2010-05-27 14:21:46 +02:00
Patrick Ohly
b4865677f5 syncevo-dbus-server: first sync was done without libical time zone info (MBC #2435)
If (and only if) compiled with --enable-evolution-compatibility (as
the binaries on syncevolution.org), libical was only pulled into the
syncevo-dbus-server as part of running a sync. That was too late for
libsynthesis, which had already checked for libical earlier in that
sync session.

All following sync sessions then used libical time zone information.

The effect of not having libical time zone information were occasional
mismatches of time zones.
2010-05-26 18:47:46 +02:00
ivarela
22cd7e4995 l10n: Updates to Asturian (ast) translation
Transmitted-via: Transifex (translate.moblin.org)
2010-05-24 02:05:41 -07:00
dbl2010
768390613c l10n: Initial upload
Transmitted-via: Transifex (translate.moblin.org)
2010-05-19 07:58:47 -07:00
ivarela
e518cab1a4 l10n: updates asturian translation
Transmitted-via: Transifex (translate.moblin.org)
2010-05-19 07:04:11 -07:00
GLS_DEU1
52707ae29a l10n: Updates to German (de) translation
Transmitted-via: Transifex (translate.moblin.org)
2010-05-18 15:45:39 -07:00
GLS_DEU
d96e495edd l10n: Updates to German (de) translation
Transmitted-via: Transifex (translate.moblin.org)
2010-05-18 13:31:31 -07:00
GLS_FIN4
e2f8e823f8 l10n: Updates to Finnish (fi) translation
Transmitted-via: Transifex (translate.moblin.org)
2010-05-18 12:53:14 -07:00
GLS_ITA1
da2314826d l10n: Updates to Italian (it) translation
Transmitted-via: Transifex (translate.moblin.org)
2010-05-18 10:37:15 -07:00
Patrick Ohly
52a21b5456 NEWS: updated for tentative 1.0 final 2010-05-18 15:18:37 +02:00
Zhu, Yongsheng
0f36e5801b Testing: fix wrong link for calendar+todo issue (MBC #1397)
If the source type is 'calendar+todo' type, XML spec doesn't allow
'+' in the element tag. Thus the current solution is to replace
'calendar+todo' with 'calendar_todo'.

But this is not a good choice. Instead, escaped strings are used.
"_" is escaped to "__". "+" is escaped to "_-".
So firstly escape these 2 characters when generating nightly xml
documents and then unescape them when generating nightly html page.
2010-05-18 08:47:25 +02:00
Zhu, Yongsheng
b92b017407 D-Bus server + command line: return error code when failed(MBC #2193)
When logdir can't be accessed, SyncContext handles the error and returns
an error status and command line only returns a false flag. So D-Bus
server has to handle the 'false' flag and throws an exception to
indicate this error to clients.
2010-05-18 08:46:37 +02:00
Zhu, Yongsheng
d32026ead2 config: add 'calendar+todo' source for nokia configs (MBC#2101)
Templates for Nokia phones all have the same problem we stated
in bug#2101. So change them all by adding the source.
2010-05-18 14:19:44 +08:00
Zhu, Yongsheng
b58e7bc751 syncevo-phone-config: generate correct config for 'calendar+todo' (MBC#1197)
When combining calendar and todo into one source, phone config has
2 problems:
1) don't generate correct 'evolutionsource=calendar,todo' for the source
2) It should disable 'calendar' and 'todo' sources instead of 'calendar+
todo'. It's an obvious bug.
Now the tool can generate correct config for Nokia 7210c.
2010-05-18 13:53:16 +08:00
Zhu, Yongsheng
b5903618be config: add 'calendar+todo' source for nokia7210c config (MBC#2101)
sync-ui can't create correct config for nokia s40 series phone
because config.ini doesn't include 'calendar+todo' source.
Add it now and then the config is correctly used to sync.
2010-05-18 12:45:10 +08:00
gls_rus1
4afed206c1 l10n: Updates to Russian (ru) translation
Transmitted-via: Transifex (translate.moblin.org)
2010-05-17 17:45:59 -07:00