Commit graph

7980 commits

Author SHA1 Message Date
Henrik Levkowetz b9e34b3eec Merged in [14843] from adam@nostrum.com:
Updated (deprecated, unregistered) 'text/json' with 'application/json' everwhere.
 - Legacy-Id: 14853
Note: SVN reference [14843] has been migrated to Git commit 3c4c0f2584
2018-03-17 18:48:01 +00:00
Henrik Levkowetz e0ca40bdf2 Merged in [14842] from rcross@amsl.com:
Add check for deleted session when scheduling.  Fixes #2450.
 - Legacy-Id: 14847
Note: SVN reference [14842] has been migrated to Git commit 7211cf399b
2018-03-17 16:01:26 +00:00
Adam Roach 3c4c0f2584 Updated (deprecated, unregistered) 'text/json' with 'application/json' everwhere. Commit ready for merge.
- Legacy-Id: 14843
2018-03-17 15:14:57 +00:00
Ryan Cross 7211cf399b Add check for deleted session when scheduling. Fixes #2450. Commit ready for merge
- Legacy-Id: 14842
2018-03-17 15:10:20 +00:00
Henrik Levkowetz 63c97ad439 Fixed a bug in a RegexValidator error message string interpolation.
- Legacy-Id: 14841
2018-03-17 13:09:58 +00:00
Henrik Levkowetz e29aa990a6 Tweaked a setting for better readability.
- Legacy-Id: 14840
2018-03-17 13:00:56 +00:00
Henrik Levkowetz 1f16c0e3d8 Set version info and settings back to development mode
- Legacy-Id: 14838
2018-03-17 10:42:26 +00:00
Henrik Levkowetz 015cf048a7 Set version info to release version 6.75.2 before branching.
- Legacy-Id: 14836
2018-03-17 10:42:17 +00:00
Henrik Levkowetz 530fd3095f Merged in [14830] from rjsparks@nostrum.com:
Simple coverage tests for ietf/secr/drafts/reports.py.
 - Legacy-Id: 14833
