Bugfix: Profile upload did have problems with the request annotation. remove the prefix manually
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-02-08 03:34:52 +01:00
parent d5ef781162
commit f88f5a03ef
@@ -218,6 +218,14 @@ public class UserService {
HttpStatus.NOT_FOUND,
"Der Nutzer Existitert nicht."));
try {
if (base64ProfilePicture.trim().startsWith("{")) {
base64ProfilePicture = base64ProfilePicture
.replaceAll("\\s", "")
.replaceAll(".*\"base64ProfilePicture\":\"", "")
.replaceAll("\".*", "");
}
if (userToChange.getProfileImage() == null) {
ProfileImageEntity profileImage = new ProfileImageEntity();
profileImage.setUser(userToChange);