Calendar: no calendar entries in next month

Created on 19 Oct 2017  Â·  11Comments  Â·  Source: nextcloud/calendar

Steps to reproduce

  1. in monthly view click on next month - month appears empty
  2. then click on "today" (heute) and even the current month appears empty
  3. reloading the page shows again the entries of the current month

If I click on week after 2. the week entries of the current week are shown. After that clicking on monthly view shows the entries of the month again.

firefox debug console shows the following every time the problem appears:
Object { error: true, redirect: false, message: "Der entfernte Server erlaubt keinen…" }

I expect that this problem comes with the latest update.

0. to triage 1 - to develop bug needs info

Most helpful comment

I can confirm this. Having an external calendar
(http://www.ifeiertage.de/sl-.ics - server down at the moment) that fails loading makes next months appear empty.

All 11 comments

@Hoppaz Can you please post the entire issue template __including__ javascript log?
The little german snippet doesn't say a lot ...

can't reproduce

argh... my fault!
... of using proxy settings in config.php

Thank you for your work and sorry for wasting your time...

Maybe a true problem with proxy setting.

If I set the proxy in config.php to my proxy to access the internet the problem appears.

It seems that if application cannot reach the internet via proxy calendar works (proxy not set in config.php).

If I set it ( proxy => 'myproxy:3129' ) I can see that calendar strips the domain from an remote calendar ( using a calendar from www.webcal.fi ) while trying to retrieve the remove content within the squid log and the problem appears.

-> https://help.nextcloud.com/t/js-error-when-synchronising-external-calendar/20320

Seems to be a general problem with external calendar.

As I wrote in the last comment it looks like the host gets stripped from the URL.

@Hoppaz Can you use the issue template and provide logs anyway please? :) Thx!

The behaviour changed a little.

I have removed the web calendar.

If I try to add http://www.webcal.fi/cal.php?id=75&format=ics&wrn=1&wp=4&wf=53&color=%23FF3100&cntr=de&lang=de&rid=wc
I get an error message "Der entfernte Server erlaubt keinen Zugriff auf den Kalender (HTTP {400} Fehler)".

General server configuration

Operating system: Linux nextcloud 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64

Web server: nginx/1.10.3 (fpm-fcgi)

Database: mysql 10.1.26

PHP version: 7.0.19-1


PHP-modules loaded

 - Core
 - date
 - libxml
 - openssl
 - pcre
 - zlib
 - filter
 - hash
 - Reflection
 - SPL
 - session
 - standard
 - cgi-fcgi
 - mysqlnd
 - PDO
 - xml
 - apcu
 - apc
 - calendar
 - ctype
 - curl
 - dom
 - mbstring
 - fileinfo
 - ftp
 - gd
 - gettext
 - iconv
 - igbinary
 - intl
 - json
 - ldap
 - exif
 - mysqli
 - pdo_mysql
 - Phar
 - posix
 - readline
 - redis
 - shmop
 - SimpleXML
 - sockets
 - sysvmsg
 - sysvsem
 - sysvshm
 - tokenizer
 - wddx
 - xmlreader
 - xmlwriter
 - xsl
 - zip
 - Zend OPcache

Nextcloud configuration

Nextcloud version: 12.0.3 - 12.0.3.3

Updated from an older Nextcloud/ownCloud or fresh install: Fresh install

Where did you install Nextcloud from: nextcloud.com

Are you using external storage, if yes which one: files_external is disabled

Are you using encryption: no

Are you using an external user-backend, if yes which one: no


Signing status

[]


Enabled apps

 - activity: 2.5.2
 - admin_audit: 1.2.0
 - admin_notifications: 1.0.0
 - bruteforcesettings: 1.0.2
 - calendar: 1.5.6
 - checksum: 0.3.5
 - circles: 0.13.3
 - cms_pico: 0.9.6
 - comments: 1.2.0
 - contacts: 2.0.1
 - dashboard: 4.0.5
 - dav: 1.3.0
 - external: 2.0.3
 - federatedfilesharing: 1.2.0
 - federation: 1.2.0
 - files: 1.7.2
 - files_clipboard: 0.6.4
 - files_downloadactivity: 1.1.1
 - files_pdfviewer: 1.1.1
 - files_retention: 1.1.2
 - files_sharing: 1.4.0
 - files_texteditor: 2.4.1
 - files_trashbin: 1.2.0
 - files_versions: 1.5.0
 - files_videoplayer: 1.1.0
 - firstrunwizard: 2.1
 - gallery: 17.0.0
 - issuetemplate: 0.2.2
 - logreader: 2.0.0
 - lookup_server_connector: 1.0.0
 - mail: 0.7.3
 - metadata: 0.5.0
 - nextcloud_announcements: 1.1
 - notes: 2.3.1
 - notifications: 2.0.0
 - oauth2: 1.0.5
 - ocsms: 1.12.1
 - onlyoffice: 1.1.5
 - password_policy: 1.2.2
 - phonetrack: 0.0.5
 - polls: 0.8.0
 - previewgenerator: 1.0.7
 - provisioning_api: 1.2.0
 - serverinfo: 1.2.0
 - sharebymail: 1.2.0
 - socialsharing_email: 1.0.1
 - spreed: 2.0.1
 - spreedme: 0.3.11
 - survey_client: 1.0.0
 - systemtags: 1.2.0
 - tasks: 0.9.5
 - theming: 1.3.0
 - twofactor_backupcodes: 1.1.1
 - twofactor_totp: 1.3.1
 - updatenotification: 1.2.0
 - user_external: 0.4
 - workflowengine: 1.2.0


