Bugfix: Profile upload did have problems with the request annotation. remove the prefix manually
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user