nextcloud / calendar

📆 Calendar app for Nextcloud
https://apps.nextcloud.com/apps/calendar
GNU Affero General Public License v3.0
977 stars 239 forks source link

Browser log errors when viewing event in public calendar (avatar) #4061

Open max65482 opened 2 years ago

max65482 commented 2 years ago

Steps to reproduce

  1. Create a calendar with at least one event.
  2. Create a public link for this calendar.
  3. Load the public calendar via link.
  4. Click on an event.

Expected behavior

The event editor loads with no browser log errors/warnings.

Actual behaviour

Errors and warnings appear in the browser log:

TypeError: t is null o Avatar.js:171 avatarStyle Avatar.js:150 VueJS 3 get evaluate Nn w Avatar.js:150 VueJS 5 _render r get bn mount vue.runtime.esm.js:1897:4 VueJS 59 e EditorMixin.js:657 u dist.js:1 _invoke dist.js:1 S dist.js:1 gx attendee.js:59 o attendee.js:59 (Async: promise callback) gx attendee.js:59 o attendee.js:59 (Async: promise callback) gx attendee.js:59 o attendee.js:59 vx attendee.js:59 vx attendee.js:59 e EditorMixin.js:657 S vue-router.esm.js:290 init vue-router.esm.js:392 VueJS 19 init vue-router.esm.js:3002 init vue-router.esm.js:3002 updateRoute vue-router.esm.js:2414 transitionTo vue-router.esm.js:2263 confirmTransition vue-router.esm.js:2401 r vue-router.esm.js:2000 r vue-router.esm.js:2004 h vue-router.esm.js:2380 confirmTransition vue-router.esm.js:2540 e EditorMixin.js:636 u dist.js:1 _invoke dist.js:1 S dist.js:1 gx attendee.js:59 o attendee.js:59 vx attendee.js:59 vx attendee.js:59 beforeRouteEnter EditorMixin.js:634 confirmTransition vue-router.esm.js:2535 h vue-router.esm.js:2361 r vue-router.esm.js:2003 St vue-router.esm.js:2008 confirmTransition vue-router.esm.js:2397 [INFO] calendar: fetching suggestions for 0 attendees Object { app: "calendar" } ConsoleLogger.js:33:16 [ERROR] calendar: Could not find resources Object { app: "calendar", error: TypeError } ConsoleLogger.js:41:16 log ConsoleLogger.js:41 error ConsoleLogger.js:63 e ResourceList.vue:161 u dist.js:1 _invoke dist.js:1 S dist.js:1 QI ResourceListItem.vue:207 o ResourceListItem.vue:207 (Async: promise callback) QI ResourceListItem.vue:207 o ResourceListItem.vue:207 KI ResourceListItem.vue:207 KI ResourceListItem.vue:207 loadRoomSuggestions ResourceList.vue:161 e ResourceList.vue:136 u dist.js:1 _invoke dist.js:1 S dist.js:1 QI ResourceListItem.vue:207 o ResourceListItem.vue:207 KI ResourceListItem.vue:207 KI ResourceListItem.vue:207 mounted ResourceList.vue:136 VueJS 19 e EditorMixin.js:657 u dist.js:1 _invoke dist.js:1 S dist.js:1 gx attendee.js:59 o attendee.js:59 (Async: promise callback) gx attendee.js:59 o attendee.js:59 (Async: promise callback) gx attendee.js:59 o attendee.js:59 vx attendee.js:59 vx attendee.js:59 e EditorMixin.js:657 S vue-router.esm.js:290 init vue-router.esm.js:392 VueJS 8 n d d C C gi _update r jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 110 globals.js:62:15 jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 6 globals.js:62:15 GEThttp://127.0.0.1/index.php/avatar/{user}/18 [[HTTP/1.1 404 Not Found 69ms]]()

jQuery is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own. 76 globals.js:62:15 Invalid avatar url /index.php/avatar/%7Buser%7D/18 Avatar.js:150:7263 TypeError: t is null o Avatar.js:171 avatarStyle Avatar.js:150 VueJS 3 w Avatar.js:150 VueJS 14 onerror Avatar.js:150 updateImageIfValid Avatar.js:150 loadAvatarUrl Avatar.js:150 mounted Avatar.js:150 VueJS 19 e EditorMixin.js:657 u dist.js:1 _invoke dist.js:1 S dist.js:1 gx attendee.js:59 o attendee.js:59 promise callbackgx attendee.js:59 o attendee.js:59 promise callbackgx attendee.js:59 o attendee.js:59 vx attendee.js:59 vx attendee.js:59 e EditorMixin.js:657 S vue-router.esm.js:290 init vue-router.esm.js:392 VueJS 8 vue.runtime.esm.js:1897:4 VueJS 17 onerror Avatar.js:150 (Async: EventHandlerNonNull) updateImageIfValid Avatar.js:150 loadAvatarUrl Avatar.js:150 mounted Avatar.js:150 VueJS 19 e EditorMixin.js:657 u dist.js:1 _invoke dist.js:1 S dist.js:1 gx attendee.js:59 o attendee.js:59 (Async: promise callback) gx attendee.js:59 o attendee.js:59 (Async: promise callback) gx attendee.js:59 o attendee.js:59 vx attendee.js:59 vx attendee.js:59 e EditorMixin.js:657 S vue-router.esm.js:290 init vue-router.esm.js:392 VueJS 8

Calendar app version

3.1.0

CalDAV-clients used

NC web interface

Browser

Firefox 98.0

Client operating system

Debian 11

Server operating system

Debian 11

Web server

Apache

Database engine version

MariaDB

PHP engine version

PHP 8.0

Nextcloud version

24.0.0 dev

Updated from an older installed version or fresh install

Fresh install

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

May be related to #3099. I did not encounter functional limitations. Maybe this is only technical debt.

Tikrass commented 2 years ago

I can confirm this behavior for Nextcloud 22.2.5. Additionally, the calendar is not showing any events

tcitworld commented 2 years ago

@Tikrass your issue is not the same, probably fixed by https://github.com/nextcloud/calendar/pull/4035 in 3.2.1

Tikrass commented 2 years ago

@tcitworld Oh, thanks I must have missed that issue. You are right.