Commit f0e2408
committed
fix(api): ensure JsonObjectBuilder consistency during logging and response creation #11717
- Cloned JsonObjectBuilder to prevent unintended mutation
- Simplified metadata construction logic in logging
- This should allow us to no longer have HTML Error 500 pages, but a nicer JSON response.1 parent 76db4cb commit f0e2408
File tree
1 file changed
+11
-4
lines changed- src/main/java/edu/harvard/iq/dataverse/api/util
1 file changed
+11
-4
lines changedLines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| |||
0 commit comments