Server error when trying to move files (Unicode) #2069

Closed
opened 2014-01-18 11:20:45 +00:00 by rlx · 1 comment
Owner

Blinde Liebe - Gespräch mit Jean-Luc Godard (Alexander Kluge) 2001

should be 1552982 ... now the original item is orphaned, and views that need media throw JS errors

Traceback (most recent call last):

  File "/srv/oxdb/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/srv/oxdb/src/python-ox/ox/django/api/views.py", line 38, in api
    response = f(request)

  File "/srv/oxdb/src/python-ox/ox/django/decorators.py", line 18, in _wrapped_view
    return function(request, *args, **kwargs)

  File "/srv/oxdb/pandora/archive/views.py", line 371, in moveMedia
    i = get_item({'imdbId': data['itemId']}, user=request.user)

  File "/srv/oxdb/pandora/item/models.py", line 107, in get_item
    item.update_external()

  File "/srv/oxdb/pandora/item/models.py", line 294, in update_external
    p = self.save()

  File "/srv/oxdb/pandora/item/models.py", line 361, in save
    q[0].merge_with(self, save=False)

  File "/srv/oxdb/pandora/item/models.py", line 436, in merge_with
    self.delete()

  File "/srv/oxdb/pandora/item/models.py", line 417, in delete
    self.delete_files()

  File "/srv/oxdb/pandora/item/models.py", line 414, in delete_files
    shutil.rmtree(path)

  File "/usr/lib/python2.7/shutil.py", line 245, in rmtree
    rmtree(fullname, ignore_errors, onerror)

  File "/usr/lib/python2.7/shutil.py", line 239, in rmtree
    fullname = os.path.join(path, name)

  File "/srv/oxdb/lib/python2.7/posixpath.py", line 71, in join
    path += '/' + b

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)
Blinde Liebe - Gespräch mit Jean-Luc Godard (Alexander Kluge) 2001 should be 1552982 ... now the original item is orphaned, and views that need media throw JS errors ``` Traceback (most recent call last): File "/srv/oxdb/src/django/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/srv/oxdb/src/python-ox/ox/django/api/views.py", line 38, in api response = f(request) File "/srv/oxdb/src/python-ox/ox/django/decorators.py", line 18, in _wrapped_view return function(request, *args, **kwargs) File "/srv/oxdb/pandora/archive/views.py", line 371, in moveMedia i = get_item({'imdbId': data['itemId']}, user=request.user) File "/srv/oxdb/pandora/item/models.py", line 107, in get_item item.update_external() File "/srv/oxdb/pandora/item/models.py", line 294, in update_external p = self.save() File "/srv/oxdb/pandora/item/models.py", line 361, in save q[0].merge_with(self, save=False) File "/srv/oxdb/pandora/item/models.py", line 436, in merge_with self.delete() File "/srv/oxdb/pandora/item/models.py", line 417, in delete self.delete_files() File "/srv/oxdb/pandora/item/models.py", line 414, in delete_files shutil.rmtree(path) File "/usr/lib/python2.7/shutil.py", line 245, in rmtree rmtree(fullname, ignore_errors, onerror) File "/usr/lib/python2.7/shutil.py", line 239, in rmtree fullname = os.path.join(path, name) File "/srv/oxdb/lib/python2.7/posixpath.py", line 71, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128) ```
rlx added the
backend
label 2014-01-18 11:20:45 +00:00
rlx added this to the 13.04 milestone 2014-01-18 11:20:45 +00:00
j was assigned by rlx 2014-01-18 11:20:45 +00:00
rlx added the
major
defect
labels 2014-01-18 11:20:45 +00:00
Owner

In []changeset:pandora,3880:

#!CommitTicketReference repository="" revision="pandora,3880"
unicode path issues, fixes #2069
In []changeset:pandora,3880: ``` #!CommitTicketReference repository="" revision="pandora,3880" unicode path issues, fixes #2069 ```
j added the
fixed
label 2014-01-18 11:23:05 +00:00
j closed this issue 2014-01-18 11:23:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2069
No description provided.