| 1 |
Release 1.13.0 (2024-04-11) |
| 2 |
=========================== |
| 3 |
|
| 4 |
* Fix validation messages for validate_key and encrypt_key |
| 5 |
* Added support for rediscluster via ext:redisclusternm |
| 6 |
* Removed the need to install mock library to run tests |
| 7 |
|
| 8 |
Release 1.12.1 (2023-01-04) |
| 9 |
=========================== |
| 10 |
|
| 11 |
* Fix ext:database backend failing to initialize. |
| 12 |
* Improved inline code documentation for the crypto module. |
| 13 |
|
| 14 |
Release 1.12.0 (2022-12-07) |
| 15 |
=========================== |
| 16 |
|
| 17 |
* Enabled testing on Python 3.10 and 3.11 |
| 18 |
* Fixed issue #122 - Session ignores deserializer json |
| 19 |
* Remove ID generation fallback for when the uuid module is not found |
| 20 |
* Port testing from nose to pytest |
| 21 |
* Fixed issue #180 - KeyError when loading deleted session |
| 22 |
|
| 23 |
Release 1.11.0 (2019-08-26) |
| 24 |
=========================== |
| 25 |
|
| 26 |
* Fixed cookie path option not being properly set (`self._path` was removed, only `self.path` exists) |
| 27 |
* Documented `SameSite` option |
| 28 |
* Fixed cookie expiration being localised when it shouldn't. |
| 29 |
|
| 30 |
Release 1.10.1 (2019-02-21) |
| 31 |
=========================== |
| 32 |
|
| 33 |
* Fix issue with Redis namespace manager TTL |
| 34 |
* Fix for SameSite cookie option not being set in some cases |
| 35 |
* Fix for memcached tests on Python3 |
| 36 |
|
| 37 |
Release 1.10.0 (2018-06-04) |
| 38 |
=========================== |
| 39 |
|
| 40 |
* Redis namespace manager now supports providing a TTL for session entries that had a ``timeout`` provided. |
| 41 |
This will remove the need to manually clear expired sessions from the redis storage. |
| 42 |
* ``nsscrypto`` backend is now properly identified as providing AES support. |
| 43 |
* When a crypto backend doesn't support AES it will no longer crash if the ``encrypt_key`` is ``None``. |
| 44 |
* Session cookies will now provide support for ``SameSite`` through the ``samesite`` option. |
| 45 |
By default this will be ``Lax``, but can be set to ``Strict`` or ``None`` to disable it. |
| 46 |
|
| 47 |
Release 1.9.1 (2018-04-09) |
| 48 |
========================== |
| 49 |
|
| 50 |
* When decorating a function with @cache_region decorator the function generated to update the cached value |
| 51 |
will be named like the decorated function. So that during debugging it's easy to know which function is involved. |
| 52 |
* Removed usage of ``async`` as a variable in code, this fixes a compatibility problem with Python 3.7 where it's a keyword. |
| 53 |
* Fixed a race condition in ``FileNamespaceManager``. |
| 54 |
* ``ext.database`` backend will now properly close connections. |
| 55 |
* Do not leave bhind corrupted files if ``FileNamespaceManager`` is interrupted while writing a new file. |
| 56 |
Replacing content of a file or writing a new one is now always an atomic operation. |
| 57 |
* ``DBMNamespaceManager`` and ``FileSynchronizer`` will now deal with directories disappearing while they try to write to them. |
| 58 |
* The Redis and MongoDB backends are not exposed in documentation. |
| 59 |
|
| 60 |
Release 1.9.0 (2017-06-19) |
| 61 |
========================== |
| 62 |
|
| 63 |
* Beaker now provides builtin ``ext:mongodb`` and ``ext:redis`` namespace managers. |
| 64 |
Both come with a Synchronizer implemented on the storage backend instead of relying on file one. |
| 65 |
* Fixed an issue where cookie options like ``Secure``, ``Domain`` and so on where lost. |
| 66 |
* Improved support for cache entries expiration. NamespaceManagers that support it will expire their key automatically. |
| 67 |
* Pycryptodome can be used instead of pycrypto. |
| 68 |
* An issue with ``Cookie`` module import on case insensitive file systems should have been resolved. |
| 69 |
* Cryptography module is now as a crypto function provider instead of pycrypto |
| 70 |
|
| 71 |
Release 1.8.1 (2016-10-24) |
| 72 |
========================== |
| 73 |
|
| 74 |
* Sessions have a new option save_accessed_time which defaults to true for |
| 75 |
backwards compatibility. Set to false to tell beaker not to update |
| 76 |
_accessed_time if the session hasn't been changed, for non-cookie sessions |
| 77 |
stores. This lets you avoid needless datastore writes. _accessed_time will |
| 78 |
always be updated when the session is intentionally saved. |
| 79 |
* data_serializer parameter in Session accepts a custom object with `dumps` and `loads` methods. |
| 80 |
* Fixed a TypeError in exception reporting when failing to load a NamespaceManager |
| 81 |
* Allow to change Cookie Expiration from a value back to None, previously it had no effect. |
| 82 |
* Allow SessionMiddleware to setup a custom Session class through the `session_class` argument. |
| 83 |
* Added `invalidate_corrupt` option to CookieSessions too for valid cookies containing invalid data. |
| 84 |
|
| 85 |
Release 1.8.0 (2016-01-26) |
| 86 |
========================== |
| 87 |
|
| 88 |
* Encrypted sessions can now specify nonce length for salt generation through ``encrypt_nonce_bits`` parameter. |
| 89 |
set it to ``48`` for backward compatibility with sessions generated before 1.8.0 |
| 90 |
* kwargs support in @cache_region decorator |
| 91 |
* annotations support in @cache_region decorator |
| 92 |
* data_serializer parameter in Session can now specify ``json`` to avoid pickle security issues |
| 93 |
* Invalid cookies are now skipped in cookie based sessions |
| 94 |
* Memcached based on PyLibMC now share same connection pool for same url |
| 95 |
|
| 96 |
Release 1.7.0 (2015-04-20) |
| 97 |
========================== |
| 98 |
|
| 99 |
* Beaker no longer supports python 2.4 and 2.5 |
| 100 |
* Beaker now supports Python 2.6, 2.7, 3.2, 3.3, 3.4 without 2to3 usage |
| 101 |
* Fixed Encrypted Cookie Session on Python3 #57 |
| 102 |
* New pbkdf2 mobule working on Python3 #21 |
| 103 |
* Fixed Test suite on Python 3.3 #53, #51 |
| 104 |
|
| 105 |
Release 1.6.5 (2015-02-06) |
| 106 |
========================== |
| 107 |
|
| 108 |
* @cached decorator now keeps docstring of decorated method. |
| 109 |
* Fix crash when Session ``accessed_time`` is not available, this happened |
| 110 |
when session ``encrypt_key`` was changed. |
| 111 |
* Fix cache regions not providing a default key length even though this was |
| 112 |
required and examples in the doc didn't provide it. |
| 113 |
* Fix crash when cache expire wasn't an int, this happened when caching options |
| 114 |
were loaded from a config file. |
| 115 |
|
| 116 |
Release 1.6.4 (8/13/2012) |
| 117 |
========================= |
| 118 |
|
| 119 |
.. warning:: |
| 120 |
|
| 121 |
Session hashing for encrypted sessions using PyCrypto has changed. This |
| 122 |
will result in sessions being invalidated upon upgrading if PyCrypto is |
| 123 |
used. |
| 124 |
|
| 125 |
* Fix bug with key_length not being coerced to a int for comparison. Patch by |
| 126 |
Greg Lavallee. |
| 127 |
* Fix bug with cookie invalidation not clearing the cookie data. Patch by |
| 128 |
Vasiliy Lozovoy. |
| 129 |
* Added ability to pass in cookie_path for the Session. Patch by Marcin |
| 130 |
Kuzminski. |
| 131 |
* Add NSS crypto support to Beaker. Patch by Miloslav Trmac of Redhat. |
| 132 |
* Fix security bug with pycrypto not securing data such that an attacker could |
| 133 |
possibly determine parts of the encrypted payload. Patch by Miloslav Trmac of |
| 134 |
Redhat. See `CVE-2012-3458 <http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-3458>`_. |
| 135 |
* Add ability to specify schema for database-backed sessions. Patch by Vladimir |
| 136 |
Tananko. |
| 137 |
* Fix issue with long key names in memcached backend. Patch by Guillaume |
| 138 |
Taglang. |
| 139 |
|
| 140 |
Release 1.6.3 (2/29/2012) |
| 141 |
========================= |
| 142 |
|
| 143 |
* Fix bug with cookie deletion on leap years. Patch contributed by Greg |
| 144 |
Nelson and Michael Wirth. |
| 145 |
* Fix issue with referencing same module via different import paths. Patch |
| 146 |
contributed by brianfrantz. |
| 147 |
* Fix cookie expiration check. Patch contributed by Mike Dirolf. |
| 148 |
|
| 149 |
Release 1.6.2 (12/13/2011) |
| 150 |
========================== |
| 151 |
|
| 152 |
* Updated dogpile lock so that it locks per namespace+key rather than on the |
| 153 |
entire namespace. (#101) |
| 154 |
* Added encryption option for any backend. Patch contributed by Toby Elliot. |
| 155 |
|
| 156 |
Release 1.6.1 (10/20/2011) |
| 157 |
========================== |
| 158 |
|
| 159 |
* Remove stray print statement. |
| 160 |
* Include .app for consistency instead of requiring wrap_app. |
| 161 |
|
| 162 |
Release 1.6 (10/16/2011) |
| 163 |
======================== |
| 164 |
|
| 165 |
* Fix bug with cache_key length calculation. |
| 166 |
* Fix bug with how path was set so that its restored properly and propagated. |
| 167 |
* Fix bug with CacheMiddleware clobbering enabled setting. |
| 168 |
* Update option for ``cookie_expires`` so that it can now handle an integer |
| 169 |
which will be used as the seconds till the cookie expires. |
| 170 |
* Merge fix for Issue 31, can now handle unicode cache keys. |
| 171 |
* Add ``key_length`` option for cache regions, and for keyword args passed |
| 172 |
into the cache system. Cache keys longer than this will be SHA'd. |
| 173 |
* added runtime beaker.__version__ |
| 174 |
* Add ``webtest_varname`` option to configuration to optionally include |
| 175 |
the session value in the environ vars when using Beaker with WebTest. |
| 176 |
* Defer running of pkg_resources to look for external cache modules |
| 177 |
until requested. #66 |
| 178 |
* memcached backend uses pylibmc.ThreadMappedPool to ensure thread-local |
| 179 |
usage of pylibmc when that library is in use. (#60) |
| 180 |
* memcached backend also has ``memcache_module`` string argument, allows |
| 181 |
direct specification of the name of which memcache backend to use. |
| 182 |
* Basic container/file-based Session support working in Py3K. (#72) |
| 183 |
* Further Python 3 fixes |
| 184 |
* Added an optimization to the FileNamespaceContainer when used with |
| 185 |
Session, such that the pickled contents of the file are not |
| 186 |
read a second time when session.save() is called. (#64) |
| 187 |
* Fixed bug whereby CacheManager.invalidate wouldn't work for a function |
| 188 |
decorated by cache.cache(). (#61) |
| 189 |
* cache decorators @cache.cache(), @cache_region() won't include first |
| 190 |
argument named 'self' or 'cls' as part of the cache key. This allows |
| 191 |
reasonably safe usage for methods as well as functions. (#55) |
| 192 |
* file backend no longer squashes unpickling errors. This was inconsistent |
| 193 |
behavior versus all the other backends. |
| 194 |
* invalidate_corrupt flag on Session now emits a warning. (#52) |
| 195 |
* cache.remove_value() removes the value even if it's already marked |
| 196 |
'expired' (#42) |
| 197 |
|
| 198 |
Release 1.5.4 (6/16/2010) |
| 199 |
========================= |
| 200 |
|
| 201 |
* Fix import error with InvalidCryptoBackendError. |
| 202 |
* Fix for domain querying on property. |
| 203 |
* Test cleanups |
| 204 |
* Fix bug with warnings preventing proper running under Jython. |
| 205 |
|
| 206 |
Release 1.5.3 (3/2/2010) |
| 207 |
======================== |
| 208 |
|
| 209 |
* Fix Python 2.4 incompatibility with google import. |
| 210 |
|
| 211 |
Release 1.5.2 (3/1/2010) |
| 212 |
======================== |
| 213 |
|
| 214 |
* pkg_resources scanning for additional Beaker back-ends gracefully handles |
| 215 |
situations where its not present (GAE). Fixes #36. |
| 216 |
* Avoid timing attacks on hash comparison. |
| 217 |
* Provide abstract base for MemoryNamespaceManager that deals with |
| 218 |
"dictionaries". |
| 219 |
* Added tests for invalidating cache, and fixed bug with function cache when |
| 220 |
no args are present. |
| 221 |
* The SQLAlchemy backends require SQLAlchemy 0.4 or greater (0.6 recommended). |
| 222 |
* Rudimental Python 3 support is now available. Simply use Python 3 with |
| 223 |
Distribute and "python setup.py install" to run 2to3 automatically, |
| 224 |
or manually run 2to3 on "beaker" and "tests" to convert to a |
| 225 |
Python 3 version. |
| 226 |
* Added support for PyCrypto module to encrypted session, etc. in addition |
| 227 |
to the existing pycryptopp support. |
| 228 |
|
| 229 |
Release 1.5.1 (12/17/2009) |
| 230 |
========================== |
| 231 |
|
| 232 |
* Fix cache namespacing. |
| 233 |
|
| 234 |
Release 1.5 (11/23/2009) |
| 235 |
======================== |
| 236 |
|
| 237 |
* Update memcached to default to using pylibmc when available. |
| 238 |
* Fix bug when cache value doesn't exist causing has_key to throw |
| 239 |
an exception rather than return False. Fixes #24. |
| 240 |
* Fix bug where getpid under GAE is used improperly to assume it |
| 241 |
should be a non-string. Fixes #22. |
| 242 |
* Add cache_region decorator that works *before* configuration of |
| 243 |
the cache regions have been completed for use in module-level |
| 244 |
decorations. |
| 245 |
* Fix bug where has_value sees the value before its removed. |
| 246 |
* Improved accuracy of "dogpile" checker by removing dependency |
| 247 |
on "self" attributes, which seem to be slightly unreliable |
| 248 |
in highly concurrent scenarios. |
| 249 |
|
| 250 |
Release 1.4.2 (9/25/2009) |
| 251 |
========================= |
| 252 |
|
| 253 |
* Fix bug where memcached may yank a value after the has_value but before |
| 254 |
the value can be fetched. |
| 255 |
* Fix properties for setting the path. Fixes #15. |
| 256 |
* Fix the 'TypeError: argument must be an int, or have a fileno() |
| 257 |
method' erorr sporadically emitted by FileSynchronizer under moderate |
| 258 |
load. |
| 259 |
|
| 260 |
Release 1.4.1 (9/10/2009) |
| 261 |
========================= |
| 262 |
|
| 263 |
* Fix verification of options to throw an error if a beaker param is an |
| 264 |
empty string. |
| 265 |
* Add CacheManager.invalidate function to easily invalidate cache |
| 266 |
spaces created by the use of the cache decorator. |
| 267 |
* Add CacheManager.region_invalidate function to easily invalidate cache |
| 268 |
spaces created by the use of the cache_region decorator. |
| 269 |
* Fix the InvalidCryptoBackendError exception triggering a TypeError. Patch |
| 270 |
from dz, fixes #13. |
| 271 |
|
| 272 |
Release 1.4 (7/24/2009) |
| 273 |
======================= |
| 274 |
|
| 275 |
* Fix bug with hmac on Python 2.4. Patch from toshio, closes ticket #2133 |
| 276 |
from the TurboGears2 Trac. |
| 277 |
* Fix bug with occasional ValueError from FileNamespaceManager.do_open. |
| 278 |
Fixes #10. |
| 279 |
* Fixed bug with session files being saved despite being new and not |
| 280 |
saved. |
| 281 |
* Fixed bug with CacheMiddleware overwriting configuration with default |
| 282 |
arguments despite prior setting. |
| 283 |
* Fixed bug with SyntaxError not being caught properly in entry point |
| 284 |
discovery. |
| 285 |
* Changed to using BlobProperty for Google Datastore. |
| 286 |
* Added domain/path properties to the session. This allows one to |
| 287 |
dynamically set the cookie's domain and/or path on the fly, which |
| 288 |
will then be set on the cookie for the session. |
| 289 |
* Added support for cookie-based sessions in Jython via the JCE (Java |
| 290 |
Cryptography Extensions). Patch from Alex Grönholm. |
| 291 |
* Update Beaker database extensions to work with SQLAlchemy 0.6 |
| 292 |
PostgreSQL, and Jython. |
| 293 |
|
| 294 |
Release 1.3.1 (5/5/2009) |
| 295 |
======================== |
| 296 |
|
| 297 |
* Added a whole bunch of Sphinx documentation for the updated site. |
| 298 |
* Added corresponding remove as an alias to the caches remove_value. |
| 299 |
* Fixed cookie session not having an invalidate function. |
| 300 |
* Fix bug with CacheMiddleware not using proper function to load |
| 301 |
configuration options, missing the cache regions. |
| 302 |
|
| 303 |
Release 1.3 (4/6/2009) |
| 304 |
====================== |
| 305 |
|
| 306 |
* Added last_accessed attribute to session to indicate the previous time the |
| 307 |
session was last accessed. |
| 308 |
* Added setuptools entry points to dynamically discover additional namespace |
| 309 |
backends. |
| 310 |
* Fixed bug with invalidate and locks, fixes #594. |
| 311 |
* Added cache.cache decorator for arbitrary caching. |
| 312 |
* Added cache.region decorator to the CacheManager object. |
| 313 |
* Added cache regions. Can be provided in a configuration INI type, or |
| 314 |
by adding in a cache_regions arg to the CacheManager. |
| 315 |
* Fix bug with timeout not being saved properly. |
| 316 |
* Fix bug with cookie-only sessions sending cookies for new sessions even |
| 317 |
if they weren't supposed to be saved. |
| 318 |
* Fix bug that caused a non-auto accessed session to not record the time it |
| 319 |
was previously accessed resulting in session timeouts. |
| 320 |
* Add function to parse configuration dicts as appropriate for use with the |
| 321 |
CacheManager. |
| 322 |
* The "expiretime" is no longer passed to the memcached backend - since |
| 323 |
if memcached makes the expired item unavailable at the same time the |
| 324 |
container expires it, then all actors must block until the new value |
| 325 |
is available (i.e. breaks the anti-dogpile logic). |
| 326 |
|
| 327 |
|
| 328 |
Release 1.2.3 (3/2/2009) |
| 329 |
======================== |
| 330 |
|
| 331 |
* Fix accessed increment to take place *after* the accessed time is checked |
| 332 |
to see if it has expired. Fixes #580. |
| 333 |
* data_dir/lock_dir parameters are optional to most backends; if not |
| 334 |
present, mutex-based locking will be used for creation functions |
| 335 |
* Adjustments to Container to better account for backends which |
| 336 |
don't provide read/write locks, such as memcached. As a result, |
| 337 |
the plain "memory" cache no longer requires read/write mutexing. |
| 338 |
|
| 339 |
|
| 340 |
Release 1.2.2 (2/14/2009) |
| 341 |
========================= |
| 342 |
|
| 343 |
* Fix delete bug reported by andres with session not being deleted. |
| 344 |
|
| 345 |
|
| 346 |
Release 1.2.1 (2/09/2009) |
| 347 |
========================= |
| 348 |
|
| 349 |
* Fix memcached behavior as memcached returns None on nonexistent key |
| 350 |
fetch which broke invalid session checking. |
| 351 |
|
| 352 |
|
| 353 |
Release 1.2 (1/22/2009) |
| 354 |
======================= |
| 355 |
|
| 356 |
* Updated session to only save to the storage *once* no under any/all |
| 357 |
conditions rather than every time save() is called. |
| 358 |
* Added session.revert() function that reverts the session to the state at |
| 359 |
the beginning of the request. |
| 360 |
* Updated session to store entire session data in a single namespace key, |
| 361 |
this lets memcached work properly, and makes for more efficient use of the |
| 362 |
storage system for sessions. |
| 363 |
|
| 364 |
|
| 365 |
Release 1.1.3 (12/29/2008) |
| 366 |
========================== |
| 367 |
|
| 368 |
* Fix the 1.1.2 old cache/session upgrader to handle the has_current_value |
| 369 |
method. |
| 370 |
* Make InvalidCacheBackendError an ImportError. |
| 371 |
|
| 372 |
|
| 373 |
Release 1.1.2 (11/24/2008) |
| 374 |
========================== |
| 375 |
|
| 376 |
* Upgrade Beaker pre-1.1 cache/session values to the new format rather than |
| 377 |
throwing an exception. |
| 378 |
|
| 379 |
|
| 380 |
Release 1.1.1 (11/24/2008) |
| 381 |
========================== |
| 382 |
|
| 383 |
* Fixed bug in Google extension which passed arguments it should no longer |
| 384 |
pass to NamespaceManager. |
| 385 |
* Fixed bug involving lockfiles left open during cache "value creation" |
| 386 |
step. |
| 387 |
|
| 388 |
|
| 389 |
Release 1.1 (11/16/2008) |
| 390 |
======================== |
| 391 |
|
| 392 |
* file-based cache will not hold onto cached value once read from file; |
| 393 |
will create new value if the file is deleted as opposed to re-using |
| 394 |
what was last read. This allows external removal of files to be |
| 395 |
used as a cache-invalidation mechanism. |
| 396 |
* file-based locking will not unlink lockfiles; this can interfere |
| 397 |
with the flock() mechanism in the event that a concurrent process |
| 398 |
is accessing the files. |
| 399 |
* Sending "type" and other namespace config arguments to cache.get()/ |
| 400 |
cache.put()/cache.remove_value() is deprecated. The namespace |
| 401 |
configuration is now preferred at the Cache level, i.e. when you construct |
| 402 |
a Cache or call cache_manager.get_cache(). This removes the ambiguity |
| 403 |
of Cache's dictionary interface and has_key() methods, which have |
| 404 |
no awareness of those arguments. |
| 405 |
* the "expiretime" in use is stored in the cache itself, so that it is |
| 406 |
always available when calling has_key() and other methods. Between |
| 407 |
this change and the deprecation of 'type', the Cache no longer has |
| 408 |
any need to store cache configuration in memory per cache key, which in a |
| 409 |
dynamically-generated key scenario stores an arbitrarily large number |
| 410 |
of configurations - essentially a memory leak. |
| 411 |
* memcache caching has been vastly improved, no longer stores a list of |
| 412 |
all keys, which along the same theme prevented efficient usage for an |
| 413 |
arbitrarily large number of keys. The keys() method is now unimplemented, |
| 414 |
and cache.remove() clears the entire memcache cache across all namespaces. |
| 415 |
This is what the memcache API provides so it's the best we can do. |
| 416 |
* memcache caching passes along "expiretime" to the memcached "time" |
| 417 |
parameter, so that the cache itself can reduce its size for elements which |
| 418 |
are expired (memcache seems to manage its size in any case, this is just a |
| 419 |
hint to improve its operation). |
| 420 |
* replaced homegrown ThreadLocal implementation with threading.local, falls |
| 421 |
back to a 2.3 compat one for python<2.4 |
| 422 |
|
| 423 |
|
| 424 |
Release 1.0.3 (10/14/2008) |
| 425 |
========================== |
| 426 |
|
| 427 |
* Fixed os.getpid issue on GAE. |
| 428 |
* CookieSession will add '_expires' value to data when an expire time is set, |
| 429 |
and uses it |
| 430 |
|
| 431 |
|
| 432 |
Release 1.0.2 (9/22/2008) |
| 433 |
========================= |
| 434 |
|
| 435 |
* Fixed bug caused when attempting to invalidate a session that hadn't |
| 436 |
previously been created. |
| 437 |
|
| 438 |
|
| 439 |
Release 1.0.1 (8/19/2008) |
| 440 |
========================= |
| 441 |
|
| 442 |
* Bug fix for cookie sessions to retain id before clearing values. |
| 443 |
|
| 444 |
|
| 445 |
Release 1.0 (8/13/2008) |
| 446 |
======================= |
| 447 |
|
| 448 |
* Added cookie delete to both cookie only sessions and normal sessions, to |
| 449 |
help with proxies and such that may determine whether a user is logged in |
| 450 |
via a cookie. (cookie varies, etc.). Suggested by Felix Schwarz. |
| 451 |
* cache.get_value() now uses the given **kwargs** in all cases in the same |
| 452 |
manner as cache.set_value(). This way you can send a new createfunc |
| 453 |
to cache.get_value() each time and it will be used. |
| 454 |
|
| 455 |
|
| 456 |
Release 0.9.5 (6/19/2008) |
| 457 |
========================= |
| 458 |
|
| 459 |
* Fixed bug in memcached to be tolerant of keys disappearing when memcached |
| 460 |
expires them. |
| 461 |
* Fixed the cache functionality to actually work, previously set_value was |
| 462 |
ignored if there was already a value set. |
| 463 |
|
| 464 |
|
| 465 |
Release 0.9.4 (4/13/2008) |
| 466 |
========================= |
| 467 |
|
| 468 |
* Adding 'google' backend datastore, available by specifying 'google' as the |
| 469 |
cache/session type. Note that this takes an optional table_name used to name |
| 470 |
the model class used. |
| 471 |
* SECURITY BUG: Fixed security issue with Beaker not properly removing |
| 472 |
directory escaping characters from the session ID when un-signed sessions |
| 473 |
are used. Reported with patch by Felix Schwarz. |
| 474 |
* Fixed bug with Beaker not playing well with Registry when its placed above |
| 475 |
it in the stack. Thanks Wichert Akkerman. |
| 476 |
|
| 477 |
|
| 478 |
Release 0.9.3 (2/28/2008) |
| 479 |
========================= |
| 480 |
|
| 481 |
* Adding 'id' to cookie-based sessions for better compatibility. |
| 482 |
* Fixed error with exception still raised for PyCrypto missing. |
| 483 |
* WARNING: Session middleware no longer catches Paste HTTP Exceptions, apps |
| 484 |
are now expected to capture and handle Paste HTTP Exceptions themselves. |
| 485 |
* Fixed Python 2.4 compatibility bug in hmac. |
| 486 |
* Fixed key lookup bug on cache object to only use the settings for the key |
| 487 |
lookup. Found by Andrew Stromnov. |
| 488 |
|
| 489 |
|
| 490 |
Release 0.9.2 (2/13/2008) |
| 491 |
========================= |
| 492 |
|
| 493 |
* Added option to make Beaker use a secure cookie. |
| 494 |
* Removed CTRCipher as pycryptopp doesn't need it. |
| 495 |
* Changed AES to use 256 bit. |
| 496 |
* Fixed signing code to use hmac with sha for better signing security. |
| 497 |
* Fixed memcached code to use delete_multi on clearing the keys for efficiency |
| 498 |
and updated key retrieval to properly store and retrieve None values. |
| 499 |
* Removing cookie.py and signed cookie middleware, as the environ_key option |
| 500 |
for session middleware provides a close enough setting. |
| 501 |
* Added option to use just cookie-based sessions without requiring |
| 502 |
encryption. |
| 503 |
* Switched encryption requirement from PyCrypto to pycryptopp which uses a |
| 504 |
proper AES in Counter Mode. |
| 505 |
|
| 506 |
|
| 507 |
Release 0.9.1 (2/4/2008) |
| 508 |
======================== |
| 509 |
|
| 510 |
* Fixed bug in middleware using module that wasn't imported. |
| 511 |
|
| 512 |
|
| 513 |
Release 0.9 (12/17/07) |
| 514 |
====================== |
| 515 |
|
| 516 |
* Fixed bug in memcached replace to actually replace spaces properly. |
| 517 |
* Fixed md5 cookie signature to use SHA-1 when available. |
| 518 |
* Updated cookie-based session storage to use 256-bit AES-CTR mode with a |
| 519 |
SHA-1 HMAC signature. Now requires PyCrypto to use for AES scheme. |
| 520 |
* WARNING: Moved session and cache middleware to middleware, as per the old |
| 521 |
deprecation warnings had said was going to happen for 0.8. |
| 522 |
* Added cookie-only session storage with RC4 ciphered encryption, requires |
| 523 |
Python 2.4. |
| 524 |
* Add the ability to specify the cookie's domain for sessions. |
| 525 |
|
| 526 |
|
| 527 |
Release 0.8.1 (11/15/07) |
| 528 |
======================== |
| 529 |
|
| 530 |
* Fixed bug in database.py not properly handling missing sqlalchemy library. |
| 531 |
|
| 532 |
|
| 533 |
Release 0.8 (10/17/07) |
| 534 |
====================== |
| 535 |
|
| 536 |
* Fixed bug in prior db update causing session to occasionally not be written |
| 537 |
back to the db. |
| 538 |
* Fixed memcached key error with keys containing spaces. Thanks Jim Musil. |
| 539 |
* WARNING: Major change to ext:database to use a single row per namespace. |
| 540 |
Additionally, there's an accessed and created column present to support |
| 541 |
easier deletion of old cache/session data. You *will* need to drop any |
| 542 |
existing tables being used by the ext:database backend. |
| 543 |
* Streamline ext:database backend to avoid unnecessary database selects for |
| 544 |
repeat data. |
| 545 |
* Added SQLAlchemy 0.4 support to ext:database backend. |
| 546 |
|
| 547 |
|
| 548 |
Release 0.7.5 (08/18/07) |
| 549 |
======================== |
| 550 |
|
| 551 |
* Fixed data_dir parsing for session string coercions, no longer picks up None |
| 552 |
as a data_dir. |
| 553 |
* Fixed session.get_by_id to lookup recently saved sessions properly, also |
| 554 |
updates session with creation/access time upon save. |
| 555 |
* Add unit tests for get_by_id function. Updated get_by_id to not result in |
| 556 |
additional session files. |
| 557 |
* Added session.get_by_id function to retrieve a session of the given id. |
| 558 |
|
| 559 |
|
| 560 |
Release 0.7.4 (07/09/07) |
| 561 |
======================== |
| 562 |
|
| 563 |
* Fixed issue with Beaker not properly handling arguments as Pylons may pass |
| 564 |
them in. |
| 565 |
* Fixed unit test to catch file removal exception. |
| 566 |
* Fixed another bug in synchronization, this one involving reentrant |
| 567 |
conditions with file synchronization |
| 568 |
* If a file open fails due to pickling errors, locks just opened |
| 569 |
are released unconditionally |
| 570 |
|
| 571 |
|
| 572 |
Release 0.7.3 (06/08/07) |
| 573 |
======================== |
| 574 |
|
| 575 |
* Beaker was not properly parsing input options to session middleware. Thanks |
| 576 |
to Yannick Gingras and Timothy S for spotting the issue. |
| 577 |
* Changed session to only send the cookie header if its a new session and |
| 578 |
save() was called. Also only creates the session file under these |
| 579 |
conditions. |
| 580 |
|
| 581 |
|
| 582 |
Release 0.7.2 (05/19/07) |
| 583 |
======================== |
| 584 |
|
| 585 |
* Added deprecation warning for middleware move, relocated middleware to cache |
| 586 |
and session modules for backwards compatibility. |
| 587 |
|
| 588 |
|
| 589 |
Release 0.7.1 05/18/07) |
| 590 |
======================= |
| 591 |
|
| 592 |
* adjusted synchronization logic to account for Mako/new Cache object's |
| 593 |
multithreaded usage of Container. |
| 594 |
|
| 595 |
|
| 596 |
Release 0.7 (05/18/07) |
| 597 |
====================== |
| 598 |
|
| 599 |
* WARNING: Cleaned up Cache object based on Mako cache object, this changes |
| 600 |
the call interface slightly for creating a Cache object directly. The |
| 601 |
middleware cache object is unaffected from an end-user view. This change |
| 602 |
also avoids duplicate creations of Cache objects. |
| 603 |
* Adding database backend and unit tests. |
| 604 |
* Added memcached test, fixed memcached namespace arg passing. |
| 605 |
* Fixed session and cache tests, still failing syncdict test. Added doctests |
| 606 |
for Cache and Session middleware. |
| 607 |
* Cleanup of container/cache/container_test |
| 608 |
* Namespaces no longer require a context, removed NamespaceContext? |
| 609 |
* Logging in container.py uses logging module |
| 610 |
* Cleanup of argument passing, use name **kwargs** instead of **params** for |
| 611 |
generic kwargs |
| 612 |
* Container classes contain a static create_namespace() method, namespaces are |
| 613 |
accessed from the ContainerContext? via string name + container class alone |
| 614 |
* Implemented (but not yet tested) clear() method on Cache, locates all |
| 615 |
Namespaces used thus far and clears each one based on its keys() collection |
| 616 |
* Fixed Cache.clear() method to actually clear the Cache namespace. |
| 617 |
* Updated memcached backend to split servers on ';' for multiple memcached |
| 618 |
backends. |
| 619 |
* Merging MyghtyUtils code into Beaker. |
| 620 |
|
| 621 |
|
| 622 |
Release 0.6.3 (03/18/2007) |
| 623 |
========================== |
| 624 |
|
| 625 |
* Added api with customized Session that doesn't require a Myghty request |
| 626 |
object, just a dict. Updated session to use the new version. |
| 627 |
* Removing unicode keys as some dbm backends can't handle unicode keys. |
| 628 |
* Adding core files that should've been here. |
| 629 |
* More stringent checking for existence of a session. |
| 630 |
* Avoid recreating the session object when it's empty. |