{"action":"created","issue":{"url":"https://api.github.com/repos/wekan/wekan/issues/473","repository_url":"https://api.github.com/repos/wekan/wekan","labels_url":"https://api.github.com/repos/wekan/wekan/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/wekan/wekan/issues/473/comments","events_url":"https://api.github.com/repos/wekan/wekan/issues/473/events","html_url":"https://github.com/wekan/wekan/issues/473","id":125245222,"number":473,"title":"Bug: infrequent exception during invitation a new user to board via mail - TypeError: Cannot read property 'title' of undefined","user":{"login":"rgoltz","id":16392819,"avatar_url":"https://avatars.githubusercontent.com/u/16392819?v=3","gravatar_id":"","url":"https://api.github.com/users/rgoltz","html_url":"https://github.com/rgoltz","followers_url":"https://api.github.com/users/rgoltz/followers","following_url":"https://api.github.com/users/rgoltz/following{/other_user}","gists_url":"https://api.github.com/users/rgoltz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgoltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgoltz/subscriptions","organizations_url":"https://api.github.com/users/rgoltz/orgs","repos_url":"https://api.github.com/users/rgoltz/repos","events_url":"https://api.github.com/users/rgoltz/events{/privacy}","received_events_url":"https://api.github.com/users/rgoltz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wekan/wekan/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/wekan/wekan/labels/Feature:User-accounts:Invitations","name":"Feature:User-accounts:Invitations","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-01-06T19:32:11Z","updated_at":"2016-07-20T22:56:47Z","closed_at":"2016-07-20T13:42:19Z","body":"Hi,\r\n\r\nI'm using wekan 0.10.1 (mongodb: v2.4.14 / node: v0.10.40). While I'm trying to add a new user -by typing a mail-address- to an existing board, I'm getting frequently:\r\n```\r\nException while invoking method 'inviteUserToBoard' TypeError: Cannot read property 'title' of undefined\r\n    at Object.<anonymous> (models/activities.js:69:27)\r\n    at packages/matb33_collection-hooks/insert.js:35:1\r\n    at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1)\r\n    at Function._.each._.forEach (packages/underscore/underscore.js:105:1)\r\n    at after (packages/matb33_collection-hooks/insert.js:34:1)\r\n    at Object.CollectionHooks.defineAdvice.self (packages/matb33_collection-hooks/insert.js:49:1)\r\n    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks/collection-hooks.js:117:1)\r\n    at [object Object].Mongo.Collection.(anonymous function) (packages/mongo/collection.js:590:1)\r\n    at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core/lib/collection2.js:101:1)\r\n    at Object.Lists.after.update.Activities.insert.userId (models/lists.js:90:16)\r\n    at packages/matb33_collection-hooks/insert.js:35:1\r\n    at Array.forEach (packages/es5-shim/.npm/package/node_modules/es5-shim/es5-shim.js:417:1)\r\n    at Function._.each._.forEach (packages/underscore/underscore.js:105:1)\r\n    at after (packages/matb33_collection-hooks/insert.js:34:1)\r\n    at Object.CollectionHooks.defineAdvice.self (packages/matb33_collection-hooks/insert.js:49:1)\r\n    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks/collection-hooks.js:117:1)\r\n```\r\n\r\n\r\nOn UI side I can see \"500\" within a yellow box.\r\n\r\nFrom my testing I would say, it's a timing issue: If I'm entering the address and click on \"Invite via Email\" really fast, I can see the Exception. If I wait a small amount of time (e.g. 2 sec) and then clicking on \"Invite via Email\" the mail is sent successfully.\r\n\r\n\r\nI'm using a gmail-account on this installation along following parameter: ```MAIL_URL='smtp://address@gmail.com:pwd@smtp.gmail.com:465/'``` (fyi)\r\n\r\n\r\nPlease advise, if you need more information from my side. It's my 1st post on github ;-)\r\n\r\nThanks a lot - It's a great project!\r\nRobert"},"comment":{"url":"https://api.github.com/repos/wekan/wekan/issues/comments/234109291","html_url":"https://github.com/wekan/wekan/issues/473#issuecomment-234109291","issue_url":"https://api.github.com/repos/wekan/wekan/issues/473","id":234109291,"user":{"login":"rgoltz","id":16392819,"avatar_url":"https://avatars.githubusercontent.com/u/16392819?v=3","gravatar_id":"","url":"https://api.github.com/users/rgoltz","html_url":"https://github.com/rgoltz","followers_url":"https://api.github.com/users/rgoltz/followers","following_url":"https://api.github.com/users/rgoltz/following{/other_user}","gists_url":"https://api.github.com/users/rgoltz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgoltz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgoltz/subscriptions","organizations_url":"https://api.github.com/users/rgoltz/orgs","repos_url":"https://api.github.com/users/rgoltz/repos","events_url":"https://api.github.com/users/rgoltz/events{/privacy}","received_events_url":"https://api.github.com/users/rgoltz/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T22:56:47Z","updated_at":"2016-07-20T22:56:47Z","body":"Hi @mquandalle @AlexanderS .\r\nJust now, I installed the pre-release of wekan version: wekan-0.11.0-**rc1**. This wekan installation was started aganst a empty mongo-db. Below you can find the output of mongo-db and also the exception:\r\n\r\n```\r\n\r\nThu Jul 21 00:41:21.640 [initandlisten] MongoDB starting : pid=11838 port=27017 dbpath=/data/db/ 32-bit host=goltz1\r\nThu Jul 21 00:41:21.640 [initandlisten] db version v2.4.14\r\nThu Jul 21 00:41:21.640 [initandlisten] git version: 05bebf9ab15511a71bfbded684bb226014c0a553\r\nThu Jul 21 00:41:21.640 [initandlisten] build info: Linux 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 BOOST_LIB_VERSION=1_49\r\nThu Jul 21 00:41:21.640 [initandlisten] allocator: system\r\nThu Jul 21 00:41:21.640 [initandlisten] options: {}\r\nThu Jul 21 00:41:21.721 [initandlisten] waiting for connections on port 27017\r\nThu Jul 21 00:41:21.721 [websvr] admin web console waiting for connections on port 28017\r\nThu Jul 21 00:41:47.963 [initandlisten] connection accepted from 127.0.0.1:38770 #1 (1 connection now open)\r\nThu Jul 21 00:41:47.971 [conn1] end connection 127.0.0.1:38770 (0 connections now open)\r\nThu Jul 21 00:41:47.973 [initandlisten] connection accepted from 127.0.0.1:38771 #2 (1 connection now open)\r\nThu Jul 21 00:41:47.973 [initandlisten] connection accepted from 127.0.0.1:38772 #3 (2 connections now open)\r\nThu Jul 21 00:41:47.973 [initandlisten] connection accepted from 127.0.0.1:38773 #4 (3 connections now open)\r\nThu Jul 21 00:41:47.974 [initandlisten] connection accepted from 127.0.0.1:38774 #5 (4 connections now open)\r\nThu Jul 21 00:41:47.974 [initandlisten] connection accepted from 127.0.0.1:38775 #6 (5 connections now open)\r\nThu Jul 21 00:41:47.995 [conn6] allocating new ns file /data/db/wekan.ns, filling with zeroes...\r\nThu Jul 21 00:41:48.247 [FileAllocator] allocating new datafile /data/db/wekan.0, filling with zeroes...\r\nThu Jul 21 00:41:48.247 [FileAllocator] creating directory /data/db/_tmp\r\nThu Jul 21 00:41:48.247 [FileAllocator] done allocating datafile /data/db/wekan.0, size: 16MB,  took 0 secs\r\nThu Jul 21 00:41:48.247 [FileAllocator] allocating new datafile /data/db/wekan.1, filling with zeroes...\r\nThu Jul 21 00:41:48.247 [FileAllocator] done allocating datafile /data/db/wekan.1, size: 32MB,  took 0 secs\r\nThu Jul 21 00:41:48.248 [conn6] build index wekan.users { _id: 1 }\r\nThu Jul 21 00:41:48.248 [conn6] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.248 [conn6] info: creating collection wekan.users on add index\r\nThu Jul 21 00:41:48.248 [conn6] build index wekan.users { username: 1 }\r\nThu Jul 21 00:41:48.248 [conn6] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.248 [conn6] insert wekan.system.indexes ninserted:1 keyUpdates:0 locks(micros) w:253412 253ms\r\nThu Jul 21 00:41:48.250 [conn5] build index wekan.users { emails.address: 1 }\r\nThu Jul 21 00:41:48.250 [conn5] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.251 [conn4] build index wekan.users { services.resume.loginTokens.hashedToken: 1 }\r\nThu Jul 21 00:41:48.251 [conn4] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.252 [conn3] build index wekan.users { services.resume.loginTokens.token: 1 }\r\nThu Jul 21 00:41:48.253 [conn3] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.255 [conn2] build index wekan.users { services.resume.haveLoginTokensToDelete: 1 }\r\nThu Jul 21 00:41:48.255 [conn2] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.256 [conn6] build index wekan.users { services.resume.loginTokens.when: 1 }\r\nThu Jul 21 00:41:48.256 [conn6] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.571 [conn5] build index wekan.users { services.email.verificationTokens.token: 1 }\r\nThu Jul 21 00:41:48.571 [conn5] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.573 [conn4] build index wekan.users { services.password.reset.token: 1 }\r\nThu Jul 21 00:41:48.573 [conn4] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.577 [conn3] build index wekan.meteor_accounts_loginServiceConfiguration { _id: 1 }\r\nThu Jul 21 00:41:48.577 [conn3] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:48.577 [conn3] info: creating collection wekan.meteor_accounts_loginServiceConfiguration on add index\r\nThu Jul 21 00:41:48.577 [conn3] build index wekan.meteor_accounts_loginServiceConfiguration { service: 1 }\r\nThu Jul 21 00:41:48.577 [conn3] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.242 [initandlisten] connection accepted from 127.0.0.1:38778 #7 (6 connections now open)\r\nThu Jul 21 00:41:49.251 [conn7] end connection 127.0.0.1:38778 (5 connections now open)\r\nThu Jul 21 00:41:49.253 [initandlisten] connection accepted from 127.0.0.1:38779 #8 (6 connections now open)\r\nThu Jul 21 00:41:49.254 [initandlisten] connection accepted from 127.0.0.1:38780 #9 (7 connections now open)\r\nThu Jul 21 00:41:49.255 [initandlisten] connection accepted from 127.0.0.1:38781 #10 (8 connections now open)\r\nThu Jul 21 00:41:49.256 [initandlisten] connection accepted from 127.0.0.1:38782 #11 (9 connections now open)\r\nThu Jul 21 00:41:49.256 [initandlisten] connection accepted from 127.0.0.1:38783 #12 (10 connections now open)\r\nThu Jul 21 00:41:49.265 [initandlisten] connection accepted from 127.0.0.1:38784 #13 (11 connections now open)\r\nThu Jul 21 00:41:49.265 [conn13] end connection 127.0.0.1:38784 (10 connections now open)\r\nThu Jul 21 00:41:49.266 [initandlisten] connection accepted from 127.0.0.1:38785 #14 (11 connections now open)\r\nThu Jul 21 00:41:49.266 [initandlisten] connection accepted from 127.0.0.1:38786 #15 (12 connections now open)\r\nThu Jul 21 00:41:49.266 [initandlisten] connection accepted from 127.0.0.1:38787 #16 (13 connections now open)\r\nThu Jul 21 00:41:49.266 [initandlisten] connection accepted from 127.0.0.1:38788 #17 (14 connections now open)\r\nThu Jul 21 00:41:49.267 [initandlisten] connection accepted from 127.0.0.1:38789 #18 (15 connections now open)\r\n> Starting board-background-color migration.\r\nThu Jul 21 00:41:49.307 [conn4] build index wekan.meteor-migrations { _id: 1 }\r\nThu Jul 21 00:41:49.307 [conn4] build index done.  scanned 0 total records. 0 secs\r\n> Finishing board-background-color migration.\r\n> Starting lowercase-board-permission migration.\r\n> Finishing lowercase-board-permission migration.\r\n> Starting change-attachments-type-for-non-images migration.\r\n> Finishing change-attachments-type-for-non-images migration.\r\n> Starting card-covers migration.\r\n> Finishing card-covers migration.\r\n> Starting use-css-class-for-boards-colors migration.\r\n> Finishing use-css-class-for-boards-colors migration.\r\n> Starting denormalize-star-number-per-board migration.\r\n> Finishing denormalize-star-number-per-board migration.\r\n> Starting add-member-isactive-field migration.\r\n> Finishing add-member-isactive-field migration.\r\nThu Jul 21 00:41:49.336 [conn4] build index wekan.activities { _id: 1 }\r\nThu Jul 21 00:41:49.336 [conn4] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.336 [conn4] info: creating collection wekan.activities on add index\r\nThu Jul 21 00:41:49.336 [conn4] build index wekan.activities { createdAt: -1 }\r\nThu Jul 21 00:41:49.336 [conn4] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.337 [conn3] build index wekan.activities { cardId: 1, createdAt: -1 }\r\nThu Jul 21 00:41:49.337 [conn3] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.338 [conn2] build index wekan.activities { boardId: 1, createdAt: -1 }\r\nThu Jul 21 00:41:49.338 [conn2] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.340 [conn6] build index wekan.boards { _id: 1 }\r\nThu Jul 21 00:41:49.340 [conn6] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.340 [conn6] info: creating collection wekan.boards on add index\r\nThu Jul 21 00:41:49.340 [conn6] build index wekan.boards { _id: 1, members.userId: 1 }\r\nThu Jul 21 00:41:49.340 [conn6] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.341 [conn5] build index wekan.cards { _id: 1 }\r\nThu Jul 21 00:41:49.342 [conn5] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.342 [conn5] info: creating collection wekan.cards on add index\r\nThu Jul 21 00:41:49.342 [conn5] build index wekan.cards { boardId: 1 }\r\nThu Jul 21 00:41:49.342 [conn5] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.344 [conn4] build index wekan.lists { _id: 1 }\r\nThu Jul 21 00:41:49.344 [conn4] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.344 [conn4] info: creating collection wekan.lists on add index\r\nThu Jul 21 00:41:49.344 [conn4] build index wekan.lists { boardId: 1 }\r\nThu Jul 21 00:41:49.345 [conn4] build index done.  scanned 0 total records. 0 secs\r\nThu Jul 21 00:41:49.825 [conn4] build index wekan.presences { _id: 1 }\r\nThu Jul 21 00:41:49.825 [conn4] build index done.  scanned 0 total records. 0 secs\r\nException while invoking method 'ATCreateUserServer' TypeError: Cannot read property 'title' of undefined\r\n    at Object.<anonymous> (models/activities.js:71:22)\r\n    at packages/matb33_collection-hooks/insert.js:35:1\r\n    at Function._.each._.forEach (packages/underscore/underscore.js:108:1)\r\n    at after (packages/matb33_collection-hooks/insert.js:34:1)\r\n    at Object.CollectionHooks.defineAdvice.self (packages/matb33_collection-hooks/insert.js:49:1)\r\n    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks/collection-hooks.js:117:1)\r\n    at [object Object].insert (packages/mongo/collection.js:528:37)\r\n    at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core/lib/collection2.js:191:1)\r\n    at Object.<anonymous> (models/lists.js:99:16)\r\n    at packages/matb33_collection-hooks/insert.js:35:1\r\n    at Function._.each._.forEach (packages/underscore/underscore.js:108:1)\r\n    at after (packages/matb33_collection-hooks/insert.js:34:1)\r\n    at Object.CollectionHooks.defineAdvice.self (packages/matb33_collection-hooks/insert.js:49:1)\r\n    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks/collection-hooks.js:117:1)\r\n    at [object Object].insert (packages/mongo/collection.js:528:37)\r\n    at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core/lib/collection2.js:191:1)\r\n```\r\n\r\nThis exception happens while I tried to create a new (here in this case the 1st) user. May you can take a look in order to check this within the process of rc-version before releasing v0.11 final.\r\n\r\nThanks a lot. In case I should so an addtional or adjusted test, please let me know!\r\n\r\n\r\nThanks + Cheers,\r\nRobert"}}
{"actor":{"display_login":"rgoltz"}}