tickets: 19221
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19221 | 2012-10-31 22:50:42 | 2020-04-16 16:59:51 | 2022-03-06 04:10:43.624604 | Accepted | assigned | Core (Cache system) | Bug | Normal | dev | Check that cache keys are string | In current master cache keys can't be integers whilst they can in 1.4. Attempts to do this result in: {{{ File "/home/ismdj/src/django/django/core/cache/backends/dummy.py", line 15, in get key = self.make_key(key, version=version) File "/home/ismdj/src/django/django/core/cache/backends/base.py", line 80, in make_key new_key = self.key_func(key, self.key_prefix, version) File "/home/ismdj/src/django/django/core/cache/backends/base.py", line 26, in default_key_func return ':'.join([key_prefix, str(version), key]) TypeError: sequence item 2: expected string or Unicode, int found }}} The issue seems to have been introduced with this commit: https://github.com/django/django/commit/45baaabafb6cf911afad9ec63c86753b284f7269 | etos | mhsparks | 0 | 0 | 0 | 0 | 0 | 0 |