louiz
5ba66c3351
Merge branch 'orm' into 'master'
...
Pure c++ sqlite3 ORM
Closes #3271
See merge request !11
2017-06-14 11:11:17 +02:00
louiz’
2677ac42e8
Fix compilation (many warnings, and a linkage error) with clang++
2017-06-14 10:46:44 +02:00
louiz’
dac19da4c7
Fix an inversion of tlsPorts_ and ports_
2017-06-14 10:46:44 +02:00
louiz’
922610cdbf
Run the coverity and freebsd tests in all louiz/biboumi branches
2017-06-14 00:27:42 +02:00
louiz’
3d1e85fd48
Update INSTALL.rst and CHANGELOG.rst for the sqlite dependency
2017-06-14 00:20:48 +02:00
louiz’
94dd16cbe6
The packaging:archlinux build only makes sense on the master branch
2017-06-14 00:19:15 +02:00
louiz’
8d1d822edf
Explicitely close the Database before re-opening it
2017-06-14 00:19:15 +02:00
louiz’
9defd0ccb7
Add a Statement class to manage the sqlite3_stmt objects and avoid leaks
2017-06-14 00:19:15 +02:00
louiz’
41c23aab37
Update the docker images and the gitlab-ci script to use sqlite3
2017-06-14 00:19:15 +02:00
louiz’
369ccb0376
Add default values for the database columns
2017-06-14 00:19:15 +02:00
louiz’
50cadf3dac
Implement our own database ORM, and update the whole code to use it
...
Entirely replace LiteSQL
fix #3271
2017-06-14 00:19:15 +02:00
louiz’
7ca95a0974
Find sqlite3 instead of litesql
...
Simplifies the CMakeLists.txt a little bit
2017-06-13 10:30:51 +02:00
louiz’
ceb496369f
Test that the archlinux package actually installs at least /usr/bin/biboumi
2017-06-01 17:38:47 +02:00
louiz’
a5f73969b0
Change the makepkg command used in the archlinux CI test
2017-06-01 17:38:47 +02:00
louiz’
ca9db6f933
Move biboumi.h.cmake inside the src/ directory
2017-05-28 01:01:24 +02:00
louiz’
6c2f79eeca
Fix the date format in the RPM spec file
2017-05-24 16:38:20 +02:00
louiz’
23a3372144
Release version 5.0
2017-05-24 13:44:32 +02:00
louiz’
97f01d8e12
Add biboumi-test-archlinux and biboumi-debian-packaging Dockerfiles
2017-05-24 13:44:32 +02:00
louiz’
d6ebcfa9a8
Fix the make command instruction in INSTALL.rst
2017-05-24 13:44:32 +02:00
louiz’
1b71e0f7d4
Add a e2e to check that timestamps in MAM requests are correctly handled
...
fix #3266
2017-05-23 11:46:22 +02:00
louiz’
19ed2e7f5f
Fix the datetime parsing to handle optional fractions of seconds
...
fix #3266
2017-05-23 11:46:14 +02:00
louiz’
d1dc788279
Better document the identd server
2017-05-23 11:45:59 +02:00
louiz’
3913e24ea3
Do not call pkg_check_module if the MODULE_FOUND is already cached
2017-05-23 11:45:59 +02:00
louiz’
cf1c8f188c
Remove a few warnings occuring in some build config
2017-05-21 12:23:10 +02:00
louiz’
154c12f363
The RPM doesn’t contain biboumi.cfg anymore
2017-05-21 12:05:24 +02:00
louiz’
2a637bee0a
Do not install biboumi.cfg in /etc/biboumi/
...
Because it would overwrite the user file when installing a new version. And
it’s basically useless anyway, because if the file doesn’t exist at all,
biboumi will write an helpful message on stderr, telling the user to create
the config file.
2017-05-21 12:02:23 +02:00
louiz’
0ee533256d
Handle messages 367 and 368 to display the banlist in the MUC
...
fix #3234
2017-05-18 21:59:57 +02:00
louiz’
3079c38d2d
Refactor the channel::self to point at the existing user
...
This way, the user is always up to date, instead of being a duplicate out of
sync.
fix #3258
2017-05-18 16:12:10 +02:00
louiz’
bb150d587f
Redirect welcome NOTICE to their channel, instead of sending a global one
...
fix #3236
2017-05-17 00:31:21 +02:00
louiz’
0180ea7e40
Update changelog
2017-05-17 00:31:21 +02:00
louiz’
34f0685c72
Test the default channel list limit
...
fix #3219
2017-05-16 23:55:15 +02:00
louiz’
9d1dc9138f
Make the default build type Release (instead of empty string)
2017-05-16 14:21:03 +02:00
louiz’
8cf0b833c4
Make the IRC channel configuration form available from the MUC config
...
fix #3250
2017-05-11 21:15:43 +02:00
louiz’
577a863977
Remove the “codecov_” prefix for builds codecov uploads too
2017-05-11 09:25:54 +02:00
louiz’
b98059ecdd
Fix the build when litesql is not used
2017-05-10 17:15:32 +02:00
louiz’
da55060840
Improve the handling of the biboudb.hpp dependencies
2017-05-10 16:50:11 +02:00
louiz
7a08196d09
Small fixes in biboumi.1.rst
2017-05-10 11:22:19 +02:00
louiz’
f7e4adb10b
Avoid any potential int overflow
2017-05-09 15:46:20 +02:00
louiz’
c046d2ea98
Also make the test artifacts expire in 2 weeks
2017-05-09 01:01:56 +02:00
louiz’
f7d4db4812
Remove a useless debug log
2017-05-08 23:02:14 +02:00
louiz’
984d71838e
Limit the number of rooms sent by default in the disco#items response
...
fix #3219
2017-05-08 23:01:21 +02:00
louiz’
595a4d6da8
Keep gitlab artifacts for 2 weeks
2017-05-08 20:32:31 +02:00
louiz’
da701069dc
Little fix and cleanup in the channels list code
2017-05-08 18:47:02 +02:00
louiz’
f200126f61
Add an execute_incomplete_hello_adhoc_command e2e test
2017-05-05 00:38:01 +02:00
louiz’
2588efb6ba
Include the policy files into the rpm
2017-05-04 00:08:42 +02:00
louiz’
2fe15b05f1
Add a irc.ppirc.net policy file
...
fix #3261
2017-05-03 23:59:29 +02:00
louiz’
2b4882f36a
Remove redundant irc.freenode.net policy file
2017-05-03 16:57:37 +02:00
louiz’
2c4a47e42d
Add -Wconversion compile flag
2017-05-03 16:55:33 +02:00
louiz’
0a8a77e64c
Fix a segmentation fault when connecting to a server without a port
...
fix #3260
2017-05-02 15:00:21 +02:00
louiz’
ea65b43cc2
Release version 4.2
2017-05-02 14:57:19 +02:00
louiz’
b5c86edc08
Wrong ifndef, kek
2017-04-30 18:26:41 +02:00
louiz’
a3e6497ab8
Add a missing ifnedf BOTAN_FOUND
2017-04-30 15:21:23 +02:00
louiz’
7b3e0e0cf3
Make botan’s policy configurable from a file
...
fix #3244
2017-04-30 15:14:54 +02:00
louiz’
1472adfa77
Remove a too old joke
2017-04-30 15:14:22 +02:00
louiz’
00a71ff241
Use our own proxy link to display the badges
...
For privacy reasons
[skip-ci]
2017-04-25 20:16:20 +02:00
louiz’
3af9d0ac67
Make sure we don’t exceed 512 bytes when grouping JOINs
2017-04-21 22:55:24 +02:00
louiz’
f588ce071e
Group simultaneous JOINs into a single command, to avoid flooding
...
We still split the JOINs with a key and the ones without
2017-04-21 22:47:25 +02:00
louiz’
3666f35e0e
Use alpine for the docker image, and simplify the config + run stuff
...
Using env variable directly used by the process, it’s easier than calling
sed on the configuration file before we start the process. Also we don’t
need to start as root anymore, and it’s a lot cleaner.
2017-04-21 11:49:23 +02:00
louiz’
eac144acda
Configuration options can be overridden by setting env values
2017-04-21 11:19:36 +02:00
louiz’
cf87cf0892
Better way to init the msghdr fields
2017-04-20 15:44:46 +02:00
louiz’
06094245e9
Add a e2e test on alpine
2017-04-20 22:44:14 +02:00
louiz’
69fd6cc4c3
Explicitely init the msghdr fields, to be compatible with any implementation
2017-04-20 19:14:59 +02:00
louiz’
78765a4bc4
Remove the e2e test for the linger_time
2017-04-20 10:15:34 +02:00
louiz’
5ef674c486
Revert "Add a linger_time configuration option on IRC servers"
...
This reverts commit 5d801ddcd0 .
2017-04-20 10:12:00 +02:00
louiz’
e3ee824e5c
Revert "Cancel the IRC server linger timer when we try to-rejoin a channel on it"
...
This reverts commit 45f7396c8d .
2017-04-20 10:09:35 +02:00
louiz’
42677ae46c
Fix the tests to take into account the new “your are exempt bla” line
2017-04-20 18:06:53 +02:00
louiz’
51696c091c
Make sure the channel is joined before trying to leave it
...
fix #3243
2017-04-19 23:33:48 +02:00
louiz
47ff1cd311
Merge branch 'mam_default_limit' into 'master'
...
Limit of 100 MAM messages, if no other limit has been set by the client
Closes #3256
See merge request !9
2017-04-19 23:15:49 +02:00
louiz’
eec8f68de7
Shorten the name of the tags sent to codecov
2017-04-20 00:42:41 +02:00
louiz’
727d887d7b
Fix wrong JID computing when sending iq ping or version in fixed mode
...
fix #3259
2017-04-20 00:24:59 +02:00
louiz’
96d460de48
Add the default MAM limit in the changelog
2017-04-19 23:05:08 +02:00
louiz’
a4e2e56ad3
Add an e2e test for the mam default limit
...
We send 150 messages, then retrieve the archive. We should receive messages
from 50 to 149 only.
2017-04-19 23:02:08 +02:00
louiz’
c2cc9cb96f
Remove the flood limit in our e2e charybdis configuration
2017-04-19 23:02:08 +02:00
louiz’
54fa739d6b
Limit of 100 MAM messages, if no other limit has been set by the client
...
fix #3256
2017-04-19 23:02:08 +02:00
louiz’
4bae383c1d
Take into account the include path found by cmake when looking for litesql lib
2017-04-19 21:29:31 +02:00
louiz’
3238404753
Avoid adding more that one “XMPP reconnection” timed event at the same time
...
Fix a semblance of infinite and busy loop, that could occur if biboumi’s
poller is woken up multiple times while the XMPP server is not reachable.
2017-04-17 14:47:21 +02:00
louiz’
dc5ad49b40
Avoid building test_suite when we make install
2017-04-13 00:19:17 +02:00
louiz’
3a8203c366
Handle the RSM "max" value in the MAM requests
...
fix #3255
2017-04-12 17:07:39 +02:00
louiz’
4fde4d7369
docker: Run the process using “exec”, to be able to cleanly receive signals
2017-04-12 19:27:52 +02:00
louiz’
7d2b8eb526
Always chown biboumi /var/lib/biboumi when the docker container starts
...
This fixes permission problems when we bind a volume that is not owned by
the biboumi user.
2017-04-12 18:26:30 +02:00
louiz’
dec3e42ae3
Add an e2e test for the ad-hoc reload command
2017-04-10 10:09:00 +02:00
louiz’
451f28f5c4
Change the dates of source files before each build, to avoid useless rebuild
2017-04-10 00:18:29 +02:00
louiz’
68d6b82940
Properly handle multiline topics
...
fix #3254
2017-04-09 23:05:32 +02:00
louiz’
79b24d7eb5
Add an e2e test for the ad-hoc ping
2017-04-07 19:55:15 +02:00
louiz’
8a912ea3a3
Apply a few clang-tidy cppcoreguidelines-* fixes
2017-04-07 11:10:51 +02:00
louiz’
0dfeb5a94c
Trivial change in the doc
2017-04-07 11:02:20 +02:00
louiz’
be9c577de8
Apply all the clang-tidy performance-* fixes
2017-04-07 19:01:49 +02:00
louiz’
b82a14f20e
Fix the display of the number of checks to be run by the e2e tests
2017-04-07 19:01:08 +02:00
louiz’
ccb4ee098f
Apply all the clang-tidy misc-* fixes
2017-04-07 18:53:12 +02:00
louiz’
5402a256d1
Apply all the clang-tidy modernize-* fixes
2017-04-07 18:45:24 +02:00
louiz’
dd4c54c6cd
Add a paragraph describing the automated tests
2017-04-06 22:12:20 +02:00
louiz’
0878a0342c
Do not allow pings from resources that aren’t in the channel
...
fix #3252
2017-04-04 21:38:53 +02:00
louiz’
e4cc69607c
Handle some iq of type='error' as valid ping response
...
fix #3251
2017-04-04 18:40:30 +02:00
louiz’
62225e8fe9
Talk about debug logs in contributing.rst and a gitlab ticket template
2017-04-03 11:22:50 +02:00
louiz
15de3334d3
Merge branch 'patch-1' into 'master'
...
Fix typo in CHANGELOG.rst biboumi → botan
See merge request !8
2017-03-31 16:51:18 +02:00
louiz’
7f2127a7ea
Add the archive ID to messages when they are sent to users
...
This makes us compatible with mam 6.0
fix #3249
2017-03-30 18:16:44 +02:00
louiz’
1090f3ceda
Merge branch 'v4'
2017-03-30 09:44:47 +02:00
louiz’
a77ae2d048
Run pacman -Syuu before runing the tests in archlinux
2017-03-29 16:59:46 +02:00
louiz’
1a09c965eb
Remove two sneaky log_debug
2017-03-29 23:32:43 +02:00
louiz’
52b795d119
Add a missing namespace in the server disco#info response
2017-03-29 16:28:25 +02:00