Fix 26.2 login success/sessionId and play login onlineMode fields - #1216
Open
robertvandervoort wants to merge 1 commit into
Open
Fix 26.2 login success/sessionId and play login onlineMode fields#1216robertvandervoort wants to merge 1 commit into
robertvandervoort wants to merge 1 commit into
Conversation
ClientboundLoginFinishedPacket (login success) now includes a server sessionId UUID after the GameProfile. Without it, protodef reports a 16-byte partial read on every join. ClientboundLoginPacket (play login) now includes onlineMode before enforcesSecureChat. Without it, the onlineMode byte is consumed as enforcesSecureChat and one byte is left unread, so clients mis-read whether secure chat is enforced. Verified against decompiled: - ClientboundLoginFinishedPacket(GameProfile, UUID sessionId) - ClientboundLoginPacket(..., boolean onlineMode, boolean enforcesSecureChat) Tested live against Spigot 26.2 (protocol 776): partial-packet warnings drop to zero; login.onlineMode=true and enforcesSecureChat follows server enforce-secure-profile.
This was referenced Aug 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes incomplete 26.2 protocol definitions that cause partial packet reads on every join.
Verified against decompiled Spigot/NMS 26.2:
login.toClient.success/ClientboundLoginFinishedPacketsessionId: UUIDafter the GameProfile fields.Chunk size is N but only N-16 was read).play.toClient.login/ClientboundLoginPacketonlineMode: boolimmediately beforeenforcesSecureChat.(…, worldState, onlineMode, enforcesSecureChat).onlineModeis consumed asenforcesSecureChatand 1 byte is left unread, so clients mis-read whether secure chat is enforced.Test plan
partial packet/Chunk size is … but only … was readwarnings forsuccessandlogingo to zerologin.onlineMode === trueandlogin.enforcesSecureChatmatches serverenforce-secure-profileNotes
Base is
pc_26_2as requested by the automated 26.2 data PR workflow.