Sébastien Helleu
e637e0de1c
relay/api: return an error 400 when URL parameters "nicks", "lines" and "lines_free" have an invalid value
2025-10-26 08:07:23 +01:00
Sébastien Helleu
58c873809b
relay/api: return an error 400 when URL parameter "colors" has an invalid value
2025-10-26 07:22:10 +01:00
Sébastien Helleu
bff910cae3
relay/api: fix crash when an invalid HTTP request is received from a client
...
When invalid data is received (not an HTTP request), client->http_req->method
is NULL, so we have to check it's not NULL before comparing it to the supported
methods.
This fixes a regression introduced in commit
93ec10b563 .
2025-08-16 21:19:43 +02:00
Sébastien Helleu
be78d185ea
relay/api: bump API version to 0.4.1
2025-07-02 20:52:42 +02:00
Sébastien Helleu
902332c3e6
relay/api: move resource bodies into their paths in OpenAPI document
2025-07-02 20:32:09 +02:00
Sébastien Helleu
0b82429b39
relay/api: add example of value for the parameter buffer_id in OpenAPI document
2025-07-02 20:32:09 +02:00
Sébastien Helleu
8b2165d441
relay/api: fix example of ping data in OpenAPI document
2025-07-02 20:32:09 +02:00
Sébastien Helleu
fca2412424
relay/api: fix example of completion list in OpenAPI document
2025-07-02 20:32:09 +02:00
Sébastien Helleu
d279a80733
relay/api: remove extra double quote in example of line date (OpenAPI document)
2025-07-02 20:32:09 +02:00
Sébastien Helleu
4444addf4d
relay/api: fix operationId of completion resource in OpenAPI document
2025-07-02 20:32:09 +02:00
Sébastien Helleu
4ce74403dc
relay/api: fix typo in OpenAPI document
2025-07-02 20:32:09 +02:00
Sébastien Helleu
1db29cb1ed
relay/api: reject any invalid or unknown password hash algorithm in handshake resource
2025-07-02 20:32:09 +02:00
Sébastien Helleu
d8baabd250
relay/api: use "buffer_name" first if received, then "buffer_id" in completion and input resources
...
This fixes some tests done by shemathesis, which sends "buffer_id" to
0 (unknown buffer) and "buffer_name" to a valid buffer name.
2025-07-02 20:32:09 +02:00
Sébastien Helleu
93ec10b563
relay/api: return HTTP error 405 (Method Not Allowed) when the method received is not allowed
2025-07-02 20:32:09 +02:00
Sébastien Helleu
9783256649
relay/api: use specifier %@ for times formatted by util_strftimeval
2025-05-18 22:15:39 +02:00
Sébastien Helleu
2475f20cb7
all: move description of C files below the copyright and license
2025-03-31 11:47:49 +02:00
Sébastien Helleu
3a6ac9ee76
all: add SPDX license tag
2025-03-31 07:49:26 +02:00
Sébastien Helleu
55d936d63a
relay: add SPDX copyright tag in relay OpenAPI document
2025-03-30 14:47:12 +02:00
Sébastien Helleu
d8987a1678
all: replace Copyright lines by SPDX copyright tag
2025-03-30 14:47:12 +02:00
Sébastien Helleu
764b309e92
core, irc, relay: fix formatting of seconds and microseconds
2025-03-16 14:04:28 +01:00
Aaron Jones
f5038bccbc
Fix function prototypes for list of arguments
...
At the moment, building WeeChat triggers several thousand -Wstrict-prototypes
diagnostics. This is due to its source code using an empty argument list for
functions and function pointers that take no arguments, instead of explicitly
declaring that they take no arguments by using a void list.
This commit replaces all empty argument lists with a void list.
Note that Ruby's headers also suffer the same problem, which WeeChat can't
do anything to fix. Thus, building WeeChat with the Ruby plugin enabled
will still issue approximately 30 such diagnostics.
2025-03-10 08:16:52 +01:00
Sébastien Helleu
547e2b934e
core: update copyright dates
2025-02-01 23:13:18 +01:00
Sébastien Helleu
d302294723
relay/api: always return a body with field "error" in error responses
2025-01-07 07:52:09 +01:00
Sébastien Helleu
9d3388b09e
relay/api: use cjson lib to return errors
2025-01-07 07:23:55 +01:00
Sébastien Helleu
d10af1037b
relay/api: use cjson lib to build JSON body of handshake request
2025-01-07 07:18:01 +01:00
Sébastien Helleu
10b4fffaca
relay/api: fix return code when buffer is not found in completion resource callback
2025-01-07 07:12:37 +01:00
Sébastien Helleu
c48dee3211
relay/api: add schema for errors returned in OpenAPI document
2025-01-06 07:45:02 +01:00
Nils
c6c420c698
relay: add completion resource
2025-01-05 14:54:07 +01:00
Sébastien Helleu
cfe34388fb
relay/api: bump version in OpenAPI document
2025-01-05 13:05:58 +01:00
Sébastien Helleu
3eaa1a3a6e
relay/api: fix name of body field "buffer_name" in doc of POST /api/input
2025-01-05 10:36:04 +01:00
Sébastien Helleu
ad6ec011bd
relay/api: reply HTTP 400 (Bad Request) when the body received is not a dict in websocket data
2024-10-29 22:38:28 +01:00
Emil Velikov
de4231c842
Bump required gnutls to v3.3.0
...
Bump the requirement to v3.3.0 as available in Ubuntu 16.04 (3.4.10) and
Debian 10 (3.6.7). It was released around 10 years ago and any remotely
supported distribution has newer version.
As result, we can remove hundred+ lines of #ifdef spaghetti code.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com >
2024-10-13 13:55:16 +02:00
Josh Soref
c28696e602
spelling: case-sensitive
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2024-09-28 18:22:41 +02:00
Sébastien Helleu
970f20af31
relay: fix integer overflow in loops (issue #2178 )
2024-09-07 08:40:19 +02:00
Sébastien Helleu
143f694fe2
core, plugins: add missing parentheses when dereferencing a pointer with an array index
2024-09-05 20:57:29 +02:00
Sébastien Helleu
434c1ee3c4
relay/api: send the sync request at the same time as buffer data retrieval
...
This fixes events missed by the client when synchronizing after fetching data.
2024-08-25 21:13:38 +02:00
Sébastien Helleu
6bb4d64512
relay/api: allow array with multiple requests in websocket frame received from client
2024-08-25 20:48:52 +02:00
Sébastien Helleu
c1130446eb
relay: add status "data synchronization" on remote buffers
2024-08-24 11:00:52 +02:00
Sébastien Helleu
e2edc019cc
relay/api: add extra checks on function parameters
2024-08-15 17:48:20 +02:00
Sébastien Helleu
b63f63f001
relay/api: fix send of data to remote after command /upgrade executed in the remote client
2024-08-11 23:35:51 +02:00
Sébastien Helleu
970aa55f7f
relay/api: remove unneeded free of client->http_req->id
2024-08-11 12:27:37 +02:00
Sébastien Helleu
a317c785fb
relay/api: add automatic reconnection to remote ( closes #2166 )
...
New options:
- remote option "autoreconnect_delay"
- relay.api.remote_autoreconnect_delay_growing
- relay.api.remote_autoreconnect_delay_max
2024-08-11 12:18:28 +02:00
Sébastien Helleu
8010eeece3
relay/api: add support of time displayed in remote client buffers
2024-08-10 14:29:30 +02:00
Sébastien Helleu
24734c4fe0
relay/api: add field "tmie_displayed" in GET /api/buffers
2024-08-10 13:58:58 +02:00
Sébastien Helleu
bb2387ec38
relay/api: add support of hidden buffers in remote client (issue #2159 )
2024-08-10 12:55:17 +02:00
Sébastien Helleu
b00f94dc70
relay/api: add field "hidden" in GET /api/buffers (issue #2159 )
2024-08-10 12:42:55 +02:00
Sébastien Helleu
07ef722c06
relay/api: disconnect cleanly when the remote is quitting ( closes #2168 )
2024-08-09 23:37:33 +02:00
Sébastien Helleu
0296957cce
relay/api: add event "quit", sent to clients when WeeChat is quitting (issue #2168 )
2024-08-09 23:32:33 +02:00
Sébastien Helleu
b4d0054f07
relay/api: disconnect from remote in case of error when sending data
2024-08-09 18:26:02 +02:00
Sébastien Helleu
995cbe542e
relay/api: automatically disconnect when the command /upgrade is executed on the remote
2024-08-09 18:23:23 +02:00