Coder Social home page Coder Social logo

mischa78 / boxroom Goto Github PK

View Code? Open in Web Editor NEW
319.0 20.0 103.0 746 KB

Boxroom is a Rails application that aims to be a simple interface for managing and sharing files in a web browser. It lets users create folders and upload, download and share files. Admins can manage users, groups and permissions.

Home Page: http://boxroomapp.com/

License: MIT License

Ruby 64.53% CoffeeScript 2.00% HTML 29.66% SCSS 3.82%

boxroom's People

Contributors

alepore avatar andreas-venturini avatar claudiocebpaz avatar demental avatar john-coding avatar kaleworsley avatar marcontwm avatar marcosantoniocaro avatar milgner avatar mischa78 avatar patfrat avatar rhalff avatar yardboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

boxroom's Issues

Can't mass-assign protected attributes: group_ids

I just downloaded and installed the master branch of boxroom and everything runs fine except when I try to assign a group to a user. When I create a new group then go to edit the user and check a new group to add then click save, I get the following exception:


Can't mass-assign protected attributes: group_ids
Rails.root: /opt/development/boxroom

Application Trace | Framework Trace | Full Trace
app/controllers/users_controller.rb:31:in `update'
Request

Parameters:

{"commit"=>"Save",
 "authenticity_token"=>"rNQ6kd+x+QKIWvJaLNEUQzXROGT1cVSlrZ34Yzax0YY=",
 "_method"=>"put",
 "utf8"=>"\342\234\223",
 "id"=>"1",
 "user"=>{"name"=>"[email protected]",
 "password_confirmation"=>"[FILTERED]",
 "group_ids"=>["2"],
 "password"=>"[FILTERED]",
 "email"=>"[email protected]"}}
Show session dump

Show env dump

Response

Headers:

None```

turbolinks

just curious.. have you thought at adding rails 4's turbolinks?
seems it's easy and works out of the box in a simple app like this

Shared folders

Hello, It could be great to share more than one file at a time... but a complete folder too.
The link could be pointing to a web page listing all files of the folder.
With links for each files and a global link to download all in a zipped file !

Internal server error

"you must set config.secret_key_base in the app's config."

Any idea how to do this?

shared link sent to emails and to me too, is it normal ?

Hello, i have recently installed and configured boxroom with success and it's a great tool !
Now, i test it and try to understand how it works.
Is it normal that, when i send a file to one or severals emails, i receive the email too ?

Can't See uploaded files.

Hi, I am still new to rails and github

so I hope I ask this correctly. I am using a windows system. Whenever I upload a file the upload is complete but paperclip does not appear to be able to link the file I uploaded which is in my temp folder to the actual file. Consequently it completes with '500' error code. The general gist is as I stated - I am unable to see uploaded files in the folders. They are always empty.. The folder do work fine though. Could you please help me?

no ability to upload files or folders

after a successful install (bundle fine, migration fine, and inital user setup fine)

after starting the app and logging in I get this:

Screenshot

There is no ability to upload and files or folders? Am i missing something.

BTW, no javascript console errors with anything. all assets are there including jQuery file upload.

url routing issue in app/views/shared/_header.html.erb

@ line 6 you have the 'Sign out' link connected to '/signout'... this breaks when boxroom is deployed on our apache server through passenger as a virtual host.

we fixed the bug by replacing '/signout' with 'signout_url'.

User Home Folder

It would be nice if a user could have a folder, without being a member of a group.

If a new user is created, the user should optionally have a home folder.
Maybe the Admin can configure this with a checkbox.

Rails 3.1

Are there any plans to upgrade Boxroom to the new Rails 3.1?

Demo app

Hi,
It's pretty popular repo and I think it's time to think about creating demo app.
I want to try the project in my needs, but before I want to compare it with other solutions. Primarily I need to see look and feel of the app.

What do you think?

User Authentication in Boxroom

Hi - did you roll your own authentication in Boxroom, or are you using a framework? I was expecting something like Devise, etc. but don't see anything like that.

SyntaxError in FilesController#new

I am getting

syntax error, unexpected keyword_end, expecting end-of-input

for line

if current_user.can_read @folder || current_user.can_write @folder

I was able to get it to work by changing it to

if current_user.can_read(@folder) || current_user.can_write(@folder)

Gemfile.lock points to paperclip gem that doesn't exist

Attempting to deploy boxroom (via chef):

INFO: execute[/usr/bin/bundle install --deployment --without development test cucumber staging] sh(/usr/bin/bundle install --deployment --without development test cucumber staging)
Fetching source index for http://rubygems.org/
Could not find paperclip-2.3.13 in any of the sources

The 2.3.13 version appears to be yanked:

