swift staticweb: traceback when listing files with accents
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
gholt |
Bug Description
Swift version: 1.4.4
I have a container configured with staticweb as:
- swift ... post -r '.r:*' web
- swift ... post -m 'web-listings: true' web
- swift ... post -m 'web-index: index.html' web
The container contains no index.html, so it tries to do web listing.
If the container contains a file with accents such as "thé.txt", it gives me a traceback:
---
Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/lib/
return self.app(env, start_response)
File "/usr/lib/
return self.app(env, start_response)
File "/usr/lib/
return self.app(env, start_response)
File "/usr/lib/
return self._handle_
File "/usr/lib/
return self._listing(env, start_response)
File "/usr/lib/
quote(name), cgi.escape(name),
File "/usr/lib/
res = map(safe_
KeyError: u'\xe9'
---
Changed in swift: | |
status: | In Progress → Fix Committed |
Changed in swift: | |
milestone: | none → 1.4.6 |
status: | Fix Committed → Fix Released |
- Configuration: Nginx in frontend with proxy_pass
- Headers: ISO-8859-1 sent by staticweb