Jennifer Richards
cf62b46093
Find references from submitted XML instead of rendering to text and parsing. Fixes #3342 . Commit ready for merge.
...
- Legacy-Id: 19825
2022-01-07 17:53:23 +00:00
Lars Eggert
b058ba28ec
Remove the ability to submit Postscript I-Ds.
...
Commit ready for merge. Fixes #3448 .
- Legacy-Id: 19486
2021-10-28 16:24:29 +00:00
Robert Sparks
47082fe4c5
Allow submit and expire_drafts to succeed when there is no "next" IETF meeting in the database. Fixes #3370 . Commit ready for merge.
...
- Legacy-Id: 19269
2021-08-01 17:50:35 +00:00
Jennifer Richards
9ef3764ad7
Run v2v3 converter internally when v2 XML is submitted. Fixes #3305 . Commit ready for merge.
...
- Legacy-Id: 19242
2021-07-20 18:13:41 +00:00
Robert Sparks
3697180cc1
Reverted merge of timezone-aware migration efforts.
...
- Legacy-Id: 18792
2021-01-12 16:54:20 +00:00
Henrik Levkowetz
774e752a54
Snapshot of timezone-aware datatracker code. Tests pass, and the test-crawler shows only expected differences. Trunk changes merged in up to r18768.
...
- Legacy-Id: 18770
2020-12-16 23:53:37 +00:00
Henrik Levkowetz
15ea994266
Added an xml_version field to Submission objects, to capture the schema version of submitted XML files (if any). Related to issue #3067 .
...
- Legacy-Id: 18440
2020-08-28 14:31:36 +00:00
Henrik Levkowetz
f10ddadc0e
Merged in changes from trunk up to r17584.
...
- Legacy-Id: 17593
2020-04-07 16:02:52 +00:00
Henrik Levkowetz
4d345573ae
Check if any files matching the submitted draft name and revision already exists on disk in the active drafts or archived drafts directories, and if so reject the submission. Fixes issue #2908
...
- Legacy-Id: 17498
2020-03-21 22:56:57 +00:00
Henrik Levkowetz
e99fa4be40
Merged in [17419] from rjsparks@nostrum.com:
...
Don't warn about idcutoff when the cutoff is after the meeting starts. Fixes #2907 .
- Legacy-Id: 17422
Note: SVN reference [17419] has been migrated to Git commit edc41a8705
2020-03-11 21:46:02 +00:00
Robert Sparks
edc41a8705
Don't warn about idcutoff when the cutoff is after the meeting starts. Fixes #2907 . Commit ready for merge.
...
- Legacy-Id: 17419
2020-03-11 16:15:40 +00:00
Henrik Levkowetz
0f6a886ae0
Corrected the extent of a try/except block, moving more code inside the block. Fixes a submission exception that should just be a document error reported back to the user.
...
- Legacy-Id: 17411
2020-03-09 14:13:37 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
e9a37d8ac8
Removed six.text_type(), changed six.moves.urllib to plain urllib, and removed now unused six imports.
...
- Legacy-Id: 17385
2020-03-05 14:41:41 +00:00
Henrik Levkowetz
095c3a2ccb
Fixed an issue where the lookup of recognized country names during draft submission grabbed the unicode name instead of the ascii name for non-ascii country strings in XML submissions.
...
- Legacy-Id: 17345
2020-02-26 17:20:13 +00:00
Henrik Levkowetz
9439f718d4
Wrapped more code in an exception block, in order not to continue processing after an XML parse exception. Fixes issue #2885 .
...
- Legacy-Id: 17305
2020-02-18 20:20:09 +00:00
Henrik Levkowetz
e79eb56c01
Changed the xml parser settings for legacy xml draft submissions to remove comments before converting to .txt. Fixes and issue with comments in <artwork> text.
...
- Legacy-Id: 17297
2020-02-16 15:48:45 +00:00
Henrik Levkowetz
edf28348aa
Changed draft submission field validation taking place in clean() to associate the errors with the field in question, rather than raising them as general form errors.
...
- Legacy-Id: 17249
2020-01-18 15:01:35 +00:00
Henrik Levkowetz
ac6b664fa5
Added normalization of draft title extracted from submitted XML.
...
- Legacy-Id: 17119
2019-12-02 16:24:51 +00:00
Henrik Levkowetz
c486ec8003
Fixed naming of staged xml draft submission files and tweaked the arguments for the xml2rfc parser invocation for xml draft submissions. Added some more logging.
...
- Legacy-Id: 17075
2019-11-21 04:35:31 +00:00
Henrik Levkowetz
98dc8e99f3
Changed the call arguments for submission tool conversion from XML to v3 text to match those of the standalone tool. Fixes an issue where <sourecode> would have line ends stripped when converted by the datatracker.
...
- Legacy-Id: 17021
2019-11-12 18:27:01 +00:00
Henrik Levkowetz
bf299bbfb5
Be more liberal with v3 xml submissions.
...
- Legacy-Id: 16956
2019-11-04 18:13:22 +00:00
Henrik Levkowetz
994e0ba6cc
Moved the code that generates .txt and .html draft files from .xml to a place where potential errors can be caught and displayed better. Related to ticket #2814 .
...
- Legacy-Id: 16862
2019-10-15 14:33:35 +00:00
Henrik Levkowetz
5b3b9c2791
Reverting the previous commit
...
- Legacy-Id: 16857
2019-10-10 18:32:49 +00:00
Henrik Levkowetz
c58f370104
Updated requirements3.txt. Explicitly listing mypy version requirements is counter-productive as it is determined by django-stubs.
...
- Legacy-Id: 16856
2019-10-10 18:31:25 +00:00
Henrik Levkowetz
eabf121abe
Added code to detect conflicting information for draft name, revision, and title when both XML and text versions of a document are submitted.
...
- Legacy-Id: 16746
2019-09-26 14:38:47 +00:00
Henrik Levkowetz
78889979a1
Changed the draft submission form and views so that an email address is required for each author in order to complete self-service draft submission. It is possible to add these as metadata updates, but this will lead to submission through the secretariat (and the email addresses will still be required). Also updated related templates to make the handling of form section headings more consistent.
...
- Legacy-Id: 16745
2019-09-23 17:26:16 +00:00
Henrik Levkowetz
a3f59ee9a2
Added conversion of version 3 XML draft submissions to v3 HTML, in addition to text. Added a link to HTML versions (when present) to the document status page, and renamed the link to the htmlized version to 'htmlized'. Converted the submission XML test-file to version 3. Added test code to check that HTML is generated for version 3 XML submissions.
...
- Legacy-Id: 16737
2019-09-20 14:24:44 +00:00
Henrik Levkowetz
44f42cdb3a
Undid the previous commit
...
- Legacy-Id: 16735
2019-09-20 11:30:04 +00:00
Henrik Levkowetz
e3e9f676b7
Added class 'bg-danger' to submission error messages. The big 'Meta-Data errors found' pane on red background is so noticeable that class 'text-danger' which gives bold text is insufficient to stand out clearly. Adding 'bg-danger' gives the specific error messages red background, too.
...
- Legacy-Id: 16734
2019-09-20 11:28:53 +00:00
Henrik Levkowetz
22e0d39e4b
Fixed an issue where text file charset information would be overwritten on upload of multiple files for a draft. Fixes issue #2768 .
...
- Legacy-Id: 16626
2019-08-06 15:41:13 +00:00
Henrik Levkowetz
915d8e3c2a
Added LookupError to the exceptions caught during text upload decoding, leading to upload form validation error.
...
- Legacy-Id: 16573
2019-07-22 15:47:40 +00:00
Henrik Levkowetz
8c6eb3a30a
Python2/3 compatibility: Changed the use of open() and StringIO to io.open() etc.
...
- Legacy-Id: 16458
2019-07-15 19:14:04 +00:00
Henrik Levkowetz
1225f8af6b
Refactored submission code to be clearer and only do mimetype extraction in one place, made the point where files are saved less obscure, fixed bytes/str issues for file read and write, fixed regex strings, fixed variable name visibility due to scope changes in py3.
...
- Legacy-Id: 16375
2019-07-04 15:49:42 +00:00
Henrik Levkowetz
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz
d300a82845
Added validation of draft names extracted from XML submission files.
...
- Legacy-Id: 16239
2019-06-12 22:06:53 +00:00
Henrik Levkowetz
175c75cfaf
Removed a debug print statement
...
- Legacy-Id: 16111
2019-03-28 10:11:33 +00:00
Henrik Levkowetz
2f31f7fb88
Temorary workaround to upload xml validation. The tree.validate() of xml2rfc should be updated to check vocabulary version and validate against the appropriate schema, to fix this properly.
...
- Legacy-Id: 16101
2019-03-25 10:56:30 +00:00
Henrik Levkowetz
07fa09b6dc
Removed a debug print statement
...
- Legacy-Id: 15963
2019-02-25 12:30:52 +00:00
Henrik Levkowetz
e8a59ce1e5
Rewrote the submission deduce_group() to consider all groups with acronyms that are also GroupTypeNames. Added GroupTypeName for iesg,ise,adhoc groups, and appropriate GroupFeatures for each. Updated the names.json fixture.
...
- Legacy-Id: 15960
2019-02-21 15:27:58 +00:00
Henrik Levkowetz
fc5dd02c27
Fixed a submission failure for xml files missing abstract sections.
...
- Legacy-Id: 15933
2019-02-07 15:26:26 +00:00
Henrik Levkowetz
57a4c9f41f
Added 9 new group features, and changed list-like char fields to json fields, to get better support for using the values as lists. Modified code to use the group features instead of explicit lists of group types in many places in the code.
...
- Legacy-Id: 15908
2019-01-22 18:11:46 +00:00
Henrik Levkowetz
c14b02cfa4
Fixed a problem where an exception could be raised when reporting an exception during draft XML processing to the user.
...
- Legacy-Id: 15491
2018-09-27 13:36:25 +00:00
Henrik Levkowetz
dab5b81ae2
Fixed display of xml2rfc exceptions when processing draft submission in xml form.
...
- Legacy-Id: 15371
2018-07-17 14:23:18 +00:00
Henrik Levkowetz
00a97a47fe
Changed an exception handling to not depend on exceptions having a .msg element
...
- Legacy-Id: 14687
2018-02-23 14:48:18 +00:00
Henrik Levkowetz
8a9dcfc856
Call the xml2rfc parser with normalize=True, in alignment with xml2rfc internal use.
...
- Legacy-Id: 14686
2018-02-23 13:46:28 +00:00
Henrik Levkowetz
3af2554b2f
Added an API for draft submission, at /api/submit. Added an urls.py file under api/ to hold api urls, and moved those from ietf/urls.py. Refactored out many parts of the regular submission forms and functions in submit/forms.py and submit/views.py in order to re-use the appropriate parts for the submission API. Moved support functions to submit/utils.py. Added a new validation errors for missing docName in xml-based submissions. Updated the submission test document templates to use insert additional values. Added failure and success test cases for automated API submissions, and refactored some test utility functions.
...
- Legacy-Id: 14125
2017-09-16 09:35:42 +00:00
Henrik Levkowetz
a9b259ef26
Changed the message shown when xml file parsing fails during draft submission to include the actual error message from the xml parser. Fixes issue #2353 .
...
- Legacy-Id: 14102
2017-09-06 17:41:29 +00:00
Henrik Levkowetz
274548f1b1
Check the whole draft submission text when checking mime type, and catch decoding errors and raise ValidationError when converting submission form txt file to unicode for Draft().
...
- Legacy-Id: 13759
2017-07-02 21:32:44 +00:00
Henrik Levkowetz
508bf15c6c
Work around an issue in xml2rfc
...
- Legacy-Id: 13682
2017-06-19 19:02:42 +00:00