Skip to content

fix(rpc): repair bare-text replies under a prefixed root (release 0.19.5) - #154

Merged
fastrevmd-lab merged 1 commit into
mainfrom
fix/prefixed-rpc-reply-repair
Nov 30, 2026
Merged

fastrevmd-lab merged 1 commit into
mainfrom
fix/prefixed-rpc-reply-repair

Conversation

@fastrevmd-lab

Copy link
Copy Markdown
Member

cSRX wraps a <command format="json"> reply in <nc:rpc-reply xmlns:nc=…>; the 0.19.4 repair only looked for an unprefixed <rpc-reply (and sliced a fixed 12-byte close tag), so it still failed with ParseError. Seen live on cSRX 26.2 via rust-junosmcp.

The repair now reads the root's own name (rpc-reply or <prefix>:rpc-reply), matches its close tag, and prefixes a synthesized <rpc-error> the same way. New test covers JSON, the EVO error shape and a mismatched close tag under nc:. Includes the 0.19.5 version bump.

🤖 Generated with Claude Code

…9.5)

cSRX answers `<command format="json">` with `<nc:rpc-reply xmlns:nc=...>`
around bare JSON. The 0.19.4 repair only matched `<rpc-reply` and a fixed
12-byte close tag, so the reply still failed with `ParseError`. Take the
root's own name, match its close tag, and prefix a synthesized `rpc-error`
the same way so it stays in the NETCONF namespace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fastrevmd-lab
fastrevmd-lab merged commit 750a352 into main Nov 30, 2026
10 of 11 checks passed
@fastrevmd-lab
fastrevmd-lab deleted the fix/prefixed-rpc-reply-repair branch November 30, 2026 23:08
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.

1 participant