$ gem list -r paperclip --all
...
paperclip (2.4.1, 2.4.0, 2.3.16, 2.3.15, 2.3.12, 2.3.11, 2.3.10, 

no wiki?

hey
would be easy to sort out issues if u got a wiki or code explanations(or either for your special logics) ?
thanks

multi-file (bulk) upload

Hi,
is there any way of uploading multiple files at once? Or even better a zip-archive that would be extracted into a folder (after uploading).

cheers, Andreas Happe

boxroom ssl

Hi

What a great app, thanks!

I'm using boxroom on ubuntu with apache ssl and everything is working great but the emails from boxroom for signup/password reset/file sharing have http hyperlinks, how do I make the links https?

Many Thanks
Dan

Upload of 1,5 GByte zip file results in uploaded file being only 1,1 GByte in size

I set up boxroom with dokku on DigitalOcean and uploaded several files for testing purposes. There was no problem w/ upload and subsequent download of files smaller than 1 GByte. However, one zip file (size 1,5 GByte) that was working fine before upload somehow resulted in the uploaded file only being 1,1 GByte in size (the archive was not usable after downloading) despite the upload being successful (100% complete). I tried uploading several times and the result was the same each time.
Nginx was configured to accept files up to 6 GByte.

Has anybody had any similar issues with files exceeding the 1 GByte threshold?

Tagging for files and folders + search

Hiya -

I implemented a tagging feature in my own version of boxroom a couple months ago, along with a search for files/folders on tags. I took the time today to migrate it into a fork of your current branch.

Demo: http://screencast.com/t/RmG3wChW7v6

I used the following when writing this:

Not sure how you feel about additional gems/js libraries.

Would you like a pull request for this feature? I don't have a full battery of tests written, yet, and there are a couple of things to cleanup, but I'll be happy to send it along once I get that done.

JSON::GeneratorError in Admins#new

Showing /home/ubuntu/Documents/deneme/boxroom/app/views/layouts/application.html.erb where line #10 raised:

only generation of JSON objects or arrays allowed
(in /home/ubuntu/Documents/deneme/boxroom/app/assets/javascripts/application.js.coffee)

ty

bundle install fires anti-virus warning

@mischa78
i am getting this error with an anti-virus warning Win32:Evo-gen [susp]

>bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)
Installing i18n (0.6.5)
Using minitest (4.7.5)
Installing multi_json (1.8.2)
Installing atomic (1.1.14)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

    C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile

make
generating atomic_reference-i386-mingw32.def
compiling atomic_reference.c
atomic_reference.c: In function 'ir_compare_and_set':
atomic_reference.c:75:2: error: #error No CAS operation available for this platf
orm
make: *** [atomic_reference.o] Error 1


Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/atomic-1.1.14 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/atomic-1.
1.14/ext/gem_make.out
An error occurred while installing atomic (1.1.14), and Bundler cannot continue.

Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling.

i also tried gem install atomic -v '1.1.14' separately and got the same warning.

this was in the anti-virus log file

C:\RailsInstaller\Ruby1.9.3\lib\ruby\gems\1.9.1\gems\atomic-1.1.14\ext\conftest.exe [L] Win32:Evo-gen [Susp] (0)

Optionally turning off link sharing

Would it be possible to turn off anonymous link sharing (through the share button), perhaps as a global option? Or maybe as part of the folder permissions?

Here is my use case: my company occasionally needs to send information to 3rd-party vendors which may include sensitive data (such as SSNs). Boxroom + SSL would ideally suit our needs: our company's staff would each have logins and be part of one group, and our vendors would each have a separate group and folder (with permissions), and their designated staff would also be given logins. If we could turn off link sharing, we'd be able to force logins (and therefore apply permissions) for anyone seeking to download files.

Filetype Icons not displaying properly

All files are shown with an apparently default "file.png" instead of the actual file type icons found in app/assets/images/fileicons/

I am currently using ruby 1.8.7 and rails 3.1

Any interest in having this turned into an engine?

@mischa78 do you have any interest in having boxroom turned into an engine + a rails app that includes the engine? This would allow people to mount the app in their own rails apps easily. I have a fair bit of experience doing this. One of the first requirements along these lines would be to namespace everything.

I'm likely to use this project in the short term, and just hack together auth that works across it and my parent app, but if we end up using it in the project I'd have some interest in assisting to turn this into an engine (that hosted the boxroom app itself) and a demo app (that mounted boxroom engine, and would essentially serve the same purpose as this current repo).

Just curious if it interests you, and this seemed a decent place to ask. Thanks for your time.

-Josh Adams

Repository has no LICENSE.

