| Issue Number | 5187 |
|---|---|
| Summary | Replace deprecated cgi module |
| Created | 2023-01-18 13:33:30 |
| Issue Type | Improvement |
| Submitted By | Kline, Bob (NIH/NCI) [C] |
| Assigned To | Kline, Bob (NIH/NCI) [C] |
| Status | Closed |
| Resolved | 2023-01-18 15:49:00 |
| Resolution | Fixed |
| Path | /home/bkline/backups/jira/ocecdr/issue.336523 |
The cgi module in the Python standard library has been
deprecated and will be removed in Python 3.13. We will replace it with
our own class built with the third-party multipart module
and some utilities elsewhere in the standard library. A proof of concept
using only standard library tools ran into too many bugs in the
recommended email module. We have filed bug reports for
those bugs, and it's possible that if they are fixed properly we will
switch to a solution using only standard library modules, but for now
we're going with an approach which works correctly without having to
patch the standard library (a path we're absolutely not going down).
All dependencies on the deprecated cgi module have been
removed on CDR DEV.
Commits:
I confirmed that none of our code in the lib or
cgi-bin directories is using the old cgi
library.
Elapsed: 0:00:00.001312