Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Contacts export results in cozy-light stopping #62

Open
marthjod opened this issue Jan 2, 2015 · 2 comments
Open

Contacts export results in cozy-light stopping #62

marthjod opened this issue Jan 2, 2015 · 2 comments
Labels

Comments

@marthjod
Copy link

marthjod commented Jan 2, 2015

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
Copy link
Author

marthjod commented Jan 3, 2015

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

@marthjod marthjod closed this as completed Jan 3, 2015
@maboiteaspam maboiteaspam reopened this Jan 4, 2015
@maboiteaspam
Copy link
Contributor

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 !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants