-
Notifications
You must be signed in to change notification settings - Fork 346
Labels
assessmentPull requests that affect the corresponding modulePull requests that affect the corresponding modulebugcommunicationPull requests that affect the corresponding modulePull requests that affect the corresponding modulecorePull requests that affect the corresponding modulePull requests that affect the corresponding moduleexercisePull requests that affect the corresponding modulePull requests that affect the corresponding moduleprogrammingPull requests that affect the corresponding modulePull requests that affect the corresponding module
Description
Describe the bug
After Upgrading to 8.4.1, a functionality test discovered, that updating a build script do not work anymore. Submitting any build plan result in a 400 response.
This is caused by invalid body format. The new (failing) request looks like:
{"id":41,"buildPlan":{"text":"***","fileName":"48"}}
While the old one loooks like:
{"id":93,"buildPlan":"***"}
The backend code did not change.
To Reproduce
- Create a new exercise
- edit build plan
- click submit
The critical request is similar to this (cookies and many headers where removed):
curl 'https://***/api/programming/programming-exercises/44/build-plan' \
-X 'PUT' \
-H 'content-type: application/json' \
--data-raw $'{"id":41,"buildPlan":{"text":"***","fileName":"48"}}'
Expected behavior
Update the build plan
Screenshots
No response
Which version of Artemis are you seeing the problem on?
8.4.1
What browsers are you seeing the problem on?
Chrome
Additional context
Jenkins is used as the build system (but this is most likely not the cause becuase the backend did not change at all)
Not related to browser at all.
Relevant log output
Artemis application log:
2025-10-13T07:12:00.473Z WARN 1 --- [Artemis] [at-handler-5291] o.z.problem.spring.common.AdviceTraits : Bad Request: JSON parse error: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
HTTP response content:
{
"type": "https://www.jhipster.tech/problem/problem-with-message",
"title": "Bad Request",
"status": 400,
"detail": "JSON parse error: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)",
"path": "/api/programming/programming-exercises/44/build-plan",
"message": "error.http.400"
}
Metadata
Metadata
Assignees
Labels
assessmentPull requests that affect the corresponding modulePull requests that affect the corresponding modulebugcommunicationPull requests that affect the corresponding modulePull requests that affect the corresponding modulecorePull requests that affect the corresponding modulePull requests that affect the corresponding moduleexercisePull requests that affect the corresponding modulePull requests that affect the corresponding moduleprogrammingPull requests that affect the corresponding modulePull requests that affect the corresponding module