View Issue Details

IDProjectCategoryView StatusLast Update
0005442SOGoWeb Mailpublic2021-12-15 22:13
Reporterrschuetz Assigned Tofrancis  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Versionnightly master 
Summary0005442: New message window stuck at loading animation
Description

If "Write a message in new window" is selected to compose a new message, the message editor never loads and the loading animation is shown indefinitely. The following error is logged to the web console:

Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: t.$mailbox is undefined) stateService.ts:540:14
r.prototype.$formatFullAddresses@https://sogo/SOGo.woa/WebServerResources/js/Mailer.services.js?lm=1639033486:1:24468
r.prototype.init@https://sogo/SOGo.woa/WebServerResources/js/Mailer.services.js?lm=1639033486:1:23292
r@https://sogo/SOGo.woa/WebServerResources/js/Mailer.services.js?lm=1639033486:1:21963
c.prototype.$newMessage/<@https://sogo/SOGo.woa/WebServerResources/js/Mailer.services.js?lm=1639033486:1:5832
Nd/k/<@https://sogo/SOGo.woa/WebServerResources/js/vendor/angular.min.js?lm=1639033486:141:454
$digest@https://sogo/SOGo.woa/WebServerResources/js/vendor/angular.min.js?lm=1639033486:153:67
$apply@https://sogo/SOGo.woa/WebServerResources/js/vendor/angular.min.js?lm=1639033486:156:484
k@https://sogo/SOGo.woa/WebServerResources/js/vendor/angular.min.js?lm=1639033486:107:445
v@https://sogo/SOGo.woa/WebServerResources/js/vendor/angular.min.js?lm=1639033486:113:41
Pg/</y.onload@https://sogo/SOGo.woa/WebServerResources/js/vendor/angular.min.js?lm=1639033486:113:465
stateService.ts:541:58

Additional Information

This error was introduced sometime after the 5.3.0 release.

TagsNo tags attached.

Activities

francis

francis

2021-12-09 19:35

administrator   ~0015679

Can you reproduce the issue on our demo instance (https://demo.sogo.nu/)?

rschuetz

rschuetz

2021-12-10 07:11

reporter   ~0015680

I can't reproduce the issue on the demo instance. Could this be related to mailbox hierarchy?

SOGoDraftsFolderName = "INBOX/Drafts";
SOGoSentFolderName = "INBOX/Sent";
SOGoTrashFolderName = "INBOX/Trash";
SOGoJunkFolderName = "INBOX/Junk";
NGImap4ConnectionStringSeparator = ".";

francis

francis

2021-12-10 16:16

administrator   ~0015681

I've tested with the dot separator and it was still working properly.

Do you have any error in the console of the parent window?

xupmedia

xupmedia

2021-12-11 17:08

reporter   ~0015683

We have this/ a very similar error now too, I hope it's ok that I hop in this thread. I updated the system from 5.0.1 to 5.3.0 and since then the write-new-mail-window loads endlessly. I get a slightly different error:

stateService.ts:540 Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: Cannot read properties of undefined (reading '$account'))
_defaultErrorHandler @ stateService.ts:540
stateService.ts:541 TypeError: Cannot read properties of undefined (reading '$account')
at r.$formatFullAddresses (Message.service.js:214)
at r.init (Message.service.js:128)
at new r (Message.service.js:26)
at Account.service.js:481
at angular.js:18075
at m.$digest (angular.js:19242)
at m.$apply (angular.js:19630)
at k (angular.js:13473)
at v (angular.js:13730)
at XMLHttpRequest.y.onload (angular.js:13635)
_defaultErrorHandler @ stateService.ts:541

In our installation it seems that something goes wrong with $account but the result is the same. Using the modal/overlay instead of the new window still works but it would be nice if you could give us a hint where to search for possible reasons.

Thank you!

rschuetz

rschuetz

2021-12-13 08:52

reporter   ~0015685

Nothing is logged for the parent window.

rschuetz

rschuetz

2021-12-13 09:24

reporter   ~0015686

My assumption about mailbox hierarchy is correct. The new message window loads normally with SOGoDraftsFolderName incorrectly set to "Drafts". (This of course also results in a broken drafts folder.)

rschuetz

rschuetz

2021-12-14 11:02

reporter   ~0015689

As of 20211214 nightly build the new message window is working again, but the behaviour regarding identity selection changed. Previously all identities derived from LDAP (multiple mail attributes) could be selected. Now only the first is shown. This is still working as expected in the regular new message dialog.

Related Changesets

sogo: master 25c69aae

2021-12-13 14:30

francis


Details Diff
fix(mail(js)): resolve draft mailbox from popup window

Fixes 0005442
Affected Issues
0005442
mod - UI/WebServerResources/js/Mailer/Account.service.js Diff File
mod - UI/WebServerResources/js/Mailer/Mailbox.service.js Diff File
mod - UI/WebServerResources/js/Mailer/Mailer.popup.js Diff File
mod - UI/WebServerResources/js/Mailer/Message.service.js Diff File

sogo: master 78855be1

2021-12-15 17:12

francis


Details Diff
fix(mail(js)): expose all account identities in popup window

Fixes 0005442
Affected Issues
0005442
mod - UI/WebServerResources/js/Mailer/Account.service.js Diff File

Issue History

Date Modified Username Field Change
2021-12-09 12:03 rschuetz New Issue
2021-12-09 19:35 francis Note Added: 0015679
2021-12-10 07:11 rschuetz Note Added: 0015680
2021-12-10 16:16 francis Note Added: 0015681
2021-12-11 17:08 xupmedia Note Added: 0015683
2021-12-13 08:52 rschuetz Note Added: 0015685
2021-12-13 09:24 rschuetz Note Added: 0015686
2021-12-13 19:43 francis Changeset attached => sogo master 25c69aae
2021-12-13 19:43 francis Assigned To => francis
2021-12-13 19:43 francis Resolution open => fixed
2021-12-13 19:44 francis Status new => resolved
2021-12-13 19:44 francis Fixed in Version => 5.4.0
2021-12-13 19:44 francis Fixed in Version 5.4.0 => nightly master
2021-12-14 11:02 rschuetz Status resolved => feedback
2021-12-14 11:02 rschuetz Resolution fixed => reopened
2021-12-14 11:02 rschuetz Note Added: 0015689
2021-12-15 22:13 francis Changeset attached => sogo master 78855be1
2021-12-15 22:13 francis Resolution reopened => fixed
2021-12-15 22:13 francis Status feedback => resolved