1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
Commit Graph

1046 Commits

Author SHA1 Message Date
Qt Submodule Update Bot
ab4462a86d Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I65fd3fe634eba805efe87f906109cc7661314484
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-12-11 10:02:25 +00:00
Qt Submodule Update Bot
4397d8be90 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Ie6279abcc802cafdd751ffb855515d15bb331aa5
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-12-10 08:27:17 +00:00
Qt Submodule Update Bot
197b35cab7 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I82cf50b538513a14c3ebb709e1ee9d2db47b6ed6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-12-09 07:13:19 +00:00
Qt Submodule Update Bot
e526952d26 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I347874abf8541313a7c5bdd36625e90c578764c0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-12-08 07:20:02 +00:00
Qt Submodule Update Bot
b4bb9ee22e Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Iee38161c331998a00ed39210c5a01b2948b7f028
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-12-05 10:19:41 +00:00
Qt Submodule Update Bot
50a912eb22 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Iefa9875f88ea56f32a88b801c14ffdfe538c75a6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-28 11:15:26 +00:00
Qt Submodule Update Bot
4bffb33d47 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I5f93dde143e1e57b43aee063a4eb535adc67234c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-20 07:33:03 +00:00
Qt Submodule Update Bot
a59382ba0c Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I3f710288db32fe12bdcc887466ae4189179bdff6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-18 11:27:29 +00:00
Jani Heikkinen
da5ca8049c Bump version to 6.10.2
Change-Id: I961e5a0e738b444080d55c912d99aab10de8869e
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2025-11-18 11:27:28 +00:00
Qt Submodule Update Bot
3532b0559e Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I845fed7abcf3c9e4f27a98c7ae707450b5e65b8c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-07 12:14:32 +00:00
Qt Submodule Update Bot
80aa33ca26 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I678ccf73e445816aa43201e08dd50765015aeefd
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-06 10:52:26 +00:00
Qt Submodule Update Bot
101660eac0 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I05451ccc6e99282cb1dcb8b7aa032b8579875d83
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-11-04 07:42:19 +00:00
Qt Submodule Update Bot
dc3b7aad90 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Ib998663d99143cf8752a0e97f5d054d7c5876e5f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-30 08:24:48 +00:00
Qt Submodule Update Bot
a82cefaec6 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Ia32b0bce0b1618b153eee222874895a43c4787e5
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-29 07:25:00 +00:00
Qt Submodule Update Bot
a806d93694 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I022113b18e70c546f0d1a9bf964db7075d16eb44
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-27 12:12:30 +00:00
Qt Submodule Update Bot
c8111992f5 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Ib06e1123fb8edbeac70e458e44a73fb058446842
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-24 09:35:11 +00:00
Qt Submodule Update Bot
3a4d1356a0 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Id734074a50657628dbf2d487d6589ea2524e52ff
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-22 13:27:43 +00:00
Ivan Solovev
b699ef80e8 Mark more files as security-critical
The qmqttclient.cpp file contains parts of the MQTT protocol
implementation, and hence marked as security-critical.

The qmqtttopicname.cpp file contains the code that validates the topic
name and also parses the levels -> it is a data-parser, so should be
security-critical as well.

Amends 18548033e1, which incorrectly
marked these files as significant.

Not picking to 6.9 anymore, because that branch is already closed.

