mojira.dev
MC-130461

Authlib-1.5.25 gson wrong deserialization

ProfileSearchResultsResponse deserializator has check for error and it fills error, if it present. That filling process fills only one error field, while there is 3 fields.

if (object.has("error")) {
 result.setError(object.getAsJsonPrimitive("error").getAsString());
 }

if (object.has("errorMessage")) {
 result.setError(object.getAsJsonPrimitive("errorMessage").getAsString());
 }

if (object.has("cause")) {
 result.setError(object.getAsJsonPrimitive("cause").getAsString());
 }

while it must be setError setErrorMessage and setCause

Comments 1

Can someone please check, if this still applies to 1.15.2 or the latest 1.16 development snapshot (currently that is 20w07a)?

Xakep_SDK

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.12.2, 20w07a

Retrieved