Minecraft
  1. Minecraft
  2. MC-43984

Normal players can use player selectors

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.7.4, Minecraft 14w02a, Minecraft 14w02c, Minecraft 14w03a, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 14w21b, Minecraft 14w27b
    • Security Level: Minecraft - Public (Viewable by everyone)
    • Labels:
    • Environment:

      Ubuntu 12.04 64bit
      Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

    • Confirmation Status:
      Unconfirmed
    • Game Mode:
      Survival

      Description

      With enough players online, entering a command like the following kicks all players because @a gets expanded to a list of all online players.

      /me @a @a @a @a @a @a @a @a @a @a @a @a ...

      This is what it looks like from the logfile.

      derp lost connection: TranslatableComponent{key='disconnect.genericReason', args=[Internal Exception: io.netty.handler.codec.EncoderException: java.io.IOException: String too big (was 33145 bytes encoded, max 32767)

      At this point my server has become unplayable with more than 10 people online. This issue is well-known and spreading. I expect waves of players doing this to every vanilla server.

        Issue Links

          Activity

          Hide
          Tokes added a comment -

          Well they finally fixed the "nuke a map with the give command" bug last month, maybe they'll get around to this.

          Show
          Tokes added a comment - Well they finally fixed the "nuke a map with the give command" bug last month, maybe they'll get around to this.
          Hide
          Synchunk added a comment -

          Is this still a concern in the current Minecraft version 14w21b / Launcher version 1.4.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

          Show
          Synchunk added a comment - Is this still a concern in the current Minecraft version 14w21b / Launcher version 1.4.4 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
          Hide
          Anthony Martin added a comment - - edited

          Issue persists in 14w21b. It's much worse now because non-op users can now cause the server to halt:

          /tell @a[r=2000000,c=1] test
          /tell @a[r=20000000,c=1] test
          /tell @a[r=200000000,c=1] test
          

          The higher r= is, the more likely the server will completely halt. Why are selectors even allowed by non-op players in the first place?

          Show
          Anthony Martin added a comment - - edited Issue persists in 14w21b . It's much worse now because non-op users can now cause the server to halt: /tell @a[r=2000000,c=1] test /tell @a[r=20000000,c=1] test /tell @a[r=200000000,c=1] test The higher r= is, the more likely the server will completely halt. Why are selectors even allowed by non-op players in the first place?
          Hide
          Unknown added a comment -

          Still present in 14w27b. There is another way to track players by not sending a whisper and not including a message. It will output an error for every player that is in the area you are whispering. The commands used are: /w @a[x=0,z=0,r=10000] and /w @a[name=Player,x=0,z=0,r=10000]

          Show
          Unknown added a comment - Still present in 14w27b. There is another way to track players by not sending a whisper and not including a message. It will output an error for every player that is in the area you are whispering. The commands used are: /w @a [x=0,z=0,r=10000] and /w @a [name=Player,x=0,z=0,r=10000]
          Hide
          Huntondoom added a comment -

          On my Realms I did /say @e and it gave me the error:
          internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1) + length(1) exceeds writerIndex(1): UnpooledHeapByteBuf(ridx: 1, widx: 1, cap: 1)

          Show
          Huntondoom added a comment - On my Realms I did /say @e and it gave me the error: internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(1) + length(1) exceeds writerIndex(1): UnpooledHeapByteBuf(ridx: 1, widx: 1, cap: 1)

            People

            • Assignee:
              [Mojang] Dinnerbone (Nathan Adams)
              Reporter:
              Arne König
            • Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: