Skip to content

Script parsing fixes#98

Merged
sirainen merged 5 commits intodovecot:mainfrom
slusarz:parsing_fixes
Feb 17, 2026
Merged

Script parsing fixes#98
sirainen merged 5 commits intodovecot:mainfrom
slusarz:parsing_fixes

Conversation

@slusarz
Copy link
Contributor

@slusarz slusarz commented Feb 11, 2026

Mainly centered around connection IDs and pipelining.

Added a test program to quickly test parsing of scripts.

@slusarz slusarz force-pushed the parsing_fixes branch 2 times, most recently from aca63e2 to 8336bc2 Compare February 13, 2026 19:16
Pipelined commands were incorrectly failing validation due to an
incorrect connection index comparison in test_parse_command_line().
The code was comparing the 0-based stored group->connection_idx against
the 1-based connection_idx parsed from the test file.

Additionally, when using multiple connections in scripted tests,
command replies must be prefixed with the connection index. The parser
was failing to recognize this prefix for pipelined commands, leading
to "Tag reused" errors because the connection index was misinterpreted
as a tag or command name.

Update test_parse_command_line() to correctly identify and skip
the connection index prefix when parsing replies in multi-connection tests.
Found by tester. A command with a connection ID must have a connection
ID for the response tag if using method 2
@sirainen sirainen merged commit 42df19b into dovecot:main Feb 17, 2026
7 checks passed
@slusarz slusarz deleted the parsing_fixes branch February 17, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants