CDR Tickets

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
Description

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).

Comment entered 2023-01-18 15:49:00 by Kline, Bob (NIH/NCI) [C]

All dependencies on the deprecated cgi module have been removed on CDR DEV.

Comment entered 2023-03-07 10:59:11 by Kline, Bob (NIH/NCI) [C]
Comment entered 2023-05-03 19:31:58 by Englisch, Volker (NIH/NCI) [C]

I confirmed that none of our code in the lib or cgi-bin directories is using the old cgi library.

Elapsed: 0:00:00.001301