mojira.dev
MC-305290

Providing too long string into Text Input of a Dialog causes disconnects.

When server sends a dialog with a Text input that allows high max length, player will get kicked out if provided string is too long.

This can be easily recreated by using this command:

/dialog show @s {type:notice, title:x,inputs:[{key:t,type:text,label:x,max_length:2147483647}],action:{label:x,action:{type:'dynamic/custom',id:x}}}

As an input, you can use 30 paragraphs of lorem ipsum from some generator or by copying provided disconnect log 3+ times.
This issue occurs on both singleplayer and multiplayer server.

Attachments

Comments 0

No comments.

Patbox

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11, 26.1 Snapshot 1

Retrieved