Lauri Ojansivu
7514d6e175
UCS: avatars show again after an upgrade, and lazily loaded code is fetched from the page's own address.
...
On Univention WeKan is served at /wekan. profile.avatarUrl holds
/cdn/storage/avatars/<id> - what Change Avatar and the server's own
migrations store - and it was rendered as stored, so the browser asked
the UCS web server for a path outside WeKan, got 404, and every avatar
was an empty circle, while Change Avatar, which builds its own link,
showed the picture. models/lib/avatarDisplayUrl.js treats the stored
value as the avatar's name: whatever host or old path prefix stood
before /cdn/storage/avatars/ or /cfs/files/avatars/ is replaced with the
path WeKan is served at now, relative to the page's origin. The avatar,
the People page and the report tables draw through it; the default
avatar gets the prefix too. External pictures and data: URLs are left
alone.
The same session, opened through 127.0.0.1:8443/wekan, fetched lazily
loaded code from ROOT_URL's host ucs-2275.wekan.intranet, which the
browser could not resolve (NS_ERROR_UNKNOWN_HOST, "Cross-Origin Request
Blocked"). Meteor's dynamic-import setting useLocationOrigin is now on
by default, so that code comes from the page's own origin and ROOT_URL
path; an explicit value in METEOR_SETTINGS still wins. Links keep using
ROOT_URL as before.
tests/avatarDisplayUrl.test.cjs covers every stored shape, (negative)
leaves external, data: and query-string URLs alone, checks that no
template puts a stored avatar URL in src without avatarSrc, and pins the
dynamic-import default and its override. The Playwright spec
avatar-sub-path.e2e.js checks the drawn src and the setting in a browser;
it was not run here.
Thanks to xet7 !
2026-10-12 01:30:07 +03:00
..
2026-03-24 01:50:39 +02:00
2026-06-06 07:21:59 +03:00
2026-08-16 15:05:00 +03:00
2026-08-12 16:01:51 +03:00
2026-09-22 18:47:39 +03:00
2026-10-08 12:05:59 +03:00
2026-10-05 19:48:48 +03:00
2026-07-31 07:14:52 +03:00
2026-08-16 15:15:01 +03:00
2026-08-16 15:15:01 +03:00
2026-07-17 03:34:23 +03:00
2026-09-06 02:28:46 +03:00
2026-09-28 23:56:20 +03:00
2026-10-10 15:05:21 +03:00
2026-06-06 02:06:16 +03:00
2026-09-25 02:29:43 +03:00
2026-09-19 14:32:29 +03:00
2026-09-11 21:17:33 +03:00
2026-07-17 01:43:53 +03:00
2026-06-20 17:45:43 +03:00
2026-09-29 16:05:24 +03:00
2026-10-02 09:46:00 +03:00
2026-10-08 15:18:59 +03:00
2026-10-05 21:11:12 +03:00
2026-09-29 16:40:48 +03:00
2026-10-12 01:30:07 +03:00
2026-07-13 09:16:33 +03:00
2026-10-02 11:42:49 +03:00
2026-07-11 00:14:49 +03:00
2026-09-27 17:07:02 +03:00
2026-10-08 12:19:38 +03:00
2026-10-02 11:16:50 +03:00
2026-10-02 11:16:50 +03:00
2026-10-03 10:05:47 +03:00
2026-07-23 18:55:30 +03:00
2026-09-27 18:41:14 +03:00
2026-09-29 15:12:12 +03:00
2026-09-25 23:51:28 +03:00
2026-07-17 03:07:59 +03:00
2026-07-31 16:04:18 +03:00
2026-10-07 03:08:48 +03:00
2026-09-29 17:43:58 +03:00
2026-07-24 03:23:37 +03:00
2026-09-14 11:47:29 +03:00
2026-09-17 13:05:45 +03:00
2026-09-29 16:28:44 +03:00
2026-07-23 15:03:42 +03:00
2026-08-12 15:58:17 +03:00
2026-07-23 18:55:30 +03:00
2026-10-08 08:54:04 +03:00
2026-07-24 08:06:14 +03:00
2026-07-17 03:07:59 +03:00
2026-09-10 21:41:46 +03:00
2026-10-10 14:31:28 +03:00
2026-09-03 15:34:41 +03:00
2026-09-29 16:28:44 +03:00
2026-07-24 03:23:37 +03:00
2026-10-08 14:04:48 +03:00
2026-10-08 21:49:11 +03:00
2026-09-14 11:53:05 +03:00
2026-09-10 17:54:50 +03:00
2026-10-10 14:31:28 +03:00
2026-10-10 15:26:46 +03:00
2026-09-29 00:13:43 +03:00
2026-09-29 00:04:16 +03:00
2026-09-28 04:04:25 +03:00
2026-09-28 18:04:52 +03:00
2026-10-08 12:15:49 +03:00
2026-10-09 23:39:18 +03:00
2026-08-18 18:10:47 +03:00
2026-10-02 16:39:28 +03:00
2026-10-08 08:54:04 +03:00
2026-07-23 18:59:30 +03:00
2026-09-28 17:40:49 +03:00
2026-09-28 17:48:00 +03:00
2026-09-28 18:19:22 +03:00
2026-07-23 18:55:30 +03:00
2026-09-29 17:59:21 +03:00
2026-09-10 22:11:01 +03:00
2026-09-10 20:05:23 +03:00
2026-08-25 15:40:39 +03:00
2026-10-02 16:45:01 +03:00
2026-07-31 04:09:40 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 21:20:46 +03:00
2026-08-28 17:40:10 +03:00
2026-10-09 13:28:08 +03:00
2026-09-28 02:21:36 +03:00
2026-09-06 18:35:32 +03:00
2026-09-04 22:56:52 +03:00
2026-09-10 21:11:34 +03:00
2026-09-27 22:27:51 +03:00
2026-09-10 20:40:17 +03:00
2026-09-10 19:52:40 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 20:11:47 +03:00
2026-09-10 20:20:35 +03:00
2026-09-10 20:02:49 +03:00
2026-10-10 00:45:30 +03:00
2026-10-02 10:39:40 +03:00
2026-06-06 09:28:05 +03:00
2026-10-09 23:06:49 +03:00
2026-07-23 18:55:30 +03:00
2026-09-27 14:38:03 +03:00
2026-09-14 11:49:40 +03:00
2026-09-28 12:55:11 +03:00
2026-09-10 21:37:53 +03:00
2026-10-03 08:52:16 +03:00
2026-10-08 08:47:18 +03:00
2026-09-28 12:55:11 +03:00
2026-07-20 03:11:07 +03:00
2026-07-17 23:01:52 +03:00
2026-10-08 12:01:22 +03:00
2026-10-09 12:52:21 +03:00
2026-10-10 15:26:46 +03:00
2026-09-10 20:59:36 +03:00
2026-10-02 11:21:50 +03:00
2026-09-10 20:34:30 +03:00
2026-10-08 11:41:59 +03:00
2026-08-23 00:16:15 +03:00
2026-09-11 21:31:10 +03:00
2026-09-23 13:58:24 +03:00
2026-10-08 11:55:42 +03:00
2026-07-23 18:55:30 +03:00
2026-10-02 08:42:30 +03:00
2026-07-20 03:11:07 +03:00
2026-08-16 15:15:01 +03:00
2026-07-24 04:56:39 +03:00
2026-09-28 18:23:09 +03:00
2026-09-29 13:44:54 +03:00
2026-10-12 01:30:07 +03:00
2026-10-02 15:09:58 +03:00
2026-09-27 13:45:41 +03:00
2026-10-08 11:48:01 +03:00
2026-09-10 20:23:43 +03:00
2026-10-08 11:07:58 +03:00
2026-07-24 10:14:29 +03:00
2026-09-06 02:28:46 +03:00
2026-09-28 01:59:40 +03:00
2026-09-27 22:27:51 +03:00
2026-10-09 10:33:37 +03:00
2026-09-10 19:54:38 +03:00
2026-09-27 18:24:38 +03:00
2026-08-17 02:34:38 +03:00
2026-08-17 01:02:51 +03:00
2026-10-10 12:21:36 +03:00
2026-10-09 12:27:59 +03:00
2026-09-10 20:44:45 +03:00
2026-10-08 12:22:43 +03:00
2026-10-09 12:27:59 +03:00
2026-10-08 21:17:07 +03:00
2026-09-30 02:00:42 +03:00
2026-10-02 08:42:18 +03:00
2026-08-09 03:43:07 +03:00
2026-06-22 15:46:43 +03:00
2026-09-01 10:50:55 +03:00
2026-06-06 02:06:16 +03:00
2026-10-10 12:21:27 +03:00
2026-09-20 21:06:30 +03:00
2026-08-09 02:19:15 +03:00
2026-09-28 18:47:02 +03:00
2026-09-26 23:00:58 +03:00
2026-09-26 23:00:58 +03:00
2026-09-28 17:23:15 +03:00
2026-10-03 00:17:10 +03:00
2026-10-02 10:46:06 +03:00
2026-09-10 19:45:52 +03:00
2026-08-16 16:29:31 +03:00
2026-07-31 04:09:41 +03:00
2026-09-27 17:38:27 +03:00
2026-10-09 13:28:08 +03:00
2026-10-02 08:42:18 +03:00
2026-09-10 20:35:37 +03:00
2026-07-14 17:01:35 +03:00
2026-08-03 15:30:15 +03:00
2026-09-23 19:49:33 +03:00
2026-07-23 18:55:30 +03:00
2026-09-29 16:28:44 +03:00
2026-09-29 09:26:20 +03:00
2026-07-23 18:55:30 +03:00
2026-09-23 19:49:33 +03:00
2026-10-08 21:08:40 +03:00
2026-07-13 09:16:33 +03:00
2026-09-05 23:51:02 +03:00
2026-09-27 18:11:41 +03:00
2026-09-29 09:26:20 +03:00
2026-10-09 13:13:37 +03:00
2026-10-10 12:21:36 +03:00
2026-09-27 20:53:56 +03:00
2026-10-08 12:44:46 +03:00
2026-10-09 13:13:37 +03:00
2026-10-08 22:12:50 +03:00
2026-10-09 10:33:37 +03:00
2026-08-09 03:29:20 +03:00
2026-08-14 01:03:08 +03:00
2026-10-10 14:31:28 +03:00
2026-09-22 15:12:52 +03:00
2026-09-14 12:02:59 +03:00
2026-07-17 03:07:59 +03:00
2026-07-06 16:02:56 +03:00
2026-07-17 03:36:07 +03:00
2026-08-16 15:15:01 +03:00
2026-09-29 17:23:10 +03:00
2026-10-02 19:23:20 +03:00
2026-09-29 09:12:21 +03:00
2026-10-08 11:51:44 +03:00
2026-10-08 11:51:44 +03:00
2026-09-27 19:08:35 +03:00
2026-10-09 10:33:37 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-09-10 20:00:19 +03:00
2026-09-10 19:59:02 +03:00
2026-08-16 15:15:01 +03:00
2026-09-29 18:41:21 +03:00
2026-09-29 18:41:21 +03:00
2026-10-08 20:59:26 +03:00
2026-07-23 18:55:30 +03:00
2026-07-23 18:55:30 +03:00
2026-09-27 00:09:56 +03:00
2026-07-23 18:55:30 +03:00
2026-09-14 12:05:14 +03:00
2026-08-08 02:19:08 +03:00
2026-07-09 02:14:07 +03:00
2026-09-04 21:29:31 +03:00
2026-09-27 00:10:25 +03:00
2026-09-04 19:26:03 +03:00
2026-09-04 21:29:31 +03:00
2026-10-02 19:34:47 +03:00
2026-10-08 12:35:58 +03:00
2026-09-28 03:49:38 +03:00
2026-09-27 21:32:16 +03:00
2026-10-08 12:35:58 +03:00
2026-09-28 03:49:38 +03:00
2026-07-22 16:22:39 +03:00
2026-09-15 07:30:40 +03:00
2026-10-08 14:09:34 +03:00
2026-07-23 10:49:13 +03:00
2026-08-18 23:07:48 +03:00
2026-10-08 11:03:50 +03:00
2026-09-01 23:09:31 +03:00
2026-08-16 16:17:13 +03:00
2026-09-08 17:49:24 +03:00
2026-10-10 00:45:30 +03:00
2026-10-08 20:52:04 +03:00
2026-07-23 18:55:30 +03:00
2026-09-20 21:06:30 +03:00
2026-08-12 14:45:07 +03:00
2026-10-08 21:13:39 +03:00
2026-08-12 15:06:45 +03:00
2026-09-23 18:21:03 +03:00
2026-09-10 20:07:59 +03:00
2026-09-29 16:36:05 +03:00
2026-08-11 16:15:06 +03:00
2026-10-10 15:28:26 +03:00
2026-09-28 04:43:49 +03:00
2026-09-10 21:00:20 +03:00
2026-10-08 22:01:22 +03:00
2026-10-08 21:07:01 +03:00
2026-09-10 20:42:42 +03:00
2026-07-28 14:47:22 +03:00
2026-10-08 15:18:59 +03:00
2026-10-08 20:57:08 +03:00
2026-08-25 17:45:40 +03:00
2026-10-08 11:18:14 +03:00
2026-10-08 11:18:14 +03:00
2026-07-09 02:14:07 +03:00
2026-10-08 11:21:05 +03:00
2026-09-30 09:29:46 +03:00
2026-09-10 21:12:34 +03:00
2026-09-22 19:16:55 +03:00
2026-09-11 10:42:40 +03:00
2026-10-08 21:09:53 +03:00
2026-10-10 00:45:30 +03:00
2026-10-09 12:20:36 +03:00
2026-08-10 03:52:18 +03:00
2026-09-04 21:29:31 +03:00
2026-07-23 18:55:30 +03:00
2026-07-22 12:15:56 +03:00
2026-09-10 20:06:23 +03:00
2026-10-08 21:35:31 +03:00
2026-08-09 02:54:56 +03:00
2026-07-06 10:33:15 +03:00
2026-07-21 10:06:40 +03:00
2026-09-05 23:51:02 +03:00
2026-08-17 23:58:04 +03:00
2026-10-08 21:55:27 +03:00
2026-07-09 02:14:07 +03:00
2026-09-19 14:00:48 +03:00
2026-07-27 23:39:37 +03:00
2026-07-09 02:14:07 +03:00
2026-09-10 19:36:48 +03:00
2026-09-10 20:46:04 +03:00
2026-07-09 09:45:53 +03:00
2026-09-27 20:27:41 +03:00
2026-07-23 18:55:30 +03:00
2026-07-09 02:14:07 +03:00
2026-09-07 17:03:59 +03:00
2026-10-08 12:25:29 +03:00
2026-09-29 14:34:18 +03:00
2026-09-27 17:07:02 +03:00
2026-09-27 17:07:02 +03:00
2026-09-29 16:28:44 +03:00
2026-10-02 16:55:19 +03:00
2026-10-08 11:31:12 +03:00
2026-09-10 21:00:23 +03:00
2026-09-29 16:09:49 +03:00
2026-09-29 18:45:10 +03:00
2026-09-29 14:02:14 +03:00
2026-08-23 00:16:15 +03:00
2026-10-02 10:37:08 +03:00
2026-10-08 15:18:59 +03:00
2026-07-23 18:59:30 +03:00
2026-07-17 03:36:50 +03:00
2026-06-05 23:44:04 +03:00
2026-08-09 03:29:20 +03:00
2026-09-29 14:10:38 +03:00
2026-07-09 09:45:53 +03:00
2026-10-10 12:21:44 +03:00
2026-09-27 20:36:08 +03:00
2026-10-08 11:51:44 +03:00
2026-09-27 22:27:51 +03:00
2026-10-03 09:49:31 +03:00
2026-10-08 11:51:44 +03:00
2026-10-02 19:43:30 +03:00
2026-10-03 01:47:19 +03:00
2026-10-08 12:36:57 +03:00
2026-10-08 12:36:57 +03:00
2026-08-27 10:19:56 +03:00
2026-10-08 10:41:59 +03:00
2026-07-23 18:59:30 +03:00
2026-07-31 06:47:19 +03:00
2026-07-20 03:11:07 +03:00
2026-08-25 17:52:23 +03:00
2026-08-16 15:15:01 +03:00
2026-09-16 02:26:25 +03:00
2026-08-09 23:38:43 +03:00
2026-07-17 20:20:06 +03:00
2026-10-07 03:08:48 +03:00
2026-07-23 18:55:30 +03:00
2026-08-01 14:49:52 +03:00
2026-07-24 10:14:29 +03:00
2026-08-09 02:19:15 +03:00
2026-09-25 23:35:16 +03:00
2026-10-02 20:53:38 +03:00
2026-10-10 15:25:16 +03:00
2026-09-10 20:50:08 +03:00
2026-10-08 11:40:25 +03:00
2026-10-10 00:45:30 +03:00
2026-07-23 18:55:30 +03:00
2026-08-31 13:27:15 +03:00
2026-07-09 09:45:53 +03:00
2026-09-22 18:40:36 +03:00
2026-09-28 19:19:26 +03:00
2026-08-25 17:39:23 +03:00
2026-08-25 17:32:57 +03:00
2026-08-25 17:31:29 +03:00
2026-10-08 21:17:07 +03:00
2026-10-09 10:33:37 +03:00
2026-10-02 15:53:14 +03:00
2026-07-17 03:07:59 +03:00
2026-10-08 21:40:19 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-07-26 07:59:30 +03:00
2026-08-16 15:15:01 +03:00
2026-08-10 21:51:21 +07:00
2026-10-08 21:02:01 +03:00
2026-09-26 23:00:58 +03:00
2026-10-09 12:20:36 +03:00
2026-09-30 03:19:02 +03:00
2026-08-25 17:27:33 +03:00
2026-08-14 18:06:10 +03:00
2026-09-05 23:51:02 +03:00
2026-06-13 17:19:51 +03:00
2026-10-07 03:08:48 +03:00
2026-08-11 16:28:38 +03:00
2026-09-10 20:02:50 +03:00
2026-10-02 11:05:04 +03:00
2026-09-06 02:28:46 +03:00
2026-09-29 15:57:05 +03:00
2026-09-10 20:38:44 +03:00
2026-08-17 03:05:41 +03:00
2026-10-07 03:08:48 +03:00
2026-02-08 00:48:39 +02:00
2026-08-30 18:04:24 +03:00
2026-10-10 00:45:30 +03:00
2026-09-10 20:37:09 +03:00
2026-10-10 15:28:26 +03:00
2026-07-23 18:55:30 +03:00
2026-09-10 20:51:52 +03:00
2026-07-23 18:55:30 +03:00
2026-09-26 23:00:58 +03:00
2026-09-10 20:00:09 +03:00
2026-08-16 15:15:01 +03:00
2026-10-09 09:48:47 +03:00
2026-10-09 09:48:47 +03:00