Note: SVN reference [14830] has been migrated to Git commit e630793802
2018-03-16 11:41:13 +00:00
Henrik Levkowetz 9341f96832 Tweaked the document sanitizer to insert a charset meta tag after sanitization.
- Legacy-Id: 14832
2018-03-16 11:13:03 +00:00
Henrik Levkowetz c3e05fd194 Fixed a mistaken change in session urls.
- Legacy-Id: 14831
2018-03-16 10:27:19 +00:00
Robert Sparks e630793802 Simple coverage tests for ietf/secr/drafts/reports.py. Commit ready for merge.
- Legacy-Id: 14830
2018-03-15 23:11:43 +00:00
Henrik Levkowetz e0b33fd9ca Tweaked a test case to make it easier to get at failures.
- Legacy-Id: 14829
2018-03-15 13:47:32 +00:00
Henrik Levkowetz b439c019a4 Whitespace fix.
- Legacy-Id: 14828
2018-03-15 13:46:30 +00:00
Henrik Levkowetz c2016859a8 Made the materials_document() view function more robust in handling various materials document names.
- Legacy-Id: 14827
2018-03-15 13:45:54 +00:00
Henrik Levkowetz 37655a0410 Gave the 404 message a class which will make it easier to pick out the message during testing.
- Legacy-Id: 14826
2018-03-15 13:43:08 +00:00
Henrik Levkowetz dedf681c2d Updated the meeting materials document view to handle urls with revisions.
- Legacy-Id: 14825
2018-03-14 22:13:27 +00:00
Henrik Levkowetz 088b7bfa1e Updated the meeting document href patterns in settings.py to reflect that we now have versioned agendas, minutes, and slides.
- Legacy-Id: 14824
2018-03-14 22:12:25 +00:00
Henrik Levkowetz a04e187f0f Removed some old debug print statements.
- Legacy-Id: 14823
2018-03-14 22:11:06 +00:00
Henrik Levkowetz 1fd4a4d1a7 Added session ical links to document lists (WG docs, search results, etc.) for documents on upcoming meeting agendas. Reduced the query and rendering times of document lists some more through additional prefetch_related().
- Legacy-Id: 14799
2018-03-14 19:16:50 +00:00
Henrik Levkowetz 98f64dfea4 Added result caching for the Person.email() method.
- Legacy-Id: 14797
2018-03-14 19:14:16 +00:00
Henrik Levkowetz f7130529d6 Explanatory comment to self, after repeating the same search for where 'sql_queries' is made available to templates again ...
- Legacy-Id: 14796
2018-03-14 19:13:10 +00:00
Henrik Levkowetz fdba464808 Added result caching for a couple of Document methods.
- Legacy-Id: 14795
2018-03-14 19:11:18 +00:00
Henrik Levkowetz 428c451692 Added a missing tag to the sanitizer whitelist (telling lxml's Cleaner to not clean style with style=False is apparently not always enough). Fixes issue #2470.
- Legacy-Id: 14794
2018-03-14 18:52:11 +00:00
Henrik Levkowetz 24a5eab0b4 Added a debug import.
- Legacy-Id: 14793
2018-03-14 17:41:49 +00:00
Henrik Levkowetz 49f00b76ea Set version info and settings back to development mode
- Legacy-Id: 14790
2018-03-14 11:04:32 +00:00
Henrik Levkowetz 46a261c2ae Set version info to release version 6.75.1 before branching.
- Legacy-Id: 14788
2018-03-14 11:04:23 +00:00
Henrik Levkowetz 278d868d28 Added handling for when file magic doesn't return a definitive encoding for a file. Added a test case to excercise error cases.
- Legacy-Id: 14782
2018-03-13 16:45:50 +00:00
Henrik Levkowetz 8cc61e0cf7 Changed the meeting materials uploads to use the upload file encoding found by file-magic when decoding the upload content, and also return errors to the user if decoding the upload fails. Fixes issue #2469. This will also have the benefit (since we're saving with utf-8 encoding after decoding) of having meeting materials consistently stored with a consistent encoding on the server.
- Legacy-Id: 14781
2018-03-13 14:00:51 +00:00
Henrik Levkowetz 8f4f50d5c4 Added a new argument encoding= to handle_upload_file() in order to be able to deal better with various upload encodings.
- Legacy-Id: 14780
2018-03-13 13:56:00 +00:00
Henrik Levkowetz 02105889b6 Tweaked the mime type validator so it can be called also when there's no required mime types.
- Legacy-Id: 14779
2018-03-13 13:54:04 +00:00
Henrik Levkowetz 07229b7406 Use an empty iterable instead of None in the valid upload mime-types settings when there's no required mime type, in order to simplify other code.
- Legacy-Id: 14778
2018-03-13 13:52:50 +00:00
Henrik Levkowetz c4bb28325a Feed back encoding information to the FileUploadForm when doing mime type validation, for later use in decoding.
- Legacy-Id: 14777
2018-03-13 13:51:00 +00:00
Henrik Levkowetz 2b52919c5e Added sanitize_document() and replaced sanitize_html() with sanitize_fragment() in utils.html
- Legacy-Id: 14776
2018-03-13 13:21:41 +00:00
Henrik Levkowetz 6e9bb00f13 Changed html cleaning to differentiate between fragment cleaning and document cleaning. Added an lxml-based cleaner for document cleaning, also permitting <style> tags (but not external style sheets).
- Legacy-Id: 14775
2018-03-13 12:48:22 +00:00
Henrik Levkowetz f3f77dce48 Changed order of arguments in a test assert for better error legibility.
- Legacy-Id: 14774
2018-03-13 12:38:53 +00:00
Henrik Levkowetz 9d65d46b8c Set version info and settings back to development mode
- Legacy-Id: 14771
2018-03-12 15:01:34 +00:00
Henrik Levkowetz 2a3cf59410 Set version info to release version 6.75.0 before branching.
- Legacy-Id: 14769
2018-03-12 15:00:58 +00:00
Henrik Levkowetz 724f1ceccc Added xmpp as an acceptable protocol in links when sanitizing.
- Legacy-Id: 14766
2018-03-12 13:17:41 +00:00
Henrik Levkowetz 5e147af541 Tweaked some icalendar urls to avoid collisions.
- Legacy-Id: 14765
2018-03-11 21:21:09 +00:00
Henrik Levkowetz 1954fc1d9f Tweaked the iCalendar urls, and added a test for interim meeting iCalendar files.
- Legacy-Id: 14764
2018-03-10 18:06:54 +00:00
Henrik Levkowetz a11cdd3b20 Expanded iCanendar generation to include interim meetings.
- Legacy-Id: 14763
2018-03-10 11:25:10 +00:00
Henrik Levkowetz fac3053d48 Fixed an issue with the milestone edit changes.
- Legacy-Id: 14762
2018-03-09 21:27:58 +00:00
Henrik Levkowetz cb051a7f59 Changed the handling of the milestone edit form to defer deletion if deletion is indicated together with other changes to the same milestone. Instead emit a warning, and ask for deletion without simultaneous changes to the milestone.
- Legacy-Id: 14761
2018-03-09 20:05:09 +00:00
Henrik Levkowetz 9287ce2b3b If there are both milestone changes and a deletion marked for a milesone, show both 'Changed' and 'Deleted' labels on the review form.
- Legacy-Id: 14760
2018-03-09 20:03:34 +00:00
Henrik Levkowetz e5bc9c2e9a Removed the use of os.chdir() during patching, instead passing the found library path to the patcher.
- Legacy-Id: 14757
2018-03-09 17:54:24 +00:00
Henrik Levkowetz 229d84a144 Added a patch to patch.py to not change directories during patching.
- Legacy-Id: 14755
2018-03-09 17:51:40 +00:00
Henrik Levkowetz 3b7a191feb Removed a debug print statement
- Legacy-Id: 14753
2018-03-09 15:49:25 +00:00
Henrik Levkowetz 2c0348cc7a Found that django's urlize() does not deal well with adjacent parantheses. Replaced it with a filter based on bleach.linkify, which does better.
- Legacy-Id: 14752
2018-03-09 15:07:04 +00:00
Henrik Levkowetz 1df3c715d0 Replaced the use of (at least in Django 1.11) buggy urlize() with bleach.linkify(), to avoid some exceptions caused by malformed urlize output, exposed by the new sanitize_html(). Also removed some dead code.
- Legacy-Id: 14751
2018-03-09 12:00:15 +00:00