Commit Graph

3847 Commits

Author SHA1 Message Date
Tino Keitel ab34545ee7 Debian: correctly enable CardDAV/CalDAV support in the configure call 2011-08-03 21:09:15 +02:00
Tino Keitel b69c3d67d7 Debian: new maintainer: me 2011-08-03 21:09:15 +02:00
Tino Keitel 79338edb1e Debian: add README.Debian for server operation 2011-08-03 21:09:15 +02:00
Tino Keitel 9de85589e1 Debian: rework package descriptions to mention new features 2011-08-03 21:08:51 +02:00
Tino Keitel 8ae7cde9f2 Debian: add documentation fix from upstream git 2011-07-26 19:17:18 +02:00
Tino Keitel 806cb07788 Debian: bump to 1.1.99.5a-2 2011-07-26 15:32:52 +02:00
Tino Keitel 40e670c4d5 Debian: bluez is only available on Linux, specify build deps accordingly 2011-07-24 22:49:42 +02:00
Tino Keitel 0c808f9cfd Debian: updated changelog 2011-07-20 16:12:47 +02:00
Tino Keitel bf41fb9404 Debian: updated NEWS file for 1.1.99.5a 2011-07-19 15:03:59 +02:00
Tino Keitel 0aaa6c49f0 Debian: update upstream tag 2011-07-19 14:12:55 +02:00
Tino Keitel 3afabd9821 Debian: added myself to Uploaders: 2011-07-19 14:12:55 +02:00
Tino Keitel 04b662309e Debian: fixed .orig.tar.gz generation in get-orig-source target 2011-07-19 14:12:54 +02:00
Tino Keitel 63e08795ed Debian: bump version to 1.1.99.5a 2011-07-19 14:12:44 +02:00
Tino Keitel ca60aa3911 Debian: add versioned dependency on libsynthesis
This syncevolution version requires features not present in older
libsynthesis0 packages.
2011-07-19 13:28:35 +02:00
Tino Keitel 686f6ff183 Debian: added python-openssl dependency
The HTTP server now also supports HTTPS and requires python-openssl.
2011-07-19 13:27:40 +02:00
Tino Keitel 3fc49586d8 Merge branch 'upstream' 2011-07-15 19:49:20 +02:00
Patrick Ohly 2e12828e9b bumped version to 1.1.99.5a
Only change is in the compile scripts and the fix for release mode.
2011-07-15 01:53:00 +08:00
Patrick Ohly 79cdfe8ac3 Revert "runtests.py: avoid ssh access to gitorious.org in nightly checkout"
This reverts commit 4a52bd669f.

Conflicts:

	test/runtests.py

The patch had to be reverted because firewall rules now seem to leave
ssh access as the only means of accessing the repository. Conflict due
to later changes, resolved.
2011-07-15 01:47:27 +08:00
Patrick Ohly 9ca81eb482 autotools: not specifying --enable/disable-release-mode set the wrong default
The default should have been the value of STABLE_RELEASE = yes in >= 1.1.99.5.
Instead the string SYNCEVOLUTION_STABLE_RELEASE was set. Fixed the typo.
2011-07-14 17:56:57 +02:00
Tino Keitel c731a10f74 bump version to 1.99.5-1 2011-07-14 13:00:19 +02:00
Tino Keitel 7bfa5f45ad Merge branch 'upstream' 2011-07-14 12:46:36 +02:00
Tino Keitel b064187240 corrected version in NEWS, otherwise the message won't be shown 2011-07-14 11:53:18 +02:00
Tino Keitel f7e482821c rename NEWS.Debian to the correct name NEWS 2011-07-14 11:14:32 +02:00
Patrick Ohly 811d10fc33 D-Bus testing: avoid test failures due to GNOME keyring side effects
The auto-sync tests modified the GNOME keyring by setting a password
for the same URL that is also used in the password request tests,
which caused those tests to fail.

Ideally this would be fixed by running each test with a fresh GNOME
keyring, but this is hard to set up. Instead solve the problem by
keeping the URLs separate.
2011-07-13 15:58:07 +02:00
Patrick Ohly 0c5e98e076 nightly testing: must pre-start gnome-keyring-daemon
On Ubuntu Lucid, GNOME keyring is not started when the GNOME keyring
library asks for the org.freedesktop.secrets service. This
broke testing of syncevo-dbus-server.

This commit solves the problem by explicitly starting and stopping
that daemon as part of creating the D-Bus session. This is similar
to what happens on Lucid when a GNOME session is started.
2011-07-13 19:54:05 +08:00
Patrick Ohly fa03c4b38a bumped version to 1.1.99.5 2011-07-13 12:15:45 +02:00
Patrick Ohly 1882c97162 NEWS: updated for 1.1.99.5 release 2011-07-13 12:15:45 +02:00
Patrick Ohly 65c4dc4ce0 README: simplified examples, added section on local sync/CalDAV/CardDAV
Explicitly specifysing --sync/source-properties is no longer necessary.

