nextcloud / nextcloud/calendar
Base64 attached files with CalDav-Client are not display in NC Calendar
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 332
- Avg merge
- 16h 13m
- Merged PRs (30d)
- 137
Description
Steps to reproduce
- Create a new calendar
- Share it publicly
- Create a event
- and attach a file to it with a CalDav-Client (like Evolution) stored as base64 (storage work)
- Open the public generated link in a no-logged browser
- Click on the event
- Click on attached file
Expected behavior
The attached file must be open in a new tab
Actual behaviour
A new Calendar tab is open, not the file
link on the attached file https://nextcloud.my-domaine.fr/apps/calendar/p/sb2tySg5S8kJd54K/dayGridMonth/now/view/sidebar/L3JlbW90ZS5waHAvZGF2L3B1YmxpYy1jYWxlbmRhcnMvc2IydHlTZzVTOGtKZDU0Sy80MDBFNEYyNi0yODVCLTQ0OTAtODc2QS1BNjM4QUY2MjkxQTIuaWNz/1691193600#
Calendar app version
4.4.3
CalDAV-clients used
Evolution
Browser
Chromium Version 114.0.5735.198 (Build officiel) Arch Linux (64 bits)
Client operating system
Manjaro
Server operating system
Debian / Docker compose
Web server
Nginx
Database engine version
MariaDB
PHP engine version
PHP 8.2
Nextcloud version
27.0.0
Updated from an older installed version or fresh install
Updated from an older version
List of activated apps
Enabled:
- activity: 2.19.0
- calendar: 4.4.3
- circles: 27.0.0
- cloud_federation_api: 1.10.0
- collectives: 2.6.0
- comments: 1.17.0
- contacts: 5.3.2
- contactsinteraction: 1.8.0
- dashboard: 7.7.0
- dav: 1.27.0
- deck: 1.10.0
- drawio: 2.1.1
- event_update_notification: 2.2.0
- federatedfilesharing: 1.17.0
- federation: 1.17.0
- files: 1.22.0
- files_pdfviewer: 2.8.0
- files_rightclick: 1.6.0
- files_sharing: 1.19.0
- files_trashbin: 1.17.0
- files_versions: 1.20.0
- forms: 3.3.1
- groupfolders: 15.0.0
- impersonate: 1.14.0
- logreader: 2.12.0
- lookup_server_connector: 1.15.0
- nextcloud_announcements: 1.16.0
- notes: 4.8.0
- notifications: 2.15.0
- oauth2: 1.15.0
- password_policy: 1.17.0
- photos: 2.3.0
- polls: 5.1.0
- privacy: 1.11.0
- provisioning_api: 1.17.0
- recommendations: 1.6.0
- related_resources: 1.2.0
- serverinfo: 1.17.0
- settings: 1.9.0
- sharebymail: 1.17.0
- spreed: 17.0.1
- support: 1.10.0
- survey_client: 1.15.0
- suspicious_login: 5.0.0
- systemtags: 1.17.0
- tasks: 0.15.0
- text: 3.8.0
- theming: 2.2.0
- twofactor_backupcodes: 1.16.0
- updatenotification: 1.17.0
- user_status: 1.7.0
- viewer: 2.1.0
- workflowengine: 2.9.0
Disabled:
- admin_audit: 1.17.0
- bruteforcesettings: 2.7.0
- calendar_news: 1.1.7 (installed 1.1.7)
- encryption: 2.15.0
- files_external: 1.19.0
- files_texteditor: 2.15.0 (installed 2.15.0)
- firstrunwizard: 2.16.0 (installed 2.14.0)
- listman: 20.2.2 (installed 20.2.2)
- mail: 3.2.3 (installed 3.2.3)
- maps: 1.0.2 (installed 1.0.2)
- onlyoffice: 8.1.0 (installed 8.1.0)
- richdocuments: 8.1.0 (installed 8.1.0)
- richdocumentscode: 23.5.103 (installed 23.5.103)
- sharerenamer: 3.2.0 (installed 3.2.0)
- twofactor_totp: 9.0.0
- user_ldap: 1.17.0
- weather_status: 1.7.0 (installed 1.5.0)
Nextcloud configuration
{
"system": {
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"nextcloud.my-domaine.fr"
],
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "27.0.0.8",
"overwrite.cli.url": "http:\/\/nextcloud.my-domaine.fr",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"default_phone_region": "FR",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"loglevel": 0,
"app_install_overwrite": [
"listman"
]
}
Web server error log
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:01:56 +0000] "GET /apps/calendar/p/sb2tySg5S8kJd54K HTTP/1.1" 200 7775 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:01:56 +0000] "PROPFIND /remote.php/dav/public-calendars/sb2tySg5S8kJd54K HTTP/1.1" 207 1196 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 2023/07/10 21:01:57 [warn] 27#27: *54717 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/7/00/0000000007 while reading upstream, client: 172.18.0.6, server: , request: "REPORT /remote.php/dav/public-calendars/sb2tySg5S8kJd54K/ HTTP/1.1", upstream: "fastcgi://192.168.16.4:9000", host: "nextcloud.my-domaine.fr"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:01:57 +0000] "REPORT /remote.php/dav/public-calendars/sb2tySg5S8kJd54K/ HTTP/1.1" 207 547618 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:01:57 +0000] "REPORT /remote.php/dav/public-calendars/sb2tySg5S8kJd54K/ HTTP/1.1" 207 215 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 127.0.0.1 - - [10/Jul/2023:21:01:59 +0000] "GET / HTTP/1.1" 302 5 "-" "curl/8.1.2" "-"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:03 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:03 +0000] "GET /apps/calendar/p/sb2tySg5S8kJd54K/dayGridMonth/now/view/sidebar/L3JlbW90ZS5waHAvZGF2L3B1YmxpYy1jYWxlbmRhcnMvc2IydHlTZzVTOGtKZDU0Sy80MDBFNEYyNi0yODVCLTQ0OTAtODc2QS1BNjM4QUY2MjkxQTIuaWNz/1691193600 HTTP/1.1" 200 7779 "https://nextcloud.my-domaine.fr/apps/calendar/p/sb2tySg5S8kJd54K/dayGridMonth/now/view/sidebar/L3JlbW90ZS5waHAvZGF2L3B1YmxpYy1jYWxlbmRhcnMvc2IydHlTZzVTOGtKZDU0Sy80MDBFNEYyNi0yODVCLTQ0OTAtODc2QS1BNjM4QUY2MjkxQTIuaWNz/1691193600" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:03 +0000] "GET /avatar/%7Buser%7D/64/dark HTTP/1.1" 404 2 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:09 +0000] "GET /apps/calendar/p/sb2tySg5S8kJd54K/dayGridMonth/now/view/sidebar/L3JlbW90ZS5waHAvZGF2L3B1YmxpYy1jYWxlbmRhcnMvc2IydHlTZzVTOGtKZDU0Sy80MDBFNEYyNi0yODVCLTQ0OTAtODc2QS1BNjM4QUY2MjkxQTIuaWNz/null HTTP/1.1" 200 7778 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:10 +0000] "PROPFIND /remote.php/dav/public-calendars/sb2tySg5S8kJd54K HTTP/1.1" 207 1196 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:10 +0000] "REPORT /remote.php/dav/public-calendars/sb2tySg5S8kJd54K/ HTTP/1.1" 207 547904 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:10 +0000] "PROPFIND /remote.php/dav/public-calendars/sb2tySg5S8kJd54K/400E4F26-285B-4490-876A-A638AF6291A2.ics HTTP/1.1" 207 415670 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:10 +0000] "REPORT /remote.php/dav/public-calendars/sb2tySg5S8kJd54K/ HTTP/1.1" 207 215 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:11 +0000] "GET /apps/calendar/p/sb2tySg5S8kJd54K/dayGridMonth/now/view/sidebar/L3JlbW90ZS5waHAvZGF2L3B1YmxpYy1jYWxlbmRhcnMvc2IydHlTZzVTOGtKZDU0Sy80MDBFNEYyNi0yODVCLTQ0OTAtODc2QS1BNjM4QUY2MjkxQTIuaWNz/null HTTP/1.1" 200 7780 "https://nextcloud.my-domaine.fr/apps/calendar/p/sb2tySg5S8kJd54K/dayGridMonth/now/view/sidebar/L3JlbW90ZS5waHAvZGF2L3B1YmxpYy1jYWxlbmRhcnMvc2IydHlTZzVTOGtKZDU0Sy80MDBFNEYyNi0yODVCLTQ0OTAtODc2QS1BNjM4QUY2MjkxQTIuaWNz/null" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
nextcloud-web-1 | 172.18.0.6 - - [10/Jul/2023:21:02:11 +0000] "GET /avatar/%7Buser%7D/64/dark HTTP/1.1" 404 2 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" "x.x.x.x"
Log file
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:01:55 +0000 "GET /index.php" 200
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:01:56 +0000 "PROPFIND /remote.php" 207
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:01:57 +0000 "REPORT /remote.php" 207
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:01:57 +0000 "REPORT /remote.php" 207
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:01:59 +0000 "GET /index.php" 302
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:03 +0000 "GET /ocs/v2.php" 304
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:03 +0000 "GET /index.php" 200
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:03 +0000 "GET /index.php" 404
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:09 +0000 "GET /index.php" 200
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:10 +0000 "PROPFIND /remote.php" 207
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:10 +0000 "REPORT /remote.php" 207
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:10 +0000 "PROPFIND /remote.php" 207
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:10 +0000 "REPORT /remote.php" 207
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:10 +0000 "GET /index.php" 200
nextcloud-app-1 | 192.168.16.5 - 10/Jul/2023:21:02:10 +0000 "GET /index.php" 404
Browser log
GET https://nextcloud.my-domaine.fr/avatar/%7Buser%7D/64/dark 404
TypeError: Cannot read properties of null (reading 'toLowerCase')
at s (NcAvatar.js:2:16502)
at o.initialsWrapperStyle (NcAvatar.js:2:169520)
at e.get (vue.runtime.esm.js:3446:33)
at e.evaluate (vue.runtime.esm.js:3547:27)
at o.initialsWrapperStyle (vue.runtime.esm.js:5537:25)
at o.<anonymous> (NcAvatar.js:2:176583)
at e._render (vue.runtime.esm.js:2684:28)
at o.r (vue.runtime.esm.js:3875:27)
at e.get (vue.runtime.esm.js:3446:33)
at e.run (vue.runtime.esm.js:3522:30)
Additional info
HTML link of the attached file ul list
<a data-v-251c7cf0="" id="" href="#" aria-label="" class="list-item">
href="#" is the problem
Must be the blob base64 encoded file
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the public-calendar flow from the reported link: create an event with a Base64-attached file through Evolution, then open it in a logged-out browser and inspect the browser console. Trace the attachment link handling from the public calendar event view; done means clicking the attachment opens the file in a new tab instead of another Calendar tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100