Code Monkey home page Code Monkey logo

ep_user_pad's Introduction

ep_user_pad

User-Management System for etherpad-lite

This is the admin tool for the ep_user_pad_frontend plugin for etherpad-lite. Please look at installation.pdf for further installation informations.

The frontend plugin for the user-management system can be found at

https://github.com/aoberegg/ep_user_pad_frontend/

IMPORTANT NOTE: currently not maintained

This plugin is currently NOT maintained (apart from smaller bug fixes)! Nevertheless: You are welcome to use the plugin. If you find bugs it would be nice if you can provide pull requests.

Known alternatives to this plugin:

ep_user_pad's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ep_user_pad's Issues

Problem with pwd mail

I set up a Etherpad-Lite instance on Ubuntu 14.04LTS. Plugins are user_pad & user_pad_frontend.

I don't get any registration mails...what is the hint?

Greetings,

Flo

Lots of crashes...

Hi !
I was testing some stuff and plugins on EtherPad (ep_user_pad & ep_user_pad_frontend) and I noticed that EtherPad was crashing a lot of time. At first I tought it was an issue due to mysql utf8 (and not utf8mb4) but it is still crashing after changing the charset as explain in Etherpad's issue #2522 (ether/etherpad-lite#2522).
So, here is my log, and I have no idea what can cause that kind of shutdown...

[2015-07-06 16:30:57.346] [INFO] ueberDB - Flushed 1 values
[2015-07-06 16:31:01.231] [ERROR] console - Error: Connection lost: The server closed the connection.
    at Protocol.end (/home/antoine/Bureau/test_ep_etherpad/etherpad-lite/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Protocol.js:73:13)
    at Socket.onend (_stream_readable.js:505:10)
    at Socket.g (events.js:199:16)
    at Socket.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickDomainCallback (node.js:381:11)
[2015-07-06 16:31:01.231] [INFO] console - graceful shutdown...
[2015-07-06 16:31:01.233] [ERROR] console - Error: Connection lost: The server closed the connection.
    at Protocol.end (/home/antoine/Bureau/test_ep_etherpad/etherpad-lite/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Protocol.js:73:13)
    at Socket.onend (_stream_readable.js:505:10)
    at Socket.g (events.js:199:16)
    at Socket.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickDomainCallback (node.js:381:11)
[2015-07-06 16:31:01.305] [INFO] console - db sucessfully closed.

mongoDB compatibility

Hi,
I use etherpad in openshift with mongoDB.
Is possible to use ep_user_pad with mongo instead of mysql?
If yes, how?
thanx

Adding users/groups fails

When trying to add a new group or user, nothing happens. I have the following errors on my JavaScript console:

 ace2_common.js?callback=require.define:12950    Failed to load 'ep_user_pad_frontend/static/js/client/user_pad_frontend.js:documentReady' for 'ep_user_pad_frontend/ep_user_pad_frontend/client_hooks/documentReady': Error: The module at "ep_user_pad_frontend/static/js/client/user_pad_frontend.js" does not exist.
    ace2_common.js?callback=require.define:12950     (anonymous function)
    ace2_common.js?callback=require.define:11159     _.each._.forEach
    ace2_common.js?callback=require.define:12173     _.(anonymous function)
    ace2_common.js?callback=require.define:12931     (anonymous function)
    ace2_common.js?callback=require.define:11159     _.each._.forEach
    ace2_common.js?callback=require.define:12928     extractHooks
    ace2_common.js?callback=require.define:12855     (anonymous function)
    ace2_common.js?callback=require.define:1377     fire
    ace2_common.js?callback=require.define:1488     self.fireWith
    ace2_common.js?callback=require.define:8414     done
    ace2_common.js?callback=require.define:8938     callback
