Skip to content
This repository was archived by the owner on Sep 23, 2020. It is now read-only.
This repository was archived by the owner on Sep 23, 2020. It is now read-only.

Cumulus is not handling internation file names correctly #97

@buzztroll

Description

@buzztroll

When adding an object to Cumulus with a chinese file name the following error occurs:

Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/pycb/cumulus.py", line 172, in process_event
self.allowed_event(request, user, requestId, rPath)
File "build/bdist.linux-x86_64/egg/pycb/cumulus.py", line 186, in allowed_event
cbR.work()
File "build/bdist.linux-x86_64/egg/pycb/cbRequest.py", line 576, in work
exists = self.user.exists(self.bucketName, self.objectName)
File "build/bdist.linux-x86_64/egg/pycb/cbAuthzSecurity.py", line 164, in exists
file = self.get_file_obj(bucketName, objectName)
File "build/bdist.linux-x86_64/egg/pycb/cbAuthzSecurity.py", line 67, in get_file_obj
file = File.get_file(self.db_obj, objectName, pynimbusauthz.object_type_s3, file)
File "build/bdist.linux-x86_64/egg/pynimbusauthz/objects.py", line 143, in get_file
row = db_obj._run_fetch_one(s, data)
File "build/bdist.linux-x86_64/egg/pynimbusauthz/db.py", line 82, in _run_fetch_one
c.execute(s, data)
ProgrammingError:You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode string."

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions