Julien-Ben / Coronhackathon

Social Mobile App created in the context of LauzHack against Covid-19, a 72 hours Hackathon in a team of 8. It provides entertainment to people during lockdown by enabling to share challenges and activities ideas
0 stars 2 forks source link

Bug during validation #69

Closed JulienVig closed 4 years ago

JulienVig commented 4 years ago
500
Internal Server Error
Last unit does not have enough valid bits

Setup: on a challenge already validated (including comment and image), modify the comment but not the image and then validate. It looks like validating a previously posted image triggers this error.

Edit: the line 114 of CompletedService in method addCompletedChallenge triggers the exception. This is because the second time we are posting the image path and not the base64 value. Solution: overload the method with another using only the imgPath ?