Commit ebe1fe4
committed
fix: synchronize ConsentDao.create() to prevent random failures
ConsentDao.create() was the only method not marked synchronized,
while read(), update(), and delete() all were. This allowed
concurrent unsynchronized puts into the backing LinkedHashMap,
corrupting its internal structure and causing recently created
consents to silently become unreachable.
This hopefully fixes instances where OIDF certification team saw
this error after a while:
{ "error":"invalid_request",
"error_description":"There is no consent corresponding to the consent ID 'urn:example:966a3535-dee0-4d3e-aff2-a8085653e8a1'." }
which could be resolved by restarting java-oauth-server.1 parent 14e41cf commit ebe1fe4
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments