accounts-sso:accounts-glib.git
6 years agoversion update master 1.2
Alexander Akimov [Fri, 30 Sep 2011 08:47:52 +0000 (11:47 +0300)]
version update

6 years agoone issue need to be removed
Alexander Akimov [Fri, 30 Sep 2011 08:44:16 +0000 (11:44 +0300)]
one issue need to be removed

6 years agoMerge branch 'master' of gitorious.org:accounts-sso/accounts-glib
Alexander Akimov [Fri, 30 Sep 2011 08:43:20 +0000 (11:43 +0300)]
Merge branch 'master' of gitorious.org:accounts-sso/accounts-glib

6 years agomemleak
Alexander Akimov [Fri, 30 Sep 2011 08:25:23 +0000 (11:25 +0300)]
memleak

6 years agoAddresses: 275878 - [Task] Object sensitive menu in Accounts view
smita [Fri, 23 Sep 2011 07:46:03 +0000 (10:46 +0300)]
Addresses: 275878 - [Task] Object sensitive menu in Accounts view

6 years agoIncrease version
Tomi Suviola [Tue, 26 Jul 2011 10:52:47 +0000 (13:52 +0300)]
Increase version

6 years agoVersion 0.69 0.69
Aurel Popirtac [Tue, 14 Jun 2011 13:50:24 +0000 (16:50 +0300)]
Version 0.69

6 years agoIncreased timeout for the test_blocking test.
Aurel Popirtac [Tue, 14 Jun 2011 07:18:58 +0000 (10:18 +0300)]
Increased timeout for the test_blocking test.

6 years agoFixes: NB#Account::verify and Account::verifyWithTokens() returns TRUE all the time...
Aurel Popirtac [Tue, 14 Jun 2011 07:15:34 +0000 (10:15 +0300)]
Fixes: NB#Account::verify and Account::verifyWithTokens() returns TRUE all the time irrespective of whether Account::sign() called or not.

6 years agoVersion 0.68 0.68
Alberto Mardegan [Fri, 10 Jun 2011 13:50:24 +0000 (16:50 +0300)]
Version 0.68

6 years agoAdd missing dependencies
Alberto Mardegan [Fri, 10 Jun 2011 13:49:57 +0000 (16:49 +0300)]
Add missing dependencies

6 years agoVersion 0.67 0.67
Alberto Mardegan [Mon, 23 May 2011 08:04:56 +0000 (11:04 +0300)]
Version 0.67

6 years agoUpdate location of backup file 5
Alberto Mardegan [Mon, 23 May 2011 06:57:20 +0000 (09:57 +0300)]
Update location of backup file

6 years agoAdd backup tool
Alberto Mardegan [Mon, 23 May 2011 06:52:34 +0000 (09:52 +0300)]
Add backup tool

6 years agocreating 0.66 tag for bug#235727 0.66
Ramakrishna [Tue, 10 May 2011 10:20:37 +0000 (15:50 +0530)]
creating 0.66 tag for bug#235727

6 years agoreplaced for loop with a while loop to solve the issue
Ramakrishna [Mon, 9 May 2011 13:38:59 +0000 (19:08 +0530)]
replaced for loop with a while loop to solve the issue

6 years agoVersion 0.65 0.65
Alberto Mardegan [Thu, 5 May 2011 08:10:29 +0000 (11:10 +0300)]
Version 0.65

6 years agoUse SQLite in WAL-journaled mode 4
Alberto Mardegan [Thu, 5 May 2011 07:35:54 +0000 (10:35 +0300)]
Use SQLite in WAL-journaled mode

See: http://www.sqlite.org/draft/wal.html
This seems to considerably help concurrency issues.

6 years agoag-tool: use g_path_get_basename(), not basename() 0.64
Will Thompson [Tue, 4 Jan 2011 14:03:31 +0000 (14:03 +0000)]
ag-tool: use g_path_get_basename(), not basename()

On my amd64 machine, the current ag-tool crashes when it tries to show
the usage string. gdb shows that gl_app_name contains garbage, though it
seemed to not be garbage before the call to show_help(). (Yes, this
surprised me too.) I suspect it might be related to basename modifying
its argument or something; I'm not really sure.

Either way, replacing the call to basename() with a call to
g_path_get_basename()—which returns a newly allocated string—fixes the
crash.

6 years agomerge conflicts harmattan/0.64
smita [Thu, 27 Jan 2011 09:02:28 +0000 (11:02 +0200)]
merge conflicts

6 years agoVersion 0.64
smita [Thu, 27 Jan 2011 09:00:44 +0000 (11:00 +0200)]
Version 0.64

