View Issue Details

IDProjectCategoryView StatusLast Update
0006472unrealjson-rpcpublic2024-11-18 23:19
Reporteradator Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version6.1.8 
Summary0006472: server.rehash stucked when there is an error with unrealircd.conf
DescriptionWhen i run a server.rehash call from rpc
it stop the code
Steps To Reproducesocat - unix-connect:/home/adator/ircd/6.1.8/data/rpc.socket
{"jsonrpc": "2.0", "method": "server.rehash", "params": {}, "id": 123}

second attempt:
{"jsonrpc": "2.0", "method": "server.rehash", "params": {}, "id": 123}
response:
{"jsonrpc": "2.0", "method": "server.rehash", "id": 123, "error": {"code": -32600, "message": "A rehash initiated by you is already in progress"}}
Additional InformationOn unrealircd server side:

* config.CONFIG_RELOAD [info] Rehashing server configuration file [by: RPC:[email protected]]
* config.CONFIG_INFO_GENERIC [info] Loading IRCd configuration..
* config.CONFIG_ERROR_GENERIC [error] /home/adator/ircd/6.1.8/conf/unrealircd.conf:23: Unterminated quote found
* config.CONFIG_LOAD_FILE_FAILED [error] Could not load configuration file: /home/adator/ircd/6.1.8/conf/unrealircd.conf
Tagsjson-rpc
3rd party modules

Activities

syzop

2024-11-17 09:14

administrator   ~0023399

Did you wait for the response of the 1st request? Because I cannot reproduce it. It works fine here... i make a bad config file and then do the rehash, it fails, then i do it again, it fails, then i update the config to be good again and retry, it succeeds.

Just to be clear: you cannot issue a (second) rehash while another rehash is in progress. This is true for over JSON-RPC but also elsewhere, like REHASH on IRC as an IRCOp.

adator

2024-11-18 23:19

reporter   ~0023400

In this 6.1.8.1 version the rehash is working for both cases error or success.

Issue History

Date Modified Username Field Change
2024-09-29 18:07 adator New Issue
2024-10-03 20:18 adator Tag Attached: json-rpc
2024-11-17 09:14 syzop Note Added: 0023399
2024-11-17 09:14 syzop Status new => feedback
2024-11-18 23:19 adator Note Added: 0023400