Wilfried Goesgens [Fri, 24 Jul 2015 10:32:35 +0000 (12:32 +0200)]
Modularise msgbase
- offer to not call the msg hooks (and set the preivous default in all places)
- move the serialization of messages into own functions
- split saving of messages and saving of new messages and make them use each other
Fix import / export
- don't use fingercount strlen(), CPP can do that way better.
- properly de-serialize messages so we know they're good.
- don't roll our own message saving facilities, use the common one (which then also does the big message data splitting)
Wilfried Goesgens [Fri, 24 Jul 2015 10:31:56 +0000 (12:31 +0200)]
Fix swap of parameters when decoding base64; this could have lead to eventually to small target buffers.
Wilfried Goesgens [Tue, 21 Jul 2015 18:57:12 +0000 (20:57 +0200)]
Disable houskeeping and wait for active background jobs to finish before attemtpting migrating.
Wilfried Goesgens [Mon, 13 Jul 2015 15:32:49 +0000 (17:32 +0200)]
Add timeout facility for event contexts
- make shure now() is set correctly on the context for proper kill decisions
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:48 +0000 (08:18 +0200)]
Work on vcards
- add i18n strings
- add conditionals for data types
- add iterator with filter for data types
Wilfried Goesgens [Wed, 3 Jun 2015 06:18:13 +0000 (08:18 +0200)]
Add filter option to iterators
Wilfried Goesgens [Sun, 10 May 2015 10:17:44 +0000 (12:17 +0200)]
Add way to have structured URL-parametrs using : in their names
Wilfried Goesgens [Sat, 9 May 2015 13:23:49 +0000 (15:23 +0200)]
vcard <-> parser <-> template working for simple values.
Wilfried Goesgens [Sat, 9 May 2015 13:23:18 +0000 (15:23 +0200)]
Catch Z-BUS errors in templates.
Art Cancro [Thu, 7 May 2015 11:17:54 +0000 (07:17 -0400)]
Accidentally merged the configdb branch into Reverting.
This reverts commit
15054b0f11409cfc68102560fe4ab5a4e2bf4ea0, reversing
changes made to
1d738ab06a5394f604de22f816b87efaa6f2563a.
Art Cancro [Wed, 6 May 2015 22:54:00 +0000 (18:54 -0400)]
merge
Wilfried Goesgens [Tue, 5 May 2015 21:20:28 +0000 (23:20 +0200)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Tue, 5 May 2015 21:19:28 +0000 (23:19 +0200)]
Implement dynamic vcard tokens
Wilfried Goesgens [Tue, 5 May 2015 21:15:50 +0000 (23:15 +0200)]
Fix pointer indirection in free'ing of list
Art Cancro [Tue, 5 May 2015 17:34:00 +0000 (13:34 -0400)]
CtdlGetConfigInt() and CtdlGetConfigLong() converted from macros to functions because they need to be able to handle NULL return from CtdlGetConfigStr()
Art Cancro [Tue, 5 May 2015 15:36:00 +0000 (11:36 -0400)]
temporary noisy logging of config activity
Art Cancro [Tue, 5 May 2015 15:32:48 +0000 (11:32 -0400)]
Completed initial code for config system cutover. Not tested yet. Also the import/export module is mostly stubbed out.
Art Cancro [Tue, 5 May 2015 15:18:04 +0000 (11:18 -0400)]
config migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:41:32 +0000 (22:41 -0400)]
config migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:38:07 +0000 (22:38 -0400)]
config migration endless typing meow
Art Cancro [Tue, 5 May 2015 02:24:18 +0000 (22:24 -0400)]
here be more migration
Art Cancro [Tue, 5 May 2015 02:16:03 +0000 (22:16 -0400)]
Moved more code over to the new config system
Art Cancro [Mon, 4 May 2015 14:57:53 +0000 (10:57 -0400)]
Migrated more to the new config system
Art Cancro [Mon, 4 May 2015 14:54:34 +0000 (10:54 -0400)]
Migrated more to the new config system
Art Cancro [Sat, 2 May 2015 16:36:25 +0000 (12:36 -0400)]
serv_expire.c migrated to new config system
Art Cancro [Sat, 2 May 2015 16:24:13 +0000 (12:24 -0400)]
serv_expire.c migrated to new config system
Art Cancro [Fri, 1 May 2015 21:42:19 +0000 (17:42 -0400)]
Migrated many other files to the new config system
Art Cancro [Fri, 1 May 2015 20:50:34 +0000 (16:50 -0400)]
migrated serv_session.c to new config format
Art Cancro [Fri, 1 May 2015 20:45:49 +0000 (16:45 -0400)]
migrated serv_rooms.c to new config format
Art Cancro [Fri, 1 May 2015 20:43:51 +0000 (16:43 -0400)]
migrated serv_messages.c to new config format
Art Cancro [Fri, 1 May 2015 20:39:01 +0000 (16:39 -0400)]
migrated serv_file.c to new config format
Art Cancro [Fri, 1 May 2015 20:35:01 +0000 (16:35 -0400)]
migrated serv_crypto.c to new config format
Art Cancro [Fri, 1 May 2015 15:44:09 +0000 (11:44 -0400)]
Migrated serv_calendar.c to the new config format
Art Cancro [Fri, 1 May 2015 15:40:14 +0000 (11:40 -0400)]
Migrated serv_bio.c to the new config format
Art Cancro [Fri, 1 May 2015 15:39:34 +0000 (11:39 -0400)]
Migrated serv_autocompletion.c to the new config format
Art Cancro [Fri, 1 May 2015 15:38:21 +0000 (11:38 -0400)]
Completed migrating control.o to new config format. WARNING BROKEN BUILD
Art Cancro [Fri, 1 May 2015 14:39:51 +0000 (10:39 -0400)]
More conversion to the new config system. WARNING BROKEN BUILD
Art Cancro [Fri, 1 May 2015 14:25:36 +0000 (10:25 -0400)]
More conversion to the new config system. WARNING BROKEN BUILD
Art Cancro [Thu, 30 Apr 2015 14:05:09 +0000 (10:05 -0400)]
CONF GET command ported to new config system
Art Cancro [Wed, 29 Apr 2015 15:04:39 +0000 (11:04 -0400)]
Converted databasesc to the new config format
Art Cancro [Wed, 29 Apr 2015 15:02:07 +0000 (11:02 -0400)]
Converted serv_extensions.c to the new config format
Art Cancro [Wed, 29 Apr 2015 15:00:17 +0000 (11:00 -0400)]
Converted sysdep.c to the new config format
Art Cancro [Wed, 29 Apr 2015 14:58:43 +0000 (10:58 -0400)]
Converted citserver.c to the new config format
Art Cancro [Wed, 29 Apr 2015 14:56:43 +0000 (10:56 -0400)]
Converted user_ops.o to new config format
Art Cancro [Wed, 29 Apr 2015 14:42:51 +0000 (10:42 -0400)]
config.c ported to new system BROKEN BUILD ALERT
Art Cancro [Sat, 25 Apr 2015 05:10:12 +0000 (01:10 -0400)]
Completed the get/set config functions.
Art Cancro [Sat, 25 Apr 2015 03:46:33 +0000 (23:46 -0400)]
Move location of variable declaration to silence warning
Art Cancro [Sat, 25 Apr 2015 03:46:33 +0000 (23:46 -0400)]
Move location of variable declaration to silence warning
Art Cancro [Sat, 25 Apr 2015 03:43:37 +0000 (23:43 -0400)]
Set up the CDB_CONFIG database
Art Cancro [Fri, 24 Apr 2015 22:35:57 +0000 (18:35 -0400)]
started setting up new config system
Art Cancro [Mon, 20 Apr 2015 22:44:27 +0000 (18:44 -0400)]
get_config() is now called from master_startup() immediately after the databases are opened.
Art Cancro [Mon, 20 Apr 2015 14:54:52 +0000 (10:54 -0400)]
Removed c_ctdluid from struct config entirely
Art Cancro [Mon, 20 Apr 2015 14:52:32 +0000 (10:52 -0400)]
ctdluid is now specified on the command line with the new -u option. Config file is not used anymore.
Wilfried Goesgens [Fri, 17 Apr 2015 06:15:36 +0000 (08:15 +0200)]
In case of to many users online we throw an error; we have to stop processing too.
Wilfried Goesgens [Mon, 13 Apr 2015 22:37:39 +0000 (00:37 +0200)]
Make base64 encoding not add random linebreak/feed characters.
Art Cancro [Sat, 18 Apr 2015 23:27:00 +0000 (19:27 -0400)]
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
Wilfried Goesgens [Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)]
set_default_values() in setup.c now gone completely
Wilfried Goesgens [Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)]
set_default_values() in setup.c now gone completely
Wilfried Goesgens [Fri, 17 Apr 2015 06:15:36 +0000 (08:15 +0200)]
In case of to many users online we throw an error; we have to stop processing too.
Wilfried Goesgens [Mon, 13 Apr 2015 22:37:39 +0000 (00:37 +0200)]
Make base64 encoding not add random linebreak/feed characters.
Art Cancro [Fri, 10 Apr 2015 18:57:19 +0000 (14:57 -0400)]
Removed the whole configlen thing. Seriously, WTF?
Art Cancro [Fri, 10 Apr 2015 17:48:23 +0000 (13:48 -0400)]
Call get_config() only once, not twice
Art Cancro [Tue, 7 Apr 2015 12:37:23 +0000 (08:37 -0400)]
Create CDB_CONFIG database. Renamed some members of CitControl.
Wilfried Goesgens [Thu, 2 Apr 2015 17:40:47 +0000 (19:40 +0200)]
fix uninitialised warning.
Wilfried Goesgens [Thu, 2 Apr 2015 17:27:53 +0000 (19:27 +0200)]
Remove oduplicate definition which became visible once it wasn't the same anymore...
Art Cancro [Wed, 1 Apr 2015 16:58:03 +0000 (12:58 -0400)]
Ran the releaseversion.sh script to mark everything as version 9.01
Wilfried Goesgens [Mon, 30 Mar 2015 20:57:37 +0000 (22:57 +0200)]
by Harry Coin: fix implementation - this buffer was missing.
Wilfried Goesgens [Mon, 30 Mar 2015 20:57:05 +0000 (22:57 +0200)]
by Harry Coin:
- fix commandline help message.
Wilfried Goesgens [Mon, 30 Mar 2015 20:55:33 +0000 (22:55 +0200)]
By Harry Coin:
- fix detection of libdiscount
- add detection for pwuid & friends
Wilfried Goesgens [Mon, 30 Mar 2015 20:54:19 +0000 (22:54 +0200)]
by Harry Coin: remove deprecated -t option from the debian init script.
Wilfried Goesgens [Mon, 30 Mar 2015 20:53:45 +0000 (22:53 +0200)]
By Harry Coin: make IsEmptyStr NULL-pointer-safe.
Wilfried Goesgens [Mon, 30 Mar 2015 14:29:58 +0000 (16:29 +0200)]
By Harry Coin:
1) The problem long discussed upstream to do with LDAP auth wanting the user name offered after the PASS command to stick around for later vcard use. The approach is to have vcard related searches use the citserver username to search against the ldap CN, while login searches behave as in the release version.
2) The vcard has a field uid, which citserver uses to tag vcards for uniqueness. LDAP also has a uuid for each of its records, most aptly saved also in the vcard as uuid. These collided causing the vcard to be reloaded every check owing to the overwriting the LDAP written uid over the citserver use of the same field. The patches below use the RFC approved 2.1 X- extension to support the field X-UUID for the ldap uuid. There's also small code cleanup to avoid setting the UID twice.
Wilfried Goesgens [Sun, 1 Mar 2015 16:04:59 +0000 (17:04 +0100)]
Fix debian init script so it works with systemd.
Wilfried Goesgens [Sun, 1 Mar 2015 15:13:09 +0000 (16:13 +0100)]
Add epic editor copyright
Wilfried Goesgens [Sun, 1 Mar 2015 14:53:52 +0000 (15:53 +0100)]
add epic to the install target.
Wilfried Goesgens [Sun, 1 Mar 2015 13:38:55 +0000 (14:38 +0100)]
Fix memory leaks; need to register lookups so their list is free'd afterwards.
Wilfried Goesgens [Sun, 1 Mar 2015 12:59:15 +0000 (13:59 +0100)]
mkd_cleanup() frees the output buffer.
Wilfried Goesgens [Sun, 1 Mar 2015 12:00:30 +0000 (13:00 +0100)]
Add libdiscount for markdown
Wilfried Goesgens [Thu, 19 Feb 2015 23:06:07 +0000 (00:06 +0100)]
Need to set the header data.
Wilfried Goesgens [Thu, 19 Feb 2015 22:31:59 +0000 (23:31 +0100)]
RSSClient: Add the location header provided URL to the error message, if we fail with a 30x HTTP
Wilfried Goesgens [Tue, 17 Feb 2015 19:20:05 +0000 (20:20 +0100)]
Send crashmessage just once per day.
Wilfried Goesgens [Mon, 16 Feb 2015 19:52:59 +0000 (20:52 +0100)]
Fix utf8-handling.
Wilfried Goesgens [Mon, 16 Feb 2015 19:35:57 +0000 (20:35 +0100)]
Fix utf8-non-encoding in xml-escape
Art Cancro [Sun, 15 Feb 2015 13:22:27 +0000 (08:22 -0500)]
Added the Easy Install script to contrib
Art Cancro [Sat, 14 Feb 2015 22:26:32 +0000 (17:26 -0500)]
Fixed the remaining bugs in roster iq replies.
Art Cancro [Sat, 14 Feb 2015 22:14:43 +0000 (17:14 -0500)]
fix to previous commit
Art Cancro [Sat, 14 Feb 2015 20:21:56 +0000 (15:21 -0500)]
Added a from= attribute to the reply to discovery queries. This appears to fix recently discovered XMPP client problems.
Art Cancro [Thu, 12 Feb 2015 19:15:14 +0000 (14:15 -0500)]
Change copyright date in banner to 2015
Wilfried Goesgens [Mon, 9 Feb 2015 13:00:35 +0000 (14:00 +0100)]
As sugested by Robotamer: append the view parameter to the link.
Wilfried Goesgens [Sun, 1 Feb 2015 12:23:24 +0000 (13:23 +0100)]
Add jshintrc
Wilfried Goesgens [Thu, 22 Jan 2015 23:05:39 +0000 (00:05 +0100)]
fix token
Wilfried Goesgens [Tue, 20 Jan 2015 23:11:21 +0000 (00:11 +0100)]
fix type in testcase too.
Wilfried Goesgens [Tue, 20 Jan 2015 22:56:22 +0000 (23:56 +0100)]
Use a Type for the stream pointers instead of void* so we have better error checking.
Wilfried Goesgens [Tue, 20 Jan 2015 22:27:46 +0000 (23:27 +0100)]
Add error handling to the stream functions
Wilfried Goesgens [Tue, 20 Jan 2015 21:11:12 +0000 (22:11 +0100)]
Its the job of the stream lib to suppress chunks just consisting of the gzip header.
Wilfried Goesgens [Sun, 18 Jan 2015 19:12:40 +0000 (20:12 +0100)]
Don't send an extra chunk for the gzip header.
Wilfried Goesgens [Sun, 18 Jan 2015 18:51:57 +0000 (19:51 +0100)]
Fill the noncompress blacklist from what debian /etc/mime.types brings about uncompresseable.
Wilfried Goesgens [Sun, 18 Jan 2015 14:32:13 +0000 (15:32 +0100)]
- put proper pointer into the free function
- abort if the algorythm says more to come but doesn't send anymore.
Wilfried Goesgens [Sun, 18 Jan 2015 14:31:44 +0000 (15:31 +0100)]
Properly detect stream pointers to avaid crashes on freeing.`
Wilfried Goesgens [Sun, 18 Jan 2015 11:41:45 +0000 (12:41 +0100)]
Fix chunked encoding gzip.