savebuff: query buffers are not saved and loaded #443

Closed
opened 2026-10-05 04:21:10 +02:00 by adam · 6 comments
Owner

See @xor-freenet's comments in https://github.com/znc/znc/commit/287a020d21ec5f4798d3df845826e8c103a1225d. Despite the blind changes applied in the commit, query buffers are not actually saved and loaded at all.

  • OnIRCConnected() incorrectly assumes that queries would already exist
  • SaveBuffersToDisk() is missing handling of queries altogether
See @xor-freenet's comments in https://github.com/znc/znc/commit/287a020d21ec5f4798d3df845826e8c103a1225d. Despite the blind changes applied in the commit, query buffers are not actually saved and loaded at all. - OnIRCConnected() incorrectly assumes that queries would already exist - SaveBuffersToDisk() is missing handling of queries altogether <!-- github-sync-id:53331794 -->
adam closed this issue 2026-10-05 04:21:10 +02:00
Author
Owner

Two ideas come to my mind. Either save the list of queries separately or change the storage format so that query names can be easily restored out of the encrypted files. With the latter, backwards compatibility must be kept in mind.

Two ideas come to my mind. Either save the list of queries separately or change the storage format so that query names can be easily restored out of the encrypted files. With the latter, backwards compatibility must be kept in mind. <!-- github-comment-id:68628760 -->
Author
Owner

Furthermore, storing the buffer name is not enough because at the time OnIRCConnected() gets called (RPL_WELCOME=1) we don't know yet which names are channels (RPL_ISUPPORT=5) and which are queries.

Furthermore, storing the buffer name is not enough because at the time OnIRCConnected() gets called (RPL_WELCOME=1) we don't know yet which names are channels (RPL_ISUPPORT=5) and which are queries. <!-- github-comment-id:68630344 -->
Author
Owner

@xor-freenet, fix available for testing: https://github.com/znc/znc/pull/803

@xor-freenet, fix available for testing: https://github.com/znc/znc/pull/803 <!-- github-comment-id:68633608 -->
Author
Owner

@jpnurmi I'm very busy with my own projects, so I would like to ask if this will get merged even if I don't provide testing? If you insist I can test it, but I'd rather not like to.

@jpnurmi I'm very busy with my own projects, so I would like to ask if this will get merged even if I don't provide testing? If you insist I can test it, but I'd rather not like to. <!-- github-comment-id:69560160 -->
Author
Owner

And thanks! :)

And thanks! :) <!-- github-comment-id:69560176 -->
Author
Owner

Hi, as a contributor I can't give any promise on behalf of the ZNC team. The best you can do to help is to verify that it works. It's a complex change - being verified by a third party is naturally more convincing than me saying "works for me". :)

Hi, as a contributor I can't give any promise on behalf of the ZNC team. The best you can do to help is to verify that it works. It's a complex change - being verified by a third party is naturally more convincing than me saying "works for me". :) <!-- github-comment-id:69569902 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#443