6 years agofixing bug: 221488 - API: Method needed for getting provider icon
smita [Thu, 27 Jan 2011 08:56:35 +0000 (10:56 +0200)]
fixing bug: 221488 - API: Method needed for getting provider icon

6 years agoVersion 0.63 0.63
Dominic Velikakath [Tue, 25 Jan 2011 13:19:28 +0000 (18:49 +0530)]
Version 0.63

6 years agoBugFix #203268 - accountListEnabled and accountList doesnot return the expected size
Dominic Velikakath [Tue, 25 Jan 2011 11:40:12 +0000 (17:10 +0530)]
BugFix #203268 - accountListEnabled and accountList doesnot return the expected size

7 years agoVersion 0.62 0.62
Alberto Mardegan [Tue, 14 Dec 2010 08:43:50 +0000 (10:43 +0200)]
Version 0.62

7 years agoTool to create/edit/delete accounts
Aparna Nandyal [Mon, 22 Nov 2010 21:35:11 +0000 (03:05 +0530)]
Tool to create/edit/delete accounts

7 years agoUpdate git ignore files
Alberto Mardegan [Tue, 14 Dec 2010 08:33:00 +0000 (10:33 +0200)]
Update git ignore files

7 years agoFix ag_manager_list_enabled()
Alberto Mardegan [Tue, 14 Dec 2010 08:24:38 +0000 (10:24 +0200)]
Fix ag_manager_list_enabled()

Patch provided by Aparna Nand <aparna.nand@wipro.com>:
Fixes: MB#10991 - API ag_manager_list_enabled returning disabled accounts also

7 years agoMerge branch 'bmc10569' 0.61
Alberto Mardegan [Wed, 1 Dec 2010 14:25:38 +0000 (16:25 +0200)]
Merge branch 'bmc10569'

7 years agoCheck for NULL return value.
Alberto Mardegan [Wed, 1 Dec 2010 14:24:28 +0000 (16:24 +0200)]
Check for NULL return value.

Fixes: BMC#10569 - Code comment - NULL check not present in ag-manager.c code

7 years agoVersion 0.61
Aurel Popirtac [Mon, 22 Nov 2010 09:36:12 +0000 (11:36 +0200)]
Version 0.61

7 years agoAdditional fix in the context of NB#202721 - QMailAccount fields sometimes stored...
Aurel Popirtac [Mon, 22 Nov 2010 09:33:07 +0000 (11:33 +0200)]
Additional fix in the context of NB#202721 - QMailAccount fields sometimes stored in accounts.db with incorrect service id of 0.

7 years agoVersion 0.60
smita [Fri, 12 Nov 2010 14:25:37 +0000 (16:25 +0200)]
Version 0.60

7 years agoFixing bug 200711 - Configured accounts are cleared/disappear after taking backup
smita [Fri, 12 Nov 2010 14:20:23 +0000 (16:20 +0200)]
Fixing bug 200711 - Configured accounts are cleared/disappear after taking backup

7 years agoVersion 0.59
Aurel Popirtac [Thu, 11 Nov 2010 10:20:33 +0000 (12:20 +0200)]
Version 0.59

7 years agoTests update.
Aurel Popirtac [Thu, 11 Nov 2010 09:42:17 +0000 (11:42 +0200)]
Tests update.

7 years agoFix for NB#202721 - QMailAccount fields sometimes stored in accounts.db with incorrec...
Aurel Popirtac [Thu, 11 Nov 2010 09:42:59 +0000 (11:42 +0200)]
Fix for NB#202721 - QMailAccount fields sometimes stored in accounts.db with incorrect service id of 0.

7 years ago%ll[ud] specifiers not portable between 32/64 bit archs, use G_ macros
Vivek Dasmohapatra [Thu, 28 Oct 2010 13:42:08 +0000 (14:42 +0100)]
%ll[ud] specifiers not portable between 32/64 bit archs, use G_ macros

7 years agoprecision must be ‘int’, but supplied value is ‘long unsigned int’ on x86_64
Vivek Dasmohapatra [Thu, 28 Oct 2010 13:41:14 +0000 (14:41 +0100)]
precision must be ‘int’, but supplied value is ‘long unsigned int’ on x86_64

7 years agoUpdate RPM files
Alberto Mardegan [Mon, 25 Oct 2010 12:44:10 +0000 (15:44 +0300)]
Update RPM files

7 years agoVersion 0.58 0.58
smita [Fri, 22 Oct 2010 08:39:13 +0000 (11:39 +0300)]
Version 0.58

