cozy / cozy-calendar

An application to manage your events
https://demo.cozycloud.cc/#apps/calendar/
GNU Affero General Public License v3.0
66 stars 39 forks source link

Error trying to open Syncronization popup: "TypeError: password is undefined" #549

Open clochix opened 8 years ago

clochix commented 8 years ago

Error log:

"TypeError: password is undefined" "https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js" 9609 20 TypeError: password is undefined
Stack trace:
SettingsModals</SettingsModals.prototype.getPlaceholder@https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js:9609:21
SettingsModals</SettingsModals.prototype.initialize@https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js:9558:39
Backbone.View@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:20878:5
BaseView@https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js:1139:12
SettingsModals@https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js:9528:12
Router</Router.prototype.settings@https://xxxx.cozycloud.cc/apps/calendar/javascripts/app.js:6618:12
.execute@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:21142:21
.route/<@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:21131:9
.loadUrl/<@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:21358:11
_.any@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:18857:1
.loadUrl@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:21356:1
.checkUrl@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:21348:7
jQuery.event.dispatch@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:4522:15
jQuery.event.add/elemData.handle@https://xxxx.cozycloud.cc/apps/calendar/javascripts/vendor.js:4209:6
clochix commented 8 years ago

This is a very old server, where webdavaccount.token is undefined. We should probably use @model.token || @model.password at https://github.com/cozy/cozy-calendar/blob/d1cf6a451d7b96b131e31ee16f9ae45c519c8b4a/client/app/views/settings_modal.coffee#L29

gregorylegarec commented 8 years ago

Should be fixed by https://github.com/cozy/cozy-calendar/pull/592.