Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13791 closed (duplicate)

cache.add encodes values as utf-8, cache.set does not

Reported by: jbalogh Owned by: nobody
Component: Core (Cache system) Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

#11012 changed cache.set for the memcached backend to stop forcing value.encode('utf-8'), but cache.add still does encoding. This means you receive a unicode object with cache.set and a str for the same object with cache.add. Attached patch removes encoding from cache.add.

Attachments (1)

add-unicode.patch (1.2 KB) - added by jbalogh 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by jbalogh

comment:1 Changed 5 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

This is already reported in #13686, I believe.

comment:2 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top