Skip to content
Snippets Groups Projects

fix: address infinite recursion in EfUser serialization

Merged Martin Lowe requested to merge malowe/main/auth-drupal-fix into main
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -70,10 +70,12 @@ public record EfUser(String uid, String name, String picture, String mail, Eca e
@@ -70,10 +70,12 @@ public record EfUser(String uid, String name, String picture, String mail, Eca e
}
}
/**
/**
* Converts the user profile to the restricted public view.
* Converts the user profile to the restricted public view. Json Ignore is super important, as otherwise this will recursively add
 
* itself to json and crash.
*
*
* @return current user profile, with the private data blanked out.
* @return current user profile, with the private data blanked out.
*/
*/
 
@JsonIgnore
public EfUser getPublicProfile() {
public EfUser getPublicProfile() {
return EfUserBuilder
return EfUserBuilder
.builder(this)
.builder(this)
Loading