7 years agoFixed 198281: some changes still left
smita [Fri, 22 Oct 2010 08:30:34 +0000 (11:30 +0300)]
Fixed 198281: some changes still left

7 years agoVersion 0.57
smita [Thu, 21 Oct 2010 06:37:16 +0000 (09:37 +0300)]
Version 0.57

7 years agoMerge branch 'master' of gitorious.org:accounts-sso/accounts-glib
smita [Thu, 21 Oct 2010 06:35:11 +0000 (09:35 +0300)]
Merge branch 'master' of gitorious.org:accounts-sso/accounts-glib

7 years agoFixed: bug 198281
smita [Thu, 21 Oct 2010 06:27:31 +0000 (09:27 +0300)]
Fixed: bug 198281

7 years agoVersion 0.56
Alberto Mardegan [Mon, 18 Oct 2010 06:56:44 +0000 (09:56 +0300)]
Version 0.56

7 years agoFix list_enabled_services_from_memory()
Alberto Mardegan [Mon, 18 Oct 2010 06:56:20 +0000 (09:56 +0300)]
Fix list_enabled_services_from_memory()

The service_type parameter was ignored.

7 years agoFix unit tests
Alberto Mardegan [Mon, 18 Oct 2010 06:48:59 +0000 (09:48 +0300)]
Fix unit tests

The create2 method is not creating an account with an enabled service.
Duplicate the code as "create3", and make it create an enabled account. This
makes the Caching test work again.

7 years agoCorrect visibility of two symbols
Alberto Mardegan [Mon, 18 Oct 2010 06:48:27 +0000 (09:48 +0300)]
Correct visibility of two symbols

7 years agoOnly export symbols starting with "ag_"
Alberto Mardegan [Mon, 11 Oct 2010 13:38:42 +0000 (16:38 +0300)]
Only export symbols starting with "ag_"

7 years agoVersion 0.55 0.55
Alberto Mardegan [Fri, 8 Oct 2010 08:13:22 +0000 (11:13 +0300)]
Version 0.55

7 years agoMinimize DB access in ag_account_list_enabled_services()
Alberto Mardegan [Wed, 6 Oct 2010 06:57:51 +0000 (09:57 +0300)]
Minimize DB access in ag_account_list_enabled_services()

If the account has been created from another instance, we have all the service
settings already in memory: there's no need to query the DB to get them.

7 years agoCoding style
Alberto Mardegan [Wed, 6 Oct 2010 06:10:15 +0000 (09:10 +0300)]
Coding style

7 years agoReorder and group tests
Alberto Mardegan [Tue, 5 Oct 2010 13:02:07 +0000 (16:02 +0300)]
Reorder and group tests

This allows executing only a group of tests at a time.

7 years agoStyle changes
Alberto Mardegan [Tue, 5 Oct 2010 12:42:43 +0000 (15:42 +0300)]
Style changes

7 years agoAllow running a single test case
Alberto Mardegan [Tue, 5 Oct 2010 12:35:50 +0000 (15:35 +0300)]
Allow running a single test case

7 years agoAdd test for unnecessary DB access
Alberto Mardegan [Tue, 5 Oct 2010 12:12:54 +0000 (15:12 +0300)]
Add test for unnecessary DB access

This test is currently failing -- correct implementation is still missing.

7 years agoNever discard settings coming from D-Bus
Alberto Mardegan [Tue, 5 Oct 2010 12:04:51 +0000 (15:04 +0300)]
Never discard settings coming from D-Bus

7 years agoRetrieve service ID when necessary
Alberto Mardegan [Tue, 5 Oct 2010 12:02:14 +0000 (15:02 +0300)]
Retrieve service ID when necessary

If the AgService was created with the _ag_service_new_with_type() method (and
possibly others), the service ID is not known.
Factor out the logic for getting the ID of an AgService into a separate
function, which takes care of fetching it from DB if necessary.

7 years agoAgService: load needed info when incomplete
Alberto Mardegan [Tue, 5 Oct 2010 12:00:47 +0000 (15:00 +0300)]
AgService: load needed info when incomplete

If the AgService was created with incomplete data, load the missing data on
demand.

7 years agoInstantiate an AgService for foreign changes too
Alberto Mardegan [Tue, 5 Oct 2010 11:58:27 +0000 (14:58 +0300)]
Instantiate an AgService for foreign changes too

When building the AgServiceChanges structure, the AgService was always set to
NULL when the changes were coming from the D-Bus signal.
Since we are going to make better use of the changes data, we need to have a
valid AgService here (although incomplete).

