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
Henrik Levkowetz
cd10ba5669
Made some per-group and per-session iCalendar links show only if occurring in the future.
...
- Legacy-Id: 14750
2018-03-08 22:47:00 +00:00
Henrik Levkowetz
7ce7b62242
Added some warning ignore stanzas for django 2.0 deprecations related to libs.
...
- Legacy-Id: 14749
2018-03-08 22:45:30 +00:00
Henrik Levkowetz
1c7beb831f
Added individual session icalendar links on the group materials pages.
...
- Legacy-Id: 14746
2018-03-08 18:38:25 +00:00
Henrik Levkowetz
2fd344f810
Tweaks to handle text types better and make set operation clearer.
...
- Legacy-Id: 14745
2018-03-07 21:10:47 +00:00
Henrik Levkowetz
802f201d81
Modified the sanitizer and upload handler to strip also the content of some tags, and to produce valid files (if the content is otherwise valid).
...
- Legacy-Id: 14744
2018-03-07 19:00:24 +00:00
Henrik Levkowetz
6e5e50c78c
Added an error message for missing email in extracted author information during automated draft submission.
...
- Legacy-Id: 14743
2018-03-07 16:42:57 +00:00
Henrik Levkowetz
5964cdd880
Removed unused data.
...
- Legacy-Id: 14741
2018-03-07 08:24:43 +00:00
Henrik Levkowetz
51b5303191
Included mailing lists for groups in state 'bof' on the non-WG mailing list page, as that seems to match people's expectations better. Thiw was triggered by the observation that the 'iasa20' list was not listed on the page.
...
- Legacy-Id: 14740
2018-03-06 20:39:14 +00:00
Henrik Levkowetz
2828683cee
Replaced html sanitization code that called html5lib directly with calls to bleach, and upgraded the requirements to let us use the latest html5lib and bleach.
...
- Legacy-Id: 14739
2018-03-06 18:35:34 +00:00
Henrik Levkowetz
b92ad2f992
Added sanitization of uploaded html content for session agendas and minutes, and did some refactoring of the upload form classes.
...
- Legacy-Id: 14738
2018-03-06 15:55:30 +00:00
Henrik Levkowetz
27914a0a90
Limited the lenght of the ipr document summary to 128, in order to not produce overlong message subjects. Fixes a server 500 from 5 Mar 2018.
...
- Legacy-Id: 14737
2018-03-06 12:22:03 +00:00
Henrik Levkowetz
6cccabe03c
The datatracker /html/ URLs don't currently accept revision numbers. Fix the URL in the announcement email for the time being, and improve the urls in the upcoming revisit of htmlized draft pages.
...
- Legacy-Id: 14736
2018-03-05 21:57:08 +00:00
Henrik Levkowetz
28536bb293
Fixed a typo. Fixes issue #2466 .
...
- Legacy-Id: 14735
2018-03-05 21:37:22 +00:00
Henrik Levkowetz
430f313cec
Set version info and settings back to development mode
...
- Legacy-Id: 14733
2018-03-04 16:07:52 +00:00
Henrik Levkowetz
687d1e1466
Set version info to release version 6.74.0 before branching.
...
- Legacy-Id: 14731
2018-03-04 16:07:42 +00:00
Henrik Levkowetz
784f436ff9
Backed out part of the previous change.
...
- Legacy-Id: 14727
2018-03-03 19:48:30 +00:00
Henrik Levkowetz
5c6222f919
Updated settings.
...
- Legacy-Id: 14726
2018-03-03 18:33:53 +00:00
Henrik Levkowetz
ad2139dc8f
Fixed a settings typo.
...
- Legacy-Id: 14725
2018-03-03 18:30:19 +00:00
Henrik Levkowetz
91ee536322
Renamed some datetime fields from 'time' to 'modified', to match their semantics, and changed them to use auto_now=True. This should fix an issue with outdated timestamps on some meeting-related objects.
...
- Legacy-Id: 14724
2018-03-03 14:44:58 +00:00
Henrik Levkowetz
5573dc00d0
Find person by email during draft submission also if email case doesn't match.
...
- Legacy-Id: 14723
2018-03-02 21:27:13 +00:00
Henrik Levkowetz
4c6aa091b1
Added date information to the 'scheduled session' emails, and also a link to an ical file for the group sessions. Fixes issue #2461 .
...
- Legacy-Id: 14722
2018-03-02 16:43:56 +00:00
Henrik Levkowetz
578960c9f6
Tweaked some meeting-related admin classes for better search and display.
...
- Legacy-Id: 14721
2018-03-02 16:42:20 +00:00
Henrik Levkowetz
1d24c34f32
Added some CSS classes for use in the group meeting page.
...
- Legacy-Id: 14720
2018-03-02 16:41:28 +00:00
Henrik Levkowetz
3564ba18fa
Added a test for the per-group and per-session ical pages.
...
- Legacy-Id: 14719
2018-03-02 16:40:36 +00:00
Henrik Levkowetz
7820e3e3d8
Added links to per-session ical entries to the group meetings page and to draft pages, when a page shows sessions where a draft is on the agenda.
...
- Legacy-Id: 14718
2018-03-02 16:39:43 +00:00
Henrik Levkowetz
92864c233d
Refactored ical_agenda() to be more general. Added parameters and code to permit generation of per-group and per-session ical pages. Added url entries for per-group and per-session ical pages. Changed some parameter names to better reflect their semantics ('session'->'acronym').
...
- Legacy-Id: 14717
2018-03-02 16:37:58 +00:00
Henrik Levkowetz
770762ff99
Merged in [14715] from rjsparks@nostrum.com:
...
Make a more appropriate review message when a BoF has an initial charter under consideration. Fixes #2458 .
- Legacy-Id: 14716
Note: SVN reference [14715] has been migrated to Git commit 975522af35
2018-02-28 23:09:22 +00:00