sehmaschine/django-filebrowser — Issue #75: Filebrowser uploads error constant
Author: stateempire
Created: 2012-02-05 12:39:00+00:00
State: open

Hey there, I hate logging this as an issue as it may in fact be me, but having worked on this for a week now, installing/uninstalling everything to no avail ... Any help would be amazing. I'm receiving the below 6 FAILS using:

Python 2.6.5
Django 1.3.1
Grappelli 2.3.5
filebrowser 3.4.1

MEDIA_ROOT = "/srv/django/client_dir/assets/" - (Set to CHMOD 777 including all underneath)
MEDIA_URL = "/assets/"
STATIC_URL = "/static/"
STATIC_ROOT = "/srv/django/static/"

Thanks again,
Hope all is well ...

Errors:

Creating Test for the FileBrowser site: filebrowser
Creating test database for alias 'default'...
FFFFFF.........../usr/lib/python2.6/site-packages/django/core/context_processors.py:27: DeprecationWarning: The context processor at `django.core.context_processors.auth` is deprecated; use the path `django.contrib.auth.context_processors.auth` instead.
DeprecationWarning
.
======================================================================
FAIL: test_posix_paths (filebrowser.tests.base.FileObjectPathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/filebrowser/tests/base.py", line 58, in test_posix_paths
self.assertEqual(f.url, '/media/uploads/testdir/testfile.jpg')
AssertionError: '/assets/uploads/testdir/testfile.jpg' != '/media/uploads/testdir/testfile.jpg'

======================================================================
FAIL: test_windows_paths (filebrowser.tests.base.FileObjectPathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/filebrowser/tests/base.py", line 43, in test_windows_paths
self.assertEqual(f.url, '/media/uploads/testdir/testfile.jpg')
AssertionError: '/assets/uploads/testdir/testfile.jpg' != '/media/uploads/testdir/testfile.jpg'

======================================================================
FAIL: test_posix_paths (filebrowser.tests.base.FileObjectUnicodeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/filebrowser/tests/base.py", line 109, in test_posix_paths
self.assertEqual(f.url, filepath_to_uri('/media/uploads/$%^&*/測試文件.jpg'))
AssertionError: '/assets/uploads/%24%25%5E%26*/%E6%B8%AC%E8%A9%A6%E6%96%87%E4%BB%B6.jpg' != '/media/uploads/%24%25%5E%26*/%E6%B8%AC%E8%A9%A6%E6%96%87%E4%BB%B6.jpg'

======================================================================
FAIL: test_windows_paths (filebrowser.tests.base.FileObjectUnicodeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/filebrowser/tests/base.py", line 93, in test_windows_paths
self.assertEqual(f.url, filepath_to_uri('/media/uploads/$%^&*/測試文件.jpg'))
AssertionError: '/assets/uploads/%24%25%5E%26*/%E6%B8%AC%E8%A9%A6%E6%96%87%E4%BB%B6.jpg' != '/media/uploads/%24%25%5E%26*/%E6%B8%AC%E8%A9%A6%E6%96%87%E4%BB%B6.jpg'

======================================================================
FAIL: test_posix_paths (filebrowser.tests.base.FileObjectVersionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/filebrowser/tests/base.py", line 158, in test_posix_paths
self.assertEqual(f.url, '/media/uploads/testdir/testfile.jpg')
AssertionError: '/assets/uploads/testdir/testfile.jpg' != '/media/uploads/testdir/testfile.jpg'

======================================================================
FAIL: test_windows_paths (filebrowser.tests.base.FileObjectVersionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/filebrowser/tests/base.py", line 143, in test_windows_paths
self.assertEqual(f.url, '/media/uploads/testdir/testfile.jpg')
AssertionError: '/assets/uploads/testdir/testfile.jpg' != '/media/uploads/testdir/testfile.jpg'

----------------------------------------------------------------------
Ran 18 tests in 7.172s

FAILED (failures=6)
Destroying test database for alias 'default'...