ace2_common.js?callback=require.define:12950     Failed to load 'ep_user_pad/static/js/admin/user_pad_admin.js:documentReady' for 'ep_user_pad/ep_user_pad/client_hooks/documentReady': Error: The module at "ep_user_pad/static/js/admin/user_pad_admin.js" does not exist.
    ace2_common.js?callback=require.define:12950     (anonymous function)
    ace2_common.js?callback=require.define:11159     _.each._.forEach
    ace2_common.js?callback=require.define:12173     _.(anonymous function)
    ace2_common.js?callback=require.define:12931     (anonymous function)
    ace2_common.js?callback=require.define:11159     _.each._.forEach
    ace2_common.js?callback=require.define:12928     extractHooks
    ace2_common.js?callback=require.define:12855     (anonymous function)
    ace2_common.js?callback=require.define:1377     fire
    ace2_common.js?callback=require.define:1488     self.fireWith
    ace2_common.js?callback=require.define:8414     done
    ace2_common.js?callback=require.define:8938     callback 

multiple owners

add the ability to have multiple owners of a group would be a very useful feature

ReferenceError: require is not defined

hello,

I am working with the following plugins on the etherpad: 'ep_user_pad' and 'ep_user_pad_frontend'.
Now, visiting https:/myExample.com/admin/userpadadmin/, brings me to the above mentioned error.

erro_screen

Any Clue?

ep_user_pad crashes every 8 hours

Every 8 hours precisely, this plugin crashes and crashes etherpad.

[ERROR] console - Error: Connection lost: The server closed the connection.
    at Protocol.end (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Protocol.js:73:13)
    at Socket.onend (stream.js:66:10)
    at Socket.EventEmitter.emit (events.js:123:20)
    at TCP.onread (net.js:417:51)

I thought at the beginning that was server related, like a cron doing something ep_user_pad didn't like, but no.

When I stop etherpad and restart it, the plugin crashes again every 8 hours, but at differents times.

If I remove ep_user_pad (but keep ep_user_pad_frontend), no crashes happen.

Do you have any idea what can cause this? Like a timer to clean something every x hours?

user_pad crashes when creating new user

When I create a new user on my home page at www.editopia.com etherpad crashes as follows:

[2014-07-07 10:29:52.493] [ERROR] console - ep_user_pad_frontend: existValueInDatabase error, sql: SELECT * from User where User.name = ?
[2014-07-07 10:29:52.533] [ERROR] console - Error: Cannot find module 'encoding'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/etherpad/etherpad-lite/node_modules/ep_user_pad_frontend/node_modules/nodemailer/node_modules/mailcomposer/node_modules/mimelib/lib/mimelib.js:3:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[2014-07-07 10:29:52.533] [INFO] console - graceful shutdown...
[2014-07-07 10:29:52.534] [INFO] console - db sucessfully closed.

I dont see notes on editing the database anywhere ? I am using a mysql database and free pads work fine..

http://editopia.com/public_pad/testpad

also how do i install module encoding ?

also..

How can I support this project ? looking to launch a proper etherpad driven site at editopia here...

thanks!

Etherpad crashes when managing users & groups

Wonderful plugin you're doing. Thanks.

I had few problems while testing it:

  • Via the admin page, when I create an user, my etherpad crashes
[2014-04-08 00:46:42.466] [ERROR] console - ReferenceError: encryptPassword is not defined
    at exports.socketio.io.on.socket.on.sqlUpdate (/home/etherpad/node_modules/ep_user_pad/hooks.js:563:25)
    at createSalt (/home/etherpad/node_modules/ep_user_pad/hooks.js:101:5)
    at exports.socketio.io.on.socket.on.sqlUpdate (/home/etherpad/node_modules/ep_user_pad/hooks.js:562:21)
    at Query._callback (/home/etherpad/node_modules/ep_user_pad/hooks.js:323:13)
    at Query.Sequence.end (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/sequences/Sequence.js:75:24)
    at Query._handleFinalResultPacket (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/sequences/Query.js:143:8)
    at Query.EofPacket (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/sequences/Query.js:127:8)
    at Protocol._parsePacket (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Protocol.js:172:24)
    at Parser.write (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Parser.js:62:12)
    at Protocol.write (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Protocol.js:37:16)

I resolved that problem by defining the function encryptPassword without the 'settings' before the name.

encryptPassword = function (password, salt, cb) in hooks.js

  • Via the admin page, when I delete a group, my etherpad crashes:
[2014-04-08 02:04:44.972] [INFO] console - (debug) ep_user_pad: mySqlErrorHandler
[2014-04-08 02:04:44.981] [ERROR] console - ReferenceError: fileName is not defined
    at Query.mySqlErrorHandler (/home/etherpad/node_modules/ep_user_pad/hooks.js:61:9)
    at Query.EventEmitter.emit (events.js:123:20)
    at Query.Sequence.end (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/sequences/Sequence.js:70:12)
    at Query.ErrorPacket (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/sequences/Query.js:93:8)
    at Protocol._parsePacket (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Protocol.js:172:24)
    at Parser.write (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Parser.js:62:12)
    at Protocol.write (/home/etherpad/node_modules/ep_user_pad/node_modules/mysql/lib/protocol/Protocol.js:37:16)
    at Socket.ondata (stream.js:38:26)
    at Socket.EventEmitter.emit (events.js:123:20)
    at TCP.onread (net.js:396:14)

I can see that the group is removed from the table "Groups" in the DB.

add sql file to initialize de db

in the install documentation there is some sql code to initialize de project.
Perhaps it is easier if you add it as an sql file:

create table if not exists `GroupPads` ( `groupID` int(11) not null, `PadName` varchar(255) collate utf8_bin not null, primary key (`GroupID`,`PadName`) );
create table if not exists `Groups` ( `groupID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (`groupID`, `name`) );
create table if not exists `NotRegisteredUsersGroups` ( `email` varchar(255) not null, `groupID` int(11) not null);
create table if not exists `User` ( `userID` int(11) not null auto_increment, `name` varchar(255) collate utf8_bin not null default '', `pwd` varchar(255) collate utf8_bin default null, `considered` tinyint(11) default null, `sso` tinyint(4) default null, `FullName` varchar(255) collate utf8_bin default null, `considerationString` varchar(50) collate utf8_bin default null, `salt` varchar(255) collate utf8_bin default null, `active` int(1) default null, primary key (`userID`,`name`) );
create table if not exists `UserGroup` ( `userID` int(11) not null default '0', `groupID` int(11) not null default '0', `Role` int(11) default null, primary key (`userID`, `groupID`) );

Crosspost from: aoberegg/ep_user_pad_frontend#2

Adding users/groups fails

When trying to add a new group or user, nothing happens. I have the following errors on my JavaScript console:

 ace2_common.js?callback=require.define:12950 Failed to load 'ep_user_pad_frontend/static/js/client/user_pad_frontend.js:documentReady' for 'ep_user_pad_frontend/ep_user_pad_frontend/client_hooks/documentReady': Error: The module at "ep_user_pad_frontend/static/js/client/user_pad_frontend.js" does not exist.
    ace2_common.js?callback=require.define:12950
    (anonymous function)
    ace2_common.js?callback=require.define:11159
    _.each._.forEach
    ace2_common.js?callback=require.define:12173
    _.(anonymous function)ace2_common.js?callback=require.define:12931
    (anonymous function) ace2_common.js?callback=require.define:11159
    _.each._.forEach ace2_common.js?callback=require.define:12928
    extractHooks ace2_common.js?callback=require.define:12855
    (anonymous function) ace2_common.js?callback=require.define:1377
    fire ace2_common.js?callback=require.define:1488
    self.fireWith ace2_common.js?callback=require.define:8414
    done ace2_common.js?callback=require.define:8938
    callback ace2_common.js?callback=require.define:12950
Failed to load 'ep_user_pad/static/js/admin/user_pad_admin.js:documentReady' for 'ep_user_pad/ep_user_pad/client_hooks/documentReady': Error: The module at "ep_user_pad/static/js/admin/user_pad_admin.js" does not exist. ace2_common.js?callback=require.define:12950
    (anonymous function) ace2_common.js?callback=require.define:11159
    _.each._.forEach ace2_common.js?callback=require.define:12173
    _.(anonymous function) ace2_common.js?callback=require.define:12931
    (anonymous function) ace2_common.js?callback=require.define:11159
    _.each._.forEach ace2_common.js?callback=require.define:12928
    extractHooks ace2_common.js?callback=require.define:12855
    (anonymous function) ace2_common.js?callback=require.define:1377
    fire ace2_common.js?callback=require.define:1488
    self.fireWith ace2_common.js?callback=require.define:8414
    done ace2_common.js?callback=require.define:8938
    callback 

Etherpad Crashes (Login, or Group Managment)

Hey,

When I log in Etherpad crashes with the following error message:

->
[2014-12-17 10:49:59.192] [ERROR] console - ReferenceError: fileName is not defined
at Query.mySqlErrorHandler (/home/etherpad/etherpad-lite/node_modules/ep_user_pad_frontend/hooks.js:42:9)
at Query.emit (events.js:117:20)
at Query.Sequence.end (/home/etherpad/etherpad-lite/node_modules/ep_user_pad_frontend/node_modules/mysql/lib/protocol/sequences/Sequence.js:70:12)
at Query.ErrorPacket (/home/etherpad/etherpad-lite/node_modules/ep_user_pad_frontend/node_modules/mysql/lib/protocol/sequences/Query.js:93:8)
at Protocol._parsePacket (/home/etherpad/etherpad-lite/node_modules/ep_user_pad_frontend/node_modules/mysql/lib/protocol/Protocol.js:172:24)
at Parser.write (/home/etherpad/etherpad-lite/node_modules/ep_user_pad_frontend/node_modules/mysql/lib/protocol/Parser.js:62:12)
at Protocol.write (/home/etherpad/etherpad-lite/node_modules/ep_user_pad_frontend/node_modules/mysql/lib/protocol/Protocol.js:37:16)
at Socket.ondata (stream.js:51:26)
at Socket.emit (events.js:117:20)
at Socket. (_stream_readable.js:764:14)
<-

Can anyone help me ?

sry for my bad english :)
grettings Lyca

Crash due to login attempt

Hello,

when I try to login to etherpad with the user_pad and user_pad_frontend extension with random credentials, it just crashes:

[2018-01-21 15:14:37.889] [INFO] ueberDB - Flushed 1 values
[2018-01-21 15:14:37.995] [INFO] ueberDB - Flushed 1 values
[2018-01-21 15:14:38.100] [INFO] ueberDB - Flushed 1 values
[2018-01-21 15:14:38.303] [INFO] ueberDB - Flushed 1 values
[2018-01-21 15:14:46.823] [INFO] ueberDB - Flushed 1 values
[2018-01-21 15:14:53.446] [ERROR] console - ep_user_pad_frontend: User or password wrong!
[2018-01-21 15:14:53.458] [ERROR] console - ReferenceError: fileName is not defined
    at Query.mySqlErrorHandler (/home/mpw/gits/etherpad-lite/node_modules/ep_user_pad_frontend/hooks.js:4
2:9)
    at emitOne (events.js:82:20)
    at Query.emit (events.js:169:7)
    at Query.Sequence.end (/home/mpw/gits/etherpad-lite/node_modules/mysql/lib/protocol/sequences/Sequenc
e.js:70:12)
    at Query.ErrorPacket (/home/mpw/gits/etherpad-lite/node_modules/mysql/lib/protocol/sequences/Query.js
:93:8)
    at Protocol._parsePacket (/home/mpw/gits/etherpad-lite/node_modules/mysql/lib/protocol/Protocol.js:17
2:24)
    at Parser.write (/home/mpw/gits/etherpad-lite/node_modules/mysql/lib/protocol/Parser.js:62:12)
    at Protocol.write (/home/mpw/gits/etherpad-lite/node_modules/mysql/lib/protocol/Protocol.js:37:16)
    at Socket.ondata (_stream_readable.js:528:20)
    at emitOne (events.js:82:20)
[2018-01-21 15:14:53.467] [INFO] console - graceful shutdown...
[2018-01-21 15:14:53.469] [INFO] ueberDB - Flushed 1 values
[2018-01-21 15:14:53.573] [INFO] console - db sucessfully closed.

Regards,
Matthias

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.