You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of problem:
When setting a description for a VM, if setting a too long string, such as 3964928 * 's', there will be an error shown on the dialog, maybe we need to limit the length of the description
Version-Release number of selected components (if applicable):
cockpit-machines-322-11-g63ac3f46
The text was updated successfully, but these errors were encountered:
Yes, I can reproduce this. Cockpit has a limit of 128KiB for a protocol message, and setting the description works by passing it inside a "channel open" control message to the bridge. If the description makes that message exceed 128KiB, cockpit-ws will forcefully disconnect the session.
As you say, it's probably to just limit the size of the description before sending such a large message. I didn't find a quick way to make virt-xml read the description from stdin, for example.
mvollmer
added a commit
to mvollmer/cockpit-machines
that referenced
this issue
Nov 1, 2024
Descriptions longer than about 128KiB will crash the Cockpit session
with a protocol error since they are included in the open message for
a "spawn" channel.
Only use the first 32k (about) when setting them to avoid that.
Fixescockpit-project#1889
Description of problem:
When setting a description for a VM, if setting a too long string, such as 3964928 * 's', there will be an error shown on the dialog, maybe we need to limit the length of the description
Version-Release number of selected components (if applicable):
cockpit-machines-322-11-g63ac3f46
The text was updated successfully, but these errors were encountered: