Mojira Archive
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

Awaiting Response

Xakep_SDK

2018-05-30, 10:36 AM

2023-03-14, 06:04 PM

2023-03-14, 06:04 PM

1

1

Confirmed

(Unassigned)

Minecraft 1.12.2, 20w07a

-