From 5092dc381bbc9774a772595a211d919bcd83be3e Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 3 Sep 2017 02:57:40 -0400 Subject: [PATCH] Update changelog and release notes for version 2.7.1. Signed-off-by: Roberto Rosario --- HISTORY.rst | 5 +++-- docs/releases/2.7.1.rst | 38 +++++++++++++++++++++++++++++++------- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 19ce90b973..ffcddc000f 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,9 +1,10 @@ -2.7.1 (2017-08-31) +2.7.1 (2017-09-03) ================== - Support unicode in URL querystring. GitLab issue #423. Thanks to Gustavo Teixeira (@gsteixei) for the find. - Import errors during initialization are only ignored - if they are cause by a missing local.py. + if they are cause by a missing local.py. Thanks to + MacRobb Simpson for the report and solution. - Make sure the local.py created used unicode for strings by default. GitLab issue #424. Thanks to Gustavo Teixeira (@gsteixei) for the find. diff --git a/docs/releases/2.7.1.rst b/docs/releases/2.7.1.rst index d5d34ca26e..a30cf4a060 100644 --- a/docs/releases/2.7.1.rst +++ b/docs/releases/2.7.1.rst @@ -2,17 +2,40 @@ Mayan EDMS v2.7.1 release notes =============================== -Released: August 31, 2017 +Released: September 3, 2017 What's new ========== -Other Changes -------------- -- Support unicode in URL querystring. GitLab issue #423. - Thanks to Gustavo Teixeira (@gsteixei) for the find. -- Import errors during initialization are only ignored - if they are cause by a missing local.py. +Unicode metadata when uploading a document +------------------------------------------ +An issue with Django's unquote_plus caused documents being uploaded with an +unicode, no English character in an initial metadata value field to fail. +The unquote_plus usage was remove in favor of a dedicate URL parsing library +called furl. GitLab issue #423. Thanks to Gustavo Teixeira (@gsteixei) for the +find. + +Silent errors during initialization +----------------------------------- +When Python raises an ImportError exception, it is not possible to determine +the cause of the error. The local.py import code was updated to interpret the +text of the ImportError exception and ignore it only if the local.py was +missing, which is the case during the initialization commands execute after +the initial installation. Any error in the local.py file will now cause Mayan +to exit. Thanks to MacRobb Simpson for the report and solution. + +String usage in the local.py file +--------------------------------- +Python 2.7 uses byte strings by default. Byte strings cannot be used in +conjunction with unicode strings. A missing import was causing strings in +the local.py file to be interpreted as byte string while the rest of Mayan +uses unicode strings. Using non English special characters in a string located +in the local.py file would have cause a Unicode errors. For new installations +from Mayan version 2.7.1 onwards, the line +`from __future__ import absolute_imports, unicode_literals` is included when +generating the local.py for the first time. For existing installations, +adding this line at the top is all that's needed. GitLab issue #424. Thanks to +Gustavo Teixeira (@gsteixei) for the find and researching the cause. Removals -------- @@ -68,6 +91,7 @@ Bugs fixed or issues closed =========================== * `GitLab issue #423 `_ Metadata can't handle non ascii chars on upload +* `GitLab issue #424 `_ DjangoUnicodeDecodeError on document proprieties due document language field .. _PyPI: https://pypi.python.org/pypi/mayan-edms/