7 years agoAccounts from DBus: don't load settings
Alberto Mardegan [Tue, 5 Oct 2010 08:26:43 +0000 (11:26 +0300)]
Accounts from DBus: don't load settings

When we get a D-Bus message telling that an account has been created, we don't
need to load the account settings: they should be already in memory.

7 years agoVersion 0.54
smita [Wed, 29 Sep 2010 07:41:46 +0000 (10:41 +0300)]
Version 0.54

7 years agoFix bug: 189503
smita [Tue, 28 Sep 2010 13:02:12 +0000 (16:02 +0300)]
Fix bug: 189503

7 years agoVersion 0.52
smita [Wed, 22 Sep 2010 08:57:58 +0000 (11:57 +0300)]
Version 0.52

7 years agoFixing bug 192786
smita [Wed, 22 Sep 2010 08:51:25 +0000 (11:51 +0300)]
Fixing bug 192786

7 years agoIf the client wants to, we can abort on timeout. 0.52
Alberto Mardegan [Mon, 30 Aug 2010 12:25:50 +0000 (15:25 +0300)]
If the client wants to, we can abort on timeout.

Add ag_manager_{set,get}_abort_on_db_timeout() methods to allow the client to
automatically abort in case of DB timeout.

7 years agoTest case for ag_manager_load_account()
Alberto Mardegan [Mon, 30 Aug 2010 09:20:19 +0000 (12:20 +0300)]
Test case for ag_manager_load_account()

Extend an existing test case.

7 years agoIntroeduce new error code: AG_ERROR_ACCOUNT_NOT_FOUND
Alberto Mardegan [Mon, 30 Aug 2010 09:19:27 +0000 (12:19 +0300)]
Introeduce new error code: AG_ERROR_ACCOUNT_NOT_FOUND

Return this error when the query succeeds but returns no rows.

7 years agoAdd internal function _ag_manager_get_last_error()
Alberto Mardegan [Mon, 30 Aug 2010 09:18:48 +0000 (12:18 +0300)]
Add internal function _ag_manager_get_last_error()

7 years agoAdd ag_manager_load_account(), which carries GError
Alberto Mardegan [Fri, 27 Aug 2010 11:18:30 +0000 (14:18 +0300)]
Add ag_manager_load_account(), which carries GError

The ag_manager_get_account() function can return NULL, but there is currently
no way to know why it failed.
The ag_manager_load_account() overcomes this problem.

7 years agoStore the last error for failed query
Alberto Mardegan [Fri, 27 Aug 2010 08:17:33 +0000 (11:17 +0300)]
Store the last error for failed query

Also introduce a new error for DB timeouts; applications might want to handle
this one differently.

7 years agoAdd internal function to set the last error.
Alberto Mardegan [Fri, 27 Aug 2010 07:41:13 +0000 (10:41 +0300)]
Add internal function to set the last error.

7 years agoversion 0.52
Alexander Akimov [Tue, 31 Aug 2010 11:01:33 +0000 (14:01 +0300)]
version 0.52

7 years agoCode optimization:
Alexander Akimov [Tue, 31 Aug 2010 10:58:35 +0000 (13:58 +0300)]
Code optimization:

1) minus 1 function call
2) Grouping variables definition on top of test function

7 years agoAnother part of the fix for "enabledServices" bug
Alexander Akimov [Tue, 31 Aug 2010 10:15:39 +0000 (13:15 +0300)]
Another part of the fix for "enabledServices" bug

7 years agoMerge branch 'master' of gitorious.org:accounts-sso/accounts-glib
Alexander Akimov [Mon, 30 Aug 2010 09:52:41 +0000 (12:52 +0300)]
Merge branch 'master' of gitorious.org:accounts-sso/accounts-glib

7 years agoVersion 0.51
smita [Fri, 27 Aug 2010 12:13:40 +0000 (15:13 +0300)]
Version 0.51

7 years agoMerge branch 'master' of gitorious.org:accounts-sso/accounts-glib
smita [Fri, 27 Aug 2010 12:12:31 +0000 (15:12 +0300)]
Merge branch 'master' of gitorious.org:accounts-sso/accounts-glib

7 years agoFreeing the memory
smita [Fri, 27 Aug 2010 09:09:43 +0000 (12:09 +0300)]
Freeing the memory

7 years agoFetchin translation catalog from the service xml files
smita [Fri, 27 Aug 2010 08:59:40 +0000 (11:59 +0300)]
Fetchin translation catalog from the service xml files

