Giter Club home page Giter Club logo

django-ckeditor-filemanager's People

Watchers

 avatar

django-ckeditor-filemanager's Issues

More stand-alone connector

Hi,
This is not a bug report per se.

I've just implemented Core Five Labs' FileManager, using your Django
connector. I found several issues:
- One issue was with the FileManager itself. It's that you had to change
their main JavaScript file to plug in the URLs for your connector. I wonder
if this issue can be fixed upstream, in Core Five Labs' FileManager.
- In your urls.py for the connector, you reference 'vendor.filemanager...'.
I wonder if there is a more robust way. Like referencing 'filemanager...'
without the 'vendor' part, which means that the 'filemanager' folder has to
be on the python path.
- In the dirlist view, you're using the print statement but apparently
mod_wsgi (which is the preferred deployment solution for Django according
to the docs) doesn't allow this.
- The list of folder names to ignore is hardcoded. Could be an option.
What's more, it could be a list of patterns rather than full names. I've
seen this used by other apps, it's probably not hard to do.
- Quite a few things could be options, and options could be in a
settings.py file for this app, which would try to pull values from
django.conf.settings before using a default. There's a pattern to do that
with Django.
- In filemanager/views.py, you're importing "settings" directly, instead of
using "from django.conf import settings".
- If i'm not mistaken, any user going to the filemanager/index.html public
file can then see files, delete them, and upload new files. Sounds like a
big security breach. My solution for now was to use the @user_passes_test
decorator for the dirlist and handler views, checking that the file manager
was called by a logged in user.

I've tweaked my way through these issues. I don't have time right now but
i'll try to show my changes or contribute patches if you're interested. The
goal would be to offer a stand-alone connector Django application, with
installation instructions.

Original issue reported on code.google.com by fverschelde on 7 Mar 2010 at 10:45

not a bug, some features/patches for consideration

I took the existing code and added a few features that I needed - not sure
if they are all worth integrating, but I thought I'd throw them out there.

#1. removed "vendor" pathing so that the app could function with an "apps"
or any other kind of directory using python path.
#2. added user directory based sandboxing, superusers are not limited.
#3. added ckeditor direct uploading handling.
#4. added some path checking to prevent "../../../" type hacking.
#5. forked out a settings file.
#6. changed download to read binary so the images are not transferred as ascii.

The updates are attached. 

Thanks.
Ben

Original issue reported on code.google.com by [email protected] on 16 Apr 2010 at 2:05

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.