Task-number: QTBUG-135764
Pick-to: 6.8
Change-Id: I0e8b72fb1d24b7bbf6ac5edab63e137f9d36dd30
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
(cherry picked from commit b5c1e3aeb6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-10-15 09:03:41 +00:00
Qt Submodule Update Bot
85eeced3a7 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I05e22f28fd81dbb80a3b5994c7a9db1e1c0c2bda
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-10 15:57:15 +00:00
Qt Submodule Update Bot
02bfba1676 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: If634e78e82be3b680df1f8d3b7b0dd20a814bf65
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-08 19:19:56 +00:00
Qt Submodule Update Bot
1caf5d8edb Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I457fdb3a38c489e727d37ad979a6e1d0ff79dfa6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-10-01 08:45:14 +00:00
Qt Submodule Update Bot
ad2f59c949 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Id29f7bb11068416e70ba25dd63b2360c3b8654cc
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-29 18:12:20 +00:00
Jani Heikkinen
561553df97 Bump version to 6.10.1
Change-Id: I8e660eae35ee48c3b6dc17fe61b667b90a354bf7
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2025-09-29 19:12:19 +01:00
Even Oscar Andersen
1d3929d7c9 Implement waitForBytesWritten for the websockets case
Not implementing this function causes a lot if Invalid Socket
Specified in the tests.

Also fixed a problem with broker_connection.h where
DefaultVersionTestData did not evaluate to version(0)
if MQTT_TEST_PROTOCOL was defined.

Fixes: QTBUG-137305
Change-Id: I4b825196548a3f5bf07c3bb4203a0b46033004ba
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
(cherry picked from commit 635ae612f1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-09-10 10:39:04 +00:00
Qt Submodule Update Bot
da6f07047a Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I0eb7144b2ee9356af0a2af688663c79431d0823f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-09-01 18:09:16 +00:00
Qt Submodule Update Bot
e95d1e2feb Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Ied7f39cd45990a8f0ea7c0507f8aa442c9729b60
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-29 08:38:57 +00:00
Qt Submodule Update Bot
6a754979f8 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I55afd6005a2954fb6ba0311f8b1ebf091e5868d7
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-25 12:30:16 +00:00
Qt Submodule Update Bot
49685f75fc Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I80dcf6a454cfc3b1d469eb4c1f1933e53451158c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-15 18:00:16 +00:00
Qt Submodule Update Bot
cc78e80520 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I10cd227aeda2033e8f469da867f07ba2787453cf
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-14 10:25:14 +00:00
Qt Submodule Update Bot
1ac1172e7f Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Ifec394804e424c36832a14f33850fb8698eb7542
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-13 11:34:33 +00:00
Qt Submodule Update Bot
db0472db41 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I3aeee3e454cb805f0f33f78da751ff6a1a998cfa
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-09 00:01:57 +00:00
Topi Reinio
f84211dd16 Doc: Fix incorrect usage of \generatelist
The \generatelist command takes an optional argument
that affect how the members are listed, for example,
`classesbymodule` which creates an annotated list of
the classes in a named C++ module.

`groupsbymodule` is not recognized or documented. QDoc
falls back to generating a list of all members of a
group in this case. While the end result is correct,
this relies on an undocumented feature that is likely
to change and break.

Replace these instances with an explicit \annotatedlist
command that produces the same output.

Task-number: QTBUG-138901
Change-Id: I4c36087ff39efc740bc938888aa2531f635d9b67
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 1cc23b20ef)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-06 10:51:36 +00:00
Qt Submodule Update Bot
7eac4a3620 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Iad52dc9e1cf0971f5c287bdf476425cdb61e04d8
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-05 18:36:02 +00:00
Qt Submodule Update Bot
691cb60d49 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I2b0f59f43a9ff70523497350dd80f3430def1725
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-30 21:12:03 +00:00
Ivan Solovev
3d4c43d9c9 Mark the rest of sources as security-significant
This is the default level. All critical parts were identified in the
previous commits.

Fixes: QTBUG-135764
Pick-to: 6.9 6.8
Change-Id: Ib9df3db37e3efe3074f0fbc99eb60d31281d5a5a
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
(cherry picked from commit 18548033e1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-29 13:01:38 +00:00
Ivan Solovev
a65274129b Mark qmqtttopicfilter.cpp as security-critical
The QMqttTopicFilter::isValid() method parses the user-provided
string and validates it according to the MQTT protocol.

Task-number: QTBUG-135764
Pick-to: 6.9 6.8
Change-Id: I841bf83bbf29a2cdf4cf3faec93615a33f597241
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
(cherry picked from commit 7674ec983f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-29 13:01:32 +00:00
Ivan Solovev
e741440ab2 Mark files that implement MQTT protocol as security-critical
The qmqttconnection.cpp file implements parts of the MQTT protocol,
including proper packet generation
(e.g. in QMqttConnection::sendControlConnect()) and parsing
(e.g. in QMqttConnection::processDataHelper()).

The qmqttcontrolpacket.cpp file implements payload serialization
in QMqttControlPacket::serializePayload().

Task-number: QTBUG-135764
Pick-to: 6.9 6.8
Change-Id: I5b398c8739e549ba849fcc31f25cd05ca3384f30
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
(cherry picked from commit 13a98e39e7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-29 13:01:26 +00:00
Qt Submodule Update Bot
55e7056fe0 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I057459a911ab98c5ad623509881093ace9d356c8
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-29 10:40:12 +00:00
Qt Submodule Update Bot
cf1e93e4ad Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I43c95e96e949298dc7802b5c2717ec6063b59984
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-22 18:28:21 +00:00
Qt Submodule Update Bot
7c1011a097 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I5648fd5d7eb13c186b7f2892dda65f346b535678
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-16 13:28:01 +00:00
Qt Submodule Update Bot
a41730c2c5 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I7c553074758a09d66071d34f3a92181fba5c958e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-07 11:28:08 +00:00
Qt Submodule Update Bot
a32580f36b Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I27f4872d6e231626ba34b31a5b0688b137c35d28
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-02 15:10:08 +00:00
Qt Submodule Update Bot
746d92c1bd Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Ic8693417c8abbd5ff2ddae715e4e36ba089e5949
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-30 06:10:13 +00:00
Qt Submodule Update Bot
9a1e381d08 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I0d8af9a10f923e830adc2ad0b82ac85199d5048d
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-25 18:03:39 +00:00
Even Oscar Andersen
71bc423d11 Make sure unsubscribe followed by subscribe returns new subscription
Since we could only have one subscription for each topic it was
not possible to return a new subscription when a subscription
request comes in on a topic that is scheduled for destruction.

We solve this by switching to a QMultiHash for the active
subscriptions, allowing more then one subscription for a
given topic. However, at most one of these subscriptions
are not present in the list of subscriptions scheduled to
be unsubscribed

This patch also changes multiple unsubscribes to the
same topic. Earlier all would return true, and
m_pendingUnsubscriptions would be updated for all
requests.
The new behavior is that only the first unsubscribe
is acted upon. Furthere requests will return false.

Fixes: QTBUG-135653
Pick-to: 6.9 6.8
Change-Id: I5a79efb68b3191e185325a89cc2042c773bb5c12
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
(cherry picked from commit c383083270)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-06-24 12:21:49 +00:00
Qt Submodule Update Bot
7609ec61d6 Update dependencies on '6.10' in qt/qtmqtt
Change-Id: I04e4195f39d0c370b9a5b7be27f462a85f7d0d59
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-23 02:03:55 +00:00
Qt Submodule Update Bot
5da82b734c Update dependencies on '6.10' in qt/qtmqtt
Change-Id: Icac5b98419715184df2470cd0483c0d0dc46dde6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-06-17 20:17:46 +00:00
Even Oscar Andersen
337d171910 Mention in websockets subscription example that websockets are builtin
Added a \note, but keeping the example to show how to create custom
transports.

Change-Id: Idf3b22532f6e0b94a0113cea6152a36e81398ea9
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 6eb01cac46)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-06-12 12:41:19 +00:00
Even Oscar Andersen
c6cd7aae77 Add missing trailing comma for enums
Found in api-review.

Task-number: QTBUG-137478
Change-Id: I73984caae5714c0f3cddd0f1770ddf19fd6fcd49
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
(cherry picked from commit 2978075162)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-06-12 08:38:59 +00:00
Even Oscar Andersen
77bfd4e96f cosmetic fix in qmqttclient.h after API review
Moved declaration of the new connectToHostWebSocket[Secure]
afer connectToHostEncrypted

Task-number: QTBUG-137478
Change-Id: I58ef8da23bf9759a1744908e02c6b9ef5db405f1
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
(cherry picked from commit 951ea815b8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-06-12 07:32:26 +00:00