Skip to content

Commit d44eb20

Browse files
committed
Version 2.2.1
1 parent 3357a36 commit d44eb20

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

docs/topics/release-notes.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,22 @@ You can determine your currently installed version using `pip freeze`:
4040

4141
## 2.2.x series
4242

43-
### Master
43+
### 2.2.1
4444

45+
**Date**: 22nd Feb 2013
46+
47+
* Security fix: Use `defusedxml` package to address XML parsing vulnerabilities.
48+
* Raw data tab added to browseable API. (Eg. Allow for JSON input.)
4549
* Added TimeField.
46-
* Serializer fields can be mapped to any method that takes no args, or only takes kwargs which have defaults.
50+
* Serializer fields can be mapped to any method that takes no args, or only takes kwargs which have defaults.
51+
* Unicode support for view names/descriptions in browseable API.
4752
* Bugfix: request.DATA should return an empty `QueryDict` with no data, not `None`.
4853
* Bugfix: Remove unneeded field validation, which caused extra queries.
4954

55+
**Security note**: Following the [disclosure of security vulnerabilities][defusedxml-announce] in Python's XML parsing libraries, use of the `XMLParser` class now requires the `defusedxml` package to be installed.
56+
57+
The security vulnerabilities only affect APIs which use the `XMLParser` class, by enabling it in any views, or by having it set in the `DEFAULT_PARSER_CLASSES` setting. Note that the `XMLParser` class is not enabled by default, so this change should affect a minority of users.
58+
5059
### 2.2.0
5160

5261
**Date**: 13th Feb 2013
@@ -389,6 +398,7 @@ This change will not affect user code, so long as it's following the recommended
389398
[cite]: http://www.catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/ar01s04.html
390399
[deprecation-policy]: #deprecation-policy
391400
[django-deprecation-policy]: https://docs.djangoproject.com/en/dev/internals/release-process/#internal-release-deprecation-policy
401+
[defusedxml-announce]: http://blog.python.org/2013/02/announcing-defusedxml-fixes-for-xml.html
392402
[2.2-announcement]: 2.2-announcement.md
393403
[staticfiles14]: https://docs.djangoproject.com/en/1.4/howto/static-files/#with-a-template-tag
394404
[staticfiles13]: https://docs.djangoproject.com/en/1.3/howto/static-files/#with-a-template-tag

rest_framework/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '2.2.0'
1+
__version__ = '2.2.1'
22

33
VERSION = __version__ # synonym
44

0 commit comments

Comments
 (0)