Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-253813

Chat commands with entity selectors often reported as "This message is not secure"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.1 Pre-release 4
    • 1.19.1 Pre-release 2
    • None
    • Confirmed
    • Social Interactions
    • Normal

      The bug

      On a dedicated server, when having permission level >= 2 and using chat commands such as /say or /me with messages containing entity selectors the message is often reported as "This message is not secure".

      There seem to be some general flaws:

      • Unless previews-chat=true is enabled for the server and the client has enabled chat preview and the client waits long enough for the preview to be signed before sending the command, the message seems to be reported as "not secure"
      • And even with the above preconditions, when the selector result differs between signed preview and sending of the command the message will be reported as "not secure". This can for example be seen with @e when the entities on the server change rapidly.

      Reproduction steps

      1. Start a dedicated server with previews-chat=false (the default)
      2. Join the server
      3. Make sure you have a permission level >= 2 (e.g. /op yourself)
      4. Use the following command
        /say @s
        

        In chat the message is marked as "This message is not secure"

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: