Commit Graph

860 Commits

Author SHA1 Message Date
Roger A. Light
5792e0fe7e Add broker/client per packet type tests for overlong remaining length 2025-11-24 17:23:23 +00:00
Roger A. Light
378bbb7f98 Speed up some bridge tests 2025-11-19 00:09:00 +00:00
Roger A. Light
27820a58c6 Add upper limit to auto_id_prefix
This prevents uint16_t overflow later
2025-11-01 08:32:43 +00:00
Roger A. Light
12d864d3ea Fix fuzzing corpora generation 2025-10-21 22:52:16 +01:00
Roger A. Light
a566e1a3ec Increase test delay 2025-10-14 12:23:43 +01:00
Roger A. Light
ed88d3a480 Control topic: Return error when request sent to missing endpoint 2025-10-14 10:43:31 +01:00
Roger A. Light
711f647921 Add ACL support to http-api 2025-10-14 09:22:47 +01:00
Roger A. Light
dd83c8e97a Add authentication to http-api 2025-10-14 09:04:29 +01:00
Roger A. Light
2c4967a2a4 Test: Fix x.to_bytes() on CI 2025-10-10 23:17:29 +01:00
Roger A. Light
7fa7c99a0c Valgrind test suppression 2025-10-10 23:09:02 +01:00
Roger A. Light
602cd2be42 FIx for #3388
Thanks to nickajacks1
2025-10-10 23:09:02 +01:00
Roger A. Light
aa952a4ef6 Msg sequence test: Readability improvements
Each payload has changed from being a string of hex bytes to being a
string of encoded values that better show their meaning. For example,
UTF-8 strings are now shown as strings, and different integer types are
denoted.
2025-09-30 08:10:54 +01:00
Roger A. Light
5002faadb0 Fix typo 2025-09-17 18:08:09 +01:00
Roger A. Light
4c24b92e34 Formatting: Apply to C++ files 2025-09-17 12:48:02 +01:00
Roger A. Light
460995652e Formatting: Apply to C headers 2025-09-17 12:48:02 +01:00
Roger A. Light
7ea73f6d60 Formatting: Forbid single line if statements
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
48b76e49f8 Formatting: Misc automatic formatting changes 2025-09-17 12:03:06 +01:00
Roger A. Light
883fdb2ad2 Formatting: Double indent continuation 2025-09-17 12:03:06 +01:00
Roger A. Light
6e7ddef145 Formatting: Always include comma for last enum
Plus some spacing
2025-09-17 12:03:06 +01:00
Roger A. Light
d743413ac3 Formatting: Spacing consistency 2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a Formatting: Double space before functions. 2025-09-17 12:03:03 +01:00
Roger A. Light
3017101dc9 Ctrl shell: Add optional priority for addRoleACL 2025-08-29 14:39:10 +01:00
Roger A. Light
f497c01ad1 Add mocks for libmosquitto_common 2025-08-28 20:07:10 +01:00
Roger A. Light
0f96d25b74 Fix session expiry list corruption
This happens if a client with session-expiry-interval set disconnects,
is kicked by a plugin, and then expires.
2025-08-25 08:58:14 +01:00
Roger A. Light
77868330e1 Fix unreachable test code 2025-08-24 11:46:07 +01:00
Roger A. Light
1ae1d08141 Fix variety of Coverity Scan issues in tests 2025-08-23 23:15:16 +01:00
Roger A. Light
3ecbf701a4 Fix variety of Coverity Scan issues in tests 2025-08-23 22:34:34 +01:00
Roger A. Light
5b85540348 Fix test 2025-08-23 21:26:25 +01:00
Roger A. Light
ed9936e39d Exit broker on reload if acl_file or password_file detect invalid input
Also exit if a plugin returns an error code from the RELOAD event.

Closes #3350.
2025-08-23 08:52:24 +01:00
Roger A. Light
53a4406ddc Fix flaky test 2025-08-23 01:07:49 +01:00
Roger A. Light
17b3cea03f Remove redundant information from test identifiers 2025-08-23 01:02:45 +01:00
Roger A. Light
3bf502dab0 Expand logging of disconnect errors. 2025-08-23 00:43:30 +01:00
Roger A. Light
854e76e340 Fix ctrl_shell test cases 2025-08-22 14:50:22 +01:00
Roger A. Light
df001b5289 Fix Coverity Scan #1620020
Possible null dereference in unlikely case. Important
2025-08-22 14:12:13 +01:00
Roger A. Light
32c2b64081 Add --retain-handling to sub and rr clients 2025-08-11 12:17:17 +01:00
Roger A. Light
2094915692 Add man page entry and tests for previous commit 2025-08-08 00:29:01 +01:00
Roger A. Light
6967e5b890 Update for previous commit
Update functionality, man page, changelog, and add test.
2025-08-07 23:35:12 +01:00
Steve Hamann
1eb23685f5 Fix race condition in plugin event psk key test
Signed-off-by: Steve Hamann <steve.hamann@cedalo.com>
2025-08-06 12:28:47 +01:00
Norbert Heusser
7a22685866 Fixed memory issue with property handling in persistence SQLite will restore
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-08-04 18:36:24 +01:00
Roger A. Light
6054666377 Don't allow subscription-identifier for client->broker PUBLISH 2025-07-31 17:40:58 +01:00
Roger A. Light
6fcd4787fe Dont allow + or # in received SUBSCRIBE sharename 2025-07-31 17:26:03 +01:00
Roger A. Light
3d0e96be85 Merge branch 'master' into develop 2025-07-29 16:07:57 +01:00
Roger A. Light
b8ffdb878e Merge from master 2025-07-25 19:13:51 +01:00
Roger A. Light
9b6f004499 Broker: Fix parsing of ints in config. Add extra config test cases. 2025-07-20 23:51:01 +01:00
Roger A. Light
44e5015962 Fix lib subscription identifier tests 2025-07-20 08:51:06 +01:00
Roger A. Light
b3e8ec2d8b Lib: Correctly handle publish properties 2025-07-19 21:47:59 +01:00
Roger A. Light
96cf483577 Improve lib socks5h test coverage 2025-07-19 14:05:54 +01:00
Roger A. Light
ac154176c9 Fix 09-plugin-evt-psk-key test 2025-07-18 08:14:39 +01:00
Roger A. Light
d61d25d488 Replace mosquitto__cmp_hostname_wildcard with openssl equivalent 2025-07-18 07:48:42 +01:00
Roger A. Light
82256e14b0 Use mosquitto_read_file() in mosquitto_pub 2025-07-18 07:25:44 +01:00