Server error when trying to change poster #3227

Closed
opened 2019-08-02 11:37:05 +00:00 by rlx · 0 comments
Owner

(https://0xdb.org/3592704/info)


Traceback (most recent call last):

  File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)

  File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)

  File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)

  File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api
    response = f(request, data)

  File "/srv/pandora/pandora/item/views.py", line 712, in setPoster
    item.remove_poster()

  File "/srv/pandora/pandora/item/models.py", line 1451, in remove_poster
    self.poster.delete()

  File "/srv/pandora/lib/python3.6/site-packages/django/db/models/fields/files.py", line 385, in delete
    super(ImageFieldFile, self).delete(save)

  File "/srv/pandora/lib/python3.6/site-packages/django/db/models/fields/files.py", line 119, in delete
    self.instance.save()

  File "/srv/pandora/pandora/item/models.py", line 435, in save
    self.update_sort()

  File "/srv/pandora/pandora/item/models.py", line 943, in update_sort
    s.public_id = ox.sort_string(str(ox.fromAZ(s.public_id)))

  File "/srv/pandora/src/python-ox/ox/format.py", line 54, in fromAZ
    r = r + (pow(26, exp) * (digits.index(char) + 1))

ValueError: substring not found


<WSGIRequest: POST '/api/'>

(https://0xdb.org/3592704/info) ``` Traceback (most recent call last): File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response response = self._get_response(request) File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response response = self.process_exception_by_middleware(e, request) File "/srv/pandora/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api response = f(request, data) File "/srv/pandora/pandora/item/views.py", line 712, in setPoster item.remove_poster() File "/srv/pandora/pandora/item/models.py", line 1451, in remove_poster self.poster.delete() File "/srv/pandora/lib/python3.6/site-packages/django/db/models/fields/files.py", line 385, in delete super(ImageFieldFile, self).delete(save) File "/srv/pandora/lib/python3.6/site-packages/django/db/models/fields/files.py", line 119, in delete self.instance.save() File "/srv/pandora/pandora/item/models.py", line 435, in save self.update_sort() File "/srv/pandora/pandora/item/models.py", line 943, in update_sort s.public_id = ox.sort_string(str(ox.fromAZ(s.public_id))) File "/srv/pandora/src/python-ox/ox/format.py", line 54, in fromAZ r = r + (pow(26, exp) * (digits.index(char) + 1)) ValueError: substring not found <WSGIRequest: POST '/api/'> ```
j added the
backend
label 2019-08-02 11:37:05 +00:00
j added this to the 14.04 milestone 2019-08-02 11:37:05 +00:00
j self-assigned this 2019-08-02 11:37:05 +00:00
j added the
normal
defect
labels 2019-08-02 11:37:05 +00:00
j added the
fixed
label 2019-08-02 11:40:56 +00:00
j closed this issue 2019-08-02 11:40:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#3227
No description provided.