Disabled apps

 - drawio
 - encryption
 - files_external
 - ownpad
 - rainloop
 - user_ldap
 - weather
 - workin2gether


Content of config/config.php

{
    "instanceid": "ocfc54378fch",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "10.1.3.20",
        "nc.peamx.de"
    ],
    "proxy": "10.1.3.1:3128",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "localhost",
        "port": 6379
    },
    "datadirectory": "\/var\/www\/data",
    "overwrite.cli.url": "http:\/\/10.1.3.20",
    "dbtype": "mysql",
    "version": "12.0.3.3",
    "dbname": "nextcloud",
    "dbhost": "10.1.1.105",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "trusted_proxies": [
        "10.1.3.10"
    ],
    "forwarded_for_headers": [
        "HTTP_X_FORWARDED_FOR"
    ],
    "mail_from_address": "foobar",
    "mail_smtpmode": "php",
    "mail_smtpauthtype": "LOGIN",
    "mail_domain": "peamx.de",
    "maintenance": false,
    "theme": "",
    "loglevel": 2
}

Client configuration

Browser: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Operating system: debian 9

Logs


Nextcloud log (data/nextcloud.log)
{"reqId":"MMo7ByBG2XCnMBvDxgTj","level":1,"time":"2017-10-21T04:14:32+00:00","remoteAddr":"10.1.1.155","user":"--","app":"admin_audit","method":"GET","url":"\/index.php\/apps\/calendar\/v1\/proxy?url=http%3A%2F%2Fwww.webcal.fi%2Fcal.php%3Fid%3D75%26format%3Dics%26wrn%3D1%26wp%3D4%26wf%3D53%26color%3D%2523FF3100%26cntr%3Dde%26lang%3Dde%26rid%3Dwc","message":"Login attempt: \"lars\"","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.3.3"}
{"reqId":"MMo7ByBG2XCnMBvDxgTj","level":1,"time":"2017-10-21T04:14:32+00:00","remoteAddr":"10.1.1.155","user":"lars","app":"admin_audit","method":"GET","url":"\/index.php\/apps\/calendar\/v1\/proxy?url=http%3A%2F%2Fwww.webcal.fi%2Fcal.php%3Fid%3D75%26format%3Dics%26wrn%3D1%26wp%3D4%26wf%3D53%26color%3D%2523FF3100%26cntr%3Dde%26lang%3Dde%26rid%3Dwc","message":"Login successful: \"lars\"","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.3.3"}
{"reqId":"MMo7ByBG2XCnMBvDxgTj","level":0,"time":"2017-10-21T04:14:32+00:00","remoteAddr":"10.1.1.155","user":"lars","app":"no app in context","method":"GET","url":"\/index.php\/apps\/calendar\/v1\/proxy?url=http%3A%2F%2Fwww.webcal.fi%2Fcal.php%3Fid%3D75%26format%3Dics%26wrn%3D1%26wp%3D4%26wf%3D53%26color%3D%2523FF3100%26cntr%3Dde%26lang%3Dde%26rid%3Dwc","message":"CSRF check failed","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:52.0) Gecko\/20100101 Firefox\/52.0","version":"12.0.3.3"}


Proxy log

I can see the following entry in the squid log:
1508507931.894 0 10.1.3.20 TAG_NONE/400 4080 GET /cal.php?id=75&format=ics&wrn=1&wp=4&wf=53&color=%23FF3100&cntr=de&lang=de&rid=wc - HIER_NONE/- text/html

If I do it with wget on the command line of the nextcloud server it works:

root@nextcloud:/var/www/data# export http_proxy=10.1.3.1:3128
root@nextcloud:/var/www/data# LANG=C wget "http://www.webcal.fi/cal.php?id=75&format=ics&wrn=1&wp=4&wf=53&color=%23FF3100&cntr=de&lang=de&rid=wc" -O cal.ics
--2017-10-20 16:03:29-- http://www.webcal.fi/cal.php?id=75&format=ics&wrn=1&wp=4&wf=53&color=%23FF3100&cntr=de&lang=de&rid=wc
Connecting to 10.1.3.1:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/calendar]
Saving to: 'cal.ics'

cal.ics [ <=> ] 32.71K --.-KB/s in 0.003s

2017-10-20 16:03:29 (12.3 MB/s) - 'cal.ics' saved [33492]

and the corresponding entry in squid log looks like this:
1508508190.879 52 10.1.3.20 TCP_MISS/200 34559 GET http://www.webcal.fi/cal.php? - HIER_DIRECT/104.28.31.21 text/calendar

I can independently confirm this bug on my installation. I've discovered it happens when you try and navigate when the calendars and the subscriptions haven't finished loading yet.

I've discovered it happens when you try and navigate when the calendars and the subscriptions haven't finished loading yet.

Very important detail! Thx for the hint :)

I can confirm this. Having an external calendar
(http://www.ifeiertage.de/sl-.ics - server down at the moment) that fails loading makes next months appear empty.

As far as I can tell this will be fixed with https://github.com/nextcloud/calendar/pull/707/files#diff-ed42dc2bca6b9081ba3850baa1a59ebbR117

This patch will be released with 1.6.0 in the next couple of days. Please speak up if it was not fixed.

Was this page helpful?
0 / 5 - 0 ratings