View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005788 | Taler | obsolete component | public | 2019-06-30 23:14 | 2019-12-20 19:11 |
Reporter | Marcello Stanisci | Assigned To | Marcello Stanisci | ||
Priority | normal | Severity | crash | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | git (master) | ||||
Target Version | 0.6 | Fixed in Version | 0.6 | ||
Summary | 0005788: Malformed JSON on POST makes bank crash. | ||||
Description | POSTing malformed JSONs to those endpoints that process authentication credentials make bank terminate with unhandled exception. File "/home/marcello/prog/taler/bank/talerbank/app/views.py", line 621, in _decorator user_account = auth_and_login(request) File "/home/marcello/prog/taler/bank/talerbank/app/views.py", line 837, in auth_and_login data = json.loads(request.body.decode("utf-8")) File "/usr/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.7/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ':' delimiter: line 1 column 68 (char 67) | ||||
Steps To Reproduce | POST malformed JSON (e.g.: {"a":1, "b"}) to any API call that takes login credentials. | ||||
Tags | No tags attached. | ||||
related to | 0005787 | closed | Marcello Stanisci | Make exception handling less confusing. |
|
I guess given the relationship to 0005787, Marcello should fix this one after all ;-). |
|
bcb36f8..fd5b3e7 fixes this |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-06-30 23:14 | Marcello Stanisci | New Issue | |
2019-06-30 23:14 | Marcello Stanisci | Status | new => assigned |
2019-06-30 23:14 | Marcello Stanisci | Assigned To | => Marcello Stanisci |
2019-09-16 09:48 | Christian Grothoff | Severity | minor => crash |
2019-09-16 09:48 | Christian Grothoff | Product Version | => git (master) |
2019-09-16 09:48 | Christian Grothoff | Target Version | => 0.6 |
2019-09-16 09:48 | Christian Grothoff | Assigned To | Marcello Stanisci => Christian Grothoff |
2019-09-16 09:49 | Christian Grothoff | Relationship added | related to 0005787 |
2019-09-16 09:50 | Christian Grothoff | Note Added: 0014905 | |
2019-09-16 09:50 | Christian Grothoff | Assigned To | Christian Grothoff => Marcello Stanisci |
2019-11-16 03:15 | Marcello Stanisci | Note Added: 0015077 | |
2019-11-16 03:15 | Marcello Stanisci | Status | assigned => resolved |
2019-11-16 03:15 | Marcello Stanisci | Resolution | open => fixed |
2019-12-20 19:11 | Christian Grothoff | Fixed in Version | => 0.6 |
2019-12-20 19:11 | Christian Grothoff | Status | resolved => closed |
2022-08-23 20:26 | Christian Grothoff | Category | bank (demonstrator) => py bank (demonstrator, obsolete) |
2023-12-03 01:23 | Christian Grothoff | Category | py bank (demonstrator, obsolete) => obsolete componet |
2023-12-11 20:08 | Florian Dold | Category | obsolete componet => obsolete component |