datatracker/ietf/submit
Jennifer Richards dc14308700
refactor: Drop submission validation via libmagic (#6500)
* refactor: Update parsers/base.py for Python3

* style: Black

* refactor: Remove mime type check from FileParser

* refactor: Validate that submission is UTF-8

The mime check distinguished us-ascii from UTF-8,
but as far as I can tell the code relying on it
treated both as equally valid.

* feat: Clear error when file is not valid XML

* chore: Remove unused import

* test: Update tests to match changes

* fix: Count bytes starting from 1

* test: Add tests of FileParser validations

* fix: Fix / simplify regexp

* test: Test error caused by bad XML submission

---------

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2023-10-23 10:00:04 -05:00
..
management Merged in [19965] from rjsparks@nostrum.com: 2022-02-22 23:12:21 +00:00
migrations refactor: Purge old migrations and update ci to build on a clean schema (#5431) 2023-03-28 18:06:07 +09:00
parsers refactor: Drop submission validation via libmagic (#6500) 2023-10-23 10:00:04 -05:00
templatetags chore: remove unnecessary .gitignore files (#6262) 2023-08-31 17:12:01 -05:00
__init__.py Remove backtrace email code from submit __init__.py, after the submit revamp I think I am responsible for all remaining bugs and not esanchez@yaco.es, and the code sometimes annoyingly interferes (through a bug in admin) with loading the submit module in the shell 2013-11-19 16:14:27 +00:00
admin.py Allow external resources to be set/suggested during submission process. Fixes #3068. Commit ready for merge. 2021-04-19 20:21:19 +00:00
checkers.py fix: update DraftYangChecker for xym 0.6 changes (#4546) 2022-10-06 18:03:18 -05:00
factories.py Bring the factory-boy and Faker dependencies forward through some minor breaking changes. Stop using the deprecated fr_QC locale in Faker. Commit ready for merge. 2021-08-03 22:22:35 +00:00
forms.py refactor: Drop submission validation via libmagic (#6500) 2023-10-23 10:00:04 -05:00
mail.py refactor: Replace deprecated force_text with force_str 2023-05-09 15:21:50 -03:00
models.py feat: Distinguish failed from not-applied checkers (#6220) 2023-08-28 11:06:35 -05:00
resources.py fix: dont serialize Submission.first_two_pages through /api/v1. (#4145) 2022-07-06 14:45:27 -05:00
tasks.py feat: Process uploaded submissions asynchronously (#5580) 2023-05-09 15:21:46 -05:00
test_submission.bad Improved the verification of submitted file extensions and mimetype. 2015-08-07 12:10:26 +00:00
test_submission.nonascii.txt feat: Process uploaded submissions asynchronously (#5580) 2023-05-09 15:21:46 -05:00
test_submission.pdf Added support of xml-source only drafts submissions. 2015-07-22 21:35:44 +00:00
test_submission.txt fix: Fix spurious author extraction errors (#4799) 2022-12-02 15:41:21 -06:00
test_submission.xml Added asciiFullname and asciiSurname attributes to the XML submission test template. 2019-09-26 14:41:48 +00:00
test_submission_invalid_yang.txt feat: Process uploaded submissions asynchronously (#5580) 2023-05-09 15:21:46 -05:00
test_submission_no_org_or_address.txt Accept 'None' when updating DocumentAuthor affiliation / country. Commit ready for merge. 2021-05-21 15:54:03 +00:00
test_submission_no_org_or_address.xml Accept 'None' when updating DocumentAuthor affiliation / country. Commit ready for merge. 2021-05-21 15:54:03 +00:00
test_submission_v2_country_only.xml Run v2v3 converter internally when v2 XML is submitted. Fixes #3305. Commit ready for merge. 2021-07-20 18:13:41 +00:00
tests.py refactor: Drop submission validation via libmagic (#6500) 2023-10-23 10:00:04 -05:00
urls.py feat: Celery support and asynchronous draft submission API (#4037) 2022-08-22 13:29:31 -05:00
utils.py fix: Move submission files using shutil.move() (#6217) 2023-08-25 11:47:28 -05:00
views.py feat: Distinguish failed from not-applied checkers (#6220) 2023-08-28 11:06:35 -05:00