What license is Boxroom published under? There is no mention of any license in the README, nor is there a top-level LICENSE file in the repository.

Further, there's no copyright information anywhere in the source.

Downloaded file always 0 bytes

Just installed Boxroom, running on Apache 2, Passenger, Ruby Enterprise Edition.
Everything seems to work fine but downloaded files always have 0 bytes. At first I though that my first file was maybe too large (around 95MB), so I tried a simple CSV with a few kb that I had lying around, but that didn't work either.
The log says

Sent file #{Rails.root}/uploads/production/2/original/2 (0.1ms)
Completed 200 OK in 2ms

So no help there. The files in the uploads/production directory have the correct size.
Any ideas?

btw: I'd be willing to contribute a german translation in case you're interested.

To get it work with mysql on production environment

I have installed boxroom via git and set it in production environment on a linux server.
I have had to add some gem rows to the Gemfile to get it works with mysql2
I have modified config/database.yml to suite my needs too with my mysql database

gem 'mysql2'
gem 'execjs'
gem 'therubyracer'

then : bundle (to install new gems)

And also precompiled assets :
RAILS_ENV=production bundle exec rake assets:precompile

My env : Ruby 1.9.3, Rails 3.2.13
It works !

Test errors after switching to MySQL

Hiya

Cloned the repo, bundle installed and ran tests - all passed. Then I made the following changes:

  1. In Gemfile, removed sqlite3 gem, added mysql2 gem
  2. In database.yml, configured for mysql

Bundle installed again, ran all tests - 10 errors, as shown below. I started to look at a couple. I understand how to fix #4, but these "RecordInivalid expected" and "name already taken" errors have me stumped.

Do you have any idea why simply changing db's would cause these file folder errors?

Run options: --seed 30727

# Running:

...............F..F....F..........E....F...F.....E........E....EE....

Finished in 4.411355s, 15.6415 runs/s, 55.9919 assertions/s.

  1) Failure:
FolderTest#test_copy_a_folder [/home/cayce/workspace/boxroom/test/unit/folder_test.rb:127]:
ActiveRecord::RecordInvalid expected but nothing was raised.


  2) Failure:
FolderTest#test_move_a_folder [/home/cayce/workspace/boxroom/test/unit/folder_test.rb:158]:
--- expected
+++ actual
@@ -1 +1 @@
-#<Folder id: 142, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:28", updated_at: "2014-05-06 01:10:28">
+#<Folder id: 127, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:27", updated_at: "2014-05-06 01:10:27">



  3) Failure:
FolderTest#test_whether_a_folder_has_children_or_not [/home/cayce/workspace/boxroom/test/unit/folder_test.rb:184]:
--- expected
+++ actual
@@ -1 +1 @@
-#<Folder id: 153, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:28", updated_at: "2014-05-06 01:10:28">
+#<Folder id: 127, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:27", updated_at: "2014-05-06 01:10:27">



  4) Error:
ShareLinkTest#test_emails_is_not_longer_than_256_characters:
ActiveRecord::StatementInvalid: Mysql2::Error: Data too long for column 'emails' at row 1: UPDATE `share_links` SET `emails` = '[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]', `link_token` = '96ef2551102ac909797d', `updated_at` = '2014-05-06 01:10:28' WHERE `share_links`.`id` = 26
    test/unit/share_link_test.rb:17:in `block in <class:ShareLinkTest>'


  5) Failure:
UserFileTest#test_attachment_file_name_is_unique [/home/cayce/workspace/boxroom/test/unit/user_file_test.rb:55]:
Failed assertion, no message given.


  6) Failure:
UserFileTest#test_copy_a_file [/home/cayce/workspace/boxroom/test/unit/user_file_test.rb:85]:
ActiveRecord::RecordInvalid expected but nothing was raised.


  7) Error:
UserTest#test_cannot_delete_admin_user:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
    app/models/user.rb:105:in `create_root_folder_and_admins_group'
    test/unit/user_test.rb:88:in `block in <class:UserTest>'


  8) Error:
UserTest#test_password_is_valid:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
    app/models/user.rb:105:in `create_root_folder_and_admins_group'
    test/unit/user_test.rb:10:in `block in <class:UserTest>'


  9) Error:
UserTest#test_user_permissions:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
    app/models/user.rb:105:in `create_root_folder_and_admins_group'
    test/unit/user_test.rb:96:in `block in <class:UserTest>'


 10) Error:
UserTest#test_whether_a_user_is_member_of_admins_or_not:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
    app/models/user.rb:105:in `create_root_folder_and_admins_group'
    test/unit/user_test.rb:167:in `block in <class:UserTest>'

69 runs, 247 assertions, 5 failures, 5 errors, 0 skips

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.