cozy-labs / cozy-light

Personal Server Made Easy
http://cozy-labs.github.io/cozy-light/
GNU Affero General Public License v3.0
104 stars 13 forks source link

Contacts export results in cozy-light stopping #62

Open marthjod opened 9 years ago

marthjod commented 9 years ago

Reproduce: On, e.g., http://localhost:19104/apps/cozy-contacts/#help, choose "Click here to export all your contacts as a vCard file: Export vCard file". Results in uncaught exception and cozy-light stopping:

warn - Cozy Light | An exception is uncaught
[ReferenceError: initial is not defined]
ReferenceError: initial is not defined
    at ModelConstructor.Contact.getComputedFN (/home/marcin/.cozy-light/node_modules/cozy-contacts/server/models/contact.js:47:34)
    at ModelConstructor.Contact.toVCF (/home/marcin/.cozy-light/node_modules/cozy-contacts/server/models/contact.js:61:26)
    at /home/marcin/.cozy-light/node_modules/cozy-contacts/server/controllers/contact.js:124:26
    at /home/marcin/.cozy-light/node_modules/cozy-contacts/node_modules/americano-cozy-pouchdb/node_modules/jugglingdb-pouchdb-adapter/lib/pouchdb.js:429:20
    at /usr/lib/node_modules/cozy-light/node_modules/pouchdb/node_modules/pouchdb-mapreduce/utils.js:25:9
    at process._tickCallback (node.js:419:13)
info - Cozy Light | Stopping apps...
info - Cozy Light |     ✓ Contacts
info - Cozy Light |     ✓ Files
info - Cozy Light | Stopping plugins...
info - Cozy Light |     ✓ Simple Dashboard
info - Cozy Light |     ✓ Auth Plugin
info - Cozy Light | Stopping server...
info - Cozy Light |     ✓ main server
info - Cozy Light | Cozy Light was properly terminated.
GET /contacts.vcf - - ms - -
{ [Error: socket hang up] code: 'ECONNRESET' }
marthjod commented 9 years ago

Sorry, not the right place to open this issue. I'll defer to https://github.com/cozy/cozy-contacts.

maboiteaspam commented 9 years ago

hi,

i re open the issue, seems unexpected and not acceptable the whole system shutdown because of a buggy app. Instead, we shall mark the application as buggy, or do something more user friendly like post an issue automatically, or give instructions to do so, TBDefined.

thanks for reporting !