7 years agoVersion 0.50 0.50
Alberto Mardegan [Fri, 27 Aug 2010 06:01:40 +0000 (09:01 +0300)]
Version 0.50

Alex, you forgot to increase the version number!

7 years agoVersion 0.49
Alberto Mardegan [Fri, 27 Aug 2010 05:59:31 +0000 (08:59 +0300)]
Version 0.49

7 years agoAccess the SQLite DB in synchronous mode
Alberto Mardegan [Fri, 27 Aug 2010 05:53:52 +0000 (08:53 +0300)]
Access the SQLite DB in synchronous mode

The asynchronous mode delivered a huge performance boost, but also caused the
DB to be corrupted in case of power loss.

7 years agocode style fix alak_enabledService 0.49
Alexander Akimov [Wed, 25 Aug 2010 10:52:36 +0000 (13:52 +0300)]
code style fix

7 years agoFix for NB#187346 (enabledService works wrong)
Alexander Akimov [Wed, 25 Aug 2010 09:13:07 +0000 (12:13 +0300)]
Fix for NB#187346 (enabledService works wrong)

7 years agoVersion 0.48 0.48
Alberto Mardegan [Fri, 20 Aug 2010 10:20:58 +0000 (13:20 +0300)]
Version 0.48

7 years agoFix parsing of XML provider files doctype
Alberto Mardegan [Fri, 20 Aug 2010 10:10:36 +0000 (13:10 +0300)]
Fix parsing of XML provider files

We need to check if the current node is actually an element; without this
check, provider files including the DOCTYPE declaration won't be parsed
correctly.

7 years agoVersion 0.47
Smita Srivastava [Tue, 17 Aug 2010 13:22:32 +0000 (16:22 +0300)]
Version 0.47

7 years agofinal glib changes to fetch catalog from xml
Smita Srivastava [Tue, 17 Aug 2010 11:38:50 +0000 (14:38 +0300)]
final glib changes to fetch catalog from xml

7 years agoAdded environment variable for test script
Alberto Mardegan [Thu, 5 Aug 2010 13:30:56 +0000 (16:30 +0300)]
Added environment variable for test script

7 years agoVersion 0.46 0.46
Alberto Mardegan [Tue, 3 Aug 2010 07:48:25 +0000 (10:48 +0300)]
Version 0.46

7 years agoMove up the check for duplicate signals
Alberto Mardegan [Tue, 3 Aug 2010 06:47:17 +0000 (09:47 +0300)]
Move up the check for duplicate signals

This check need to happen before any other check, because otherwise duplicate
signals might not be detected as such, and could be still processed.

7 years agoPrint the AgManager instance in debug statement
Alberto Mardegan [Tue, 3 Aug 2010 06:45:58 +0000 (09:45 +0300)]
Print the AgManager instance in debug statement

7 years agoVersion 0.45 0.45
Alberto Mardegan [Mon, 2 Aug 2010 07:04:31 +0000 (10:04 +0300)]
Version 0.45

7 years agoDon't process signals coming from different object paths
Alberto Mardegan [Fri, 30 Jul 2010 11:58:08 +0000 (14:58 +0300)]
Don't process signals coming from different object paths

If the same process has several instances of the AgManager, each of them
installing their own DBus match rules, it may be that the AgManager receives
some messages which don't match its own filters; these messages must not be
processed. To achieve this, message filtering must be performed also in the
D-Bus handler function, by discarding all messages coming from an object path
we didn't register for.

7 years agoRewrite registering of D-Bus matches
Alberto Mardegan [Fri, 30 Jul 2010 11:49:10 +0000 (14:49 +0300)]
Rewrite registering of D-Bus matches

Save the object paths for later use (following commit will use them).

7 years agoDon't emit the "updated" signal along with "created" or "deleted"
Alberto Mardegan [Fri, 30 Jul 2010 11:30:30 +0000 (14:30 +0300)]
Don't emit the "updated" signal along with "created" or "deleted"

7 years agoVersion 0.44 0.44
Alberto Mardegan [Tue, 27 Jul 2010 06:53:13 +0000 (09:53 +0300)]
Version 0.44

7 years agoDo not process D-Bus signals twice
Alberto Mardegan [Mon, 26 Jul 2010 15:41:50 +0000 (18:41 +0300)]
Do not process D-Bus signals twice

With the replication of D-Bus messages on different object paths, it's possible
that the same signal would be processed twice (because the AgManager is
listening on the global service type and on another one); therefore, we must
remember the last signals we processed, and avoid re-processing them. We don't
need to remember many of them; actually, in most cases the remembering only the
last one is enough, but we keep the last three just for extra safety.