"Error uploading file." for 7z/zip/rar archives as samples

11 views
Skip to first unread message

Adam Jones

unread,
Sep 12, 2017, 2:06:18 PM9/12/17
to crits-users
I'm receiving nothing but a "Error uploading file." messages when trying to upload zip/7z/rar archives as samples through the web interface, submitting raw files works fine. Based on what i could find in this group and on github, i've tried different versions of python-magic, etc. The error i see does not seem to match others. I do not see anything in the crits/apache logs nor at the console and this happens on multiple servers (test and prod).

Specifically when i trace through chrome's dev tools i see the following:

AttributeError at /samples/upload/

'str' object has no attribute 'get'
Request Method:POST
Request URL:http://10.1.5.5:8080/samples/upload/
Django Version:1.8.16
Exception Type:AttributeError
Exception Value:
'str' object has no attribute 'get'
Exception Location:/home/forensics/crits/crits/samples/views.py in upload_file, line 294
Python Executable:/usr/bin/python
Python Version:2.7.6
Python Path:
[u'/home/forensics/crits_services',
 '/home/forensics/crits/crits',
 '/home/forensics/crits',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/local/lib/python2.7/dist-packages/pyimpfuzzy-0.1-py2.7-linux-x86_64.egg',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
Server time:Tue, 12 Sep 2017 11:06:33 -0400



running 7z from the commandline on the crits server host works fine and the paths are set correctly in the control panel.

thanks in advance for any assistance!


-- adam

Reply all
Reply to author
Forward
0 new messages