The information about local sync and CalDAV/CardDAV must provide enough
information for normal users to use the feature.
2011-07-13 12:15:45 +02:00
Gabriel Schulhof 78e6df73eb Fixes: BMC#19587 (Tapping on Sync notification should open Sync settings in Tablet UX) 2011-07-13 12:26:01 +03:00
Patrick Ohly 84eb04d291 config templates: added IconURI to all templates (BMC #20750)
Most of the selected theme icons don't exist, so adding these values
only provides the possibility to add icons later on.

For Google Contacts, the existing gmail icon is used as a short-term
solution until the theme gets a proper google-contacts icon.
2011-07-12 18:30:02 +02:00
Patrick Ohly 68b61edd6e auto sync: support local sync configs (BMC #20970)
Due to too restrictive checking of the syncURL, configs without http
or obex-bt were never executed automatically. This commit adds a
fallback which enables "other" configs to run without checking for
peer presence.

In addition it marks all "local" syncs as needing HTTP
connectivity. This is a simplification that fits the current use
cases, but needs to be enhanced later on.
2011-07-12 16:26:35 +02:00
Patrick Ohly f47d31580d auto syncing: fix D-Bus API violations (part of BMC #20966)
Auto-sync sessions did not properly activate their D-Bus support and
thus couldn't be accessed via the Session D-Bus API. Must have
affected showing progress of such sessions in the GTK sync-ui.

They also weren't kept around for one minute, like the sessions
started by a client. Therefore UIs which need to retrieve information
about a completed session failed for a second reason.

Fixed by adding the necessary "activate()" and use "addTimeout()"
trick for session expiry also in the AutoSyncManager. The later was
moved into DBusServer for that.

These issues were found with the new
TestSessionAPIsDummy.testAutoSyncFailure D-Bus test.
2011-07-12 12:46:47 +02:00
Patrick Ohly 77bf1f3b4e Memotoo testing: ignore HTML entities problem
Memotoo incorrectly replaces HTML entities in plain text with
the corresponding characters. Reported to Memotoo admin via
email. In the meantime, make tests work again by simplifying
the test data.
2011-07-12 11:43:07 +02:00
Patrick Ohly ced2190670 syncevo-dbus-server: fixed compiler warning
The last commit introduced a compiler warning in debug output: %ld != size_t
2011-07-12 11:41:05 +02:00
Patrick Ohly 11b322b5ee D-Bus server: avoid shutting down while auto-sync is active (BMC #20885)
When a config was set to "auto-sync on", the AutoSyncManager added it
to a list, but did not prevent the server from shutting down. Not sure
how this was meant to work or when it broke.

Fixing it is easy: as long as AutoSyncManager has at least one config
lined up for auto-syncing, it holds a reference on the AutoTerm
instance and thus prevents shutting down.

This commit also adds test cases for various situations:
- prevent shutdown while auto-sync on
- re-enable shutdown while timer is running
- re-enable shutdown while timer is off
2011-07-11 22:42:01 +02:00
Patrick Ohly d8a8c161bb D-Bus testing: enable syncevo-dbus-server debug logging
Set SYNCEVOLUTION_DEBUG=1 before starting syncevo-dbus-log so that we
get a higher log level and the output into the regular stdout of the
process.
2011-07-11 22:20:22 +02:00
Patrick Ohly 0d4226c60b testing: report source initialization errors inside test*() methods
TestingSyncSourcePtr used to catch all exceptions thrown while
constructing and opening the source. This had the negative effect that
errors logged contained the source code line inside
TestingSyncSourcePtr instead of the line where the test itself asks
for the source, which is much more important for debugging the
problem.

This commit thus removes the CPPUnit assertion which catches
exceptions and adds them in all locations inside test*() methods
which, directly or indirectly, create sources.

It is not essential to find all of these places. CPPUnit will report
uncaught exceptions in a test without including a source code
location, which is as good (or bad) as the information reported
previously.
2011-07-11 18:09:59 +02:00
Patrick Ohly 0852e0ad1f testing: relax requirements for ActiveSync backend
In an incremental sync, the ActiveSync backend is only able to provide
data for updated or new items. This is sufficient, other items will
not be read during such a sync and item access doesn't use incremental
sync mode.

Therefore this commit relaxes the testChanges test by removing the
reading of an unmodified item.
2011-07-11 18:05:19 +02:00
Patrick Ohly e0883e4c92 SyncConfig: fixed compiler problem with C++ initialization order (BMC #19464)
g++ 4.6 and ld 2.21.52.20110707 (Debian Unstable) led to a different
order of global instance construction:
1. WebDAV constructor calls SyncConfig::getRegistry()
2. getRegistry() adds the (uninitialized!) property instances
   and modifies them
3. SyncConfig.cpp instances are initializes, which resets
   some of the values modified by getRegistry()

The result was that, for example, the "defaultPeer" property was
treated like an unshared property and written into the wrong config
file.

The assumption that variables in a compilation unit are initialized
before methods in that unit can be called is not based on anything in
the C++ standard. Therefore this commit rewrites the code so that
properties are not added/updated inside the getRegistry()
methods. Instead this is done in separate classes which (and that is
guaranteed by the C++ standard) are constructed after the properties
defined earlier in the compilation unit.
2011-07-11 11:37:09 +02:00
Patrick Ohly 3fca0be2fe GDBus: removed dead code
g++ 4.6 complains about the unused assignment. Probably this boolean
result needs to be checked. But as GDBus will be replaced soon anyway,
don't bother now.
2011-07-11 11:25:33 +02:00
Patrick Ohly 0963cb0809 nightly testing: minor code cleanup
Setting a Boost function doesn't depend on boost::bind(). A direct
assignment also works in simple cases, like createSource().
2011-07-11 11:22:33 +02:00
Patrick Ohly 9f4c1af434 nightly testing: join multiple CATEGORIES
As per RFC 2445, CATEGORIES:1,2 and CATEGORIES:1\nCATEGORIES:2 is
same. We need to pick one normal form. This commit ensures that all
categories are listed in a single CATEGORIES properties. This was both
easier to implement (splitting at a comma while not splitting at a \,
is tricky) and leads to a shorter normal form (less lines).

The reason for making this change now is that with Evolution 2.32.2
and libical 0.44-3, categories end up being stored with one entry per
CATEGORIES property. That by itself is okay and thus our tests should
pass, which they don't without this change to synccompare.

The only problem is that Evolution doesn't seem to handle it (breaks
setting categories in the UI even without syncing). That's something which
needs to be fixed in Evolution.
2011-07-08 10:33:15 +02:00
Patrick Ohly 3d20ede9a6 templates: added generic WebDAV template
In contrast to the Yahoo template, this one doesn't mention
a specific service and enables both contact and calendar sync.
To be used with a service that supports auto-discovery.
2011-07-06 19:47:07 +02:00
Patrick Ohly 1a9489b662 autotools: support detached HEAD (BMC #20093)
A detached HEAD has a hash in .git/HEAD. This confused
gen-autotools.sh which tried to resolve it via "git show-ref", which
in turn only works for refs.

Now gen-autotools.sh checks for real hashes in .git/HEAD and truncates
them directly, without involving show-ref in this case.
2011-07-06 16:33:50 +02:00
Patrick Ohly 210b2dca66 autotools: handle situation where qmake is not installed
The previous commit added a check for qmake, but then used QMAKE
without checking whether qmake was found at all. This caused configure
problems on systems where qmake wasn't available.

The error handling also wasn't correct. A "test" was missing in front
of the comparison.
2011-07-06 16:08:50 +02:00
Chris Kühl 97fff9b4be autotools: check for alternative names to the qmake binary (BMC #17704)
On some distros, such as Fedora, qmake is called qmake-qt4. This is currently
hardcoded to qmake in syncevolution. Better use AC_CHECK_PROGS().
2011-07-05 16:03:29 +02:00
Patrick Ohly ad003c6fc2 nightly testing: must set install env variables also for setup command
The setup command may also depend on correct paths, for example to
find specific backends.
2011-07-05 21:15:12 +08:00
Patrick Ohly ce9a77ee5a nightly testing: test-dbus.py + valgrind
Just like resultchecker.py, test-dbus.py also shouldn't be run
under valgrind. In fact, this segfaults under Debian Testing...
2011-07-05 21:15:12 +08:00
Patrick Ohly 956fa25590 nightly testing: resultchecker.py + valgrind fix
resultchecker.py still run under valgrind because valgrindcheck.sh is
part of the test prefix, not the shell. Clean both variables now.
2011-07-05 21:15:12 +08:00
Patrick Ohly 5bcb6e4827 D-Bus testing: fixed TestSessionAPIsDummy.testCheckSourceInvalidType
The test was meant to check the error triggered by setting an
invalid backend value. Instead it checked the usability of such
a source and thus duplicated the (badly named) testCheckSourceNoType.

testCheckSourceInvalidType itself failed to pass when SyncEvolution
was compiled with modules, because then the "apple-contacts" backend
wasn't installed and SetConfig() failed with an unexpected error.

Now the test triggers that error in call cases with "backend = no-such-backend"
and checks that the right error is reported.
2011-07-05 21:15:12 +08:00