nextcloud / calendar

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

Calendar view not displaying #225

Closed lwt-pressy closed 7 years ago

lwt-pressy commented 7 years ago

Steps to reproduce

  1. Update of calendar from v1.4.0 to v1.4.1

Expected behaviour

calendars are shown

Actual behaviour

Date picker not loading, and showing only '{{dt | datepickerFilter:selectedView}}'
Period filter buttons have no affect
Calendar creation doesn't create a new calendar
Subscription creation doesn't create a new subscription
Main central calendar view is empty

Server configuration

Operating system: Debian-V8.6-x86_64 Web server: apache 2.4.10-10+deb8u7

Database: mysql-server 5.5.53-0+deb8u1 0

PHP version:

Server version: (see your admin page)

10.0.2 (stable) - same behavior on 10.0.1 (stable)

Calendar version: (see the apps page) v1.4.1

Updated from an older installed version or fresh install: updated from v1.4.0

Signing status (ownCloud/Nextcloud 9.0 and above):

No errors have been found.

List of activated apps:

Enabled:
  - activity: 2.3.2
  - admin_audit: 1.0.0
  - calendar: 1.4.0
  - comments: 1.0.0
  - contacts: 1.5.1
  - dav: 1.0.1
  - federatedfilesharing: 1.0.1
  - files: 1.5.2
  - files_accesscontrol: 1.1.2
  - files_external: 1.0.2
  - files_pdfviewer: 0.8.1
  - files_retention: 1.0.0
  - files_texteditor: 2.1
  - files_trashbin: 1.0.0
  - files_versions: 1.3.0
  - firstrunwizard: 1.1
  - gallery: 15.0.1
  - notifications: 0.3.0
  - password_policy: 1.0.0
  - serverinfo: 1.1.1
  - tasks: true
  - templateeditor: 0.1
  - theming: 1.0.1
  - updatenotification: 1.0.1
  - user_ldap: 1.0.1
  - workflowengine: 1.0.1
Disabled:
  - encryption
  - external
  - federation
  - files_automatedtagging
  - files_sharing
  - files_videoplayer
  - provisioning_api
  - survey_client
  - systemtags
  - user_external
  - user_saml

The content of config/config.php:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwritewebroot": "\/mycloud",
        "overwrite.cli.url": "\/mycloud",
        "dbtype": "mysql",
        "version": "9.1.2.2",
        "dbname": "nextcloud10_0",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Berlin",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "php",
        "mail_from_address": "nc",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "logfile": "***REMOVED SENSITIVE VALUE***",
        "log_rotate_size": 104857600,
        "appstore.experimental.enabled": false,
        "maintenance": false,
        "loglevel": 0,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "session_lifetime": 10800,
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "2.3.2",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": "logging"
        },
        "backgroundjob": {
            "lastjob": "48"
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "1.4.1",
            "ocsid": "168707",
            "types": ""
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "1.5.1",
            "ocsid": "168708",
            "types": ""
        },
        "core": {
            "OC_Channel": "stable",
            "backgroundjobs_mode": "cron",
            "incoming_server2server_share_enabled": "no",
            "installedat": "1469964524.114",
            "lastcron": "1481365802",
            "lastupdateResult": "[]",
            "lastupdatedat": "1481365846",
            "oc.integritycheck.checker": "[]",
            "outgoing_server2server_share_enabled": "no",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "remote_caldav": "dav\/appinfo\/v1\/caldav.php",
            "remote_calendar": "dav\/appinfo\/v1\/caldav.php",
            "remote_carddav": "dav\/appinfo\/v1\/carddav.php",
            "remote_contacts": "dav\/appinfo\/v1\/carddav.php",
            "remote_dav": "dav\/appinfo\/v2\/remote.php",
            "remote_files": "dav\/appinfo\/v1\/webdav.php",
            "remote_mozilla_sync": "mozilla_sync\/appinfo\/remote.php",
            "remote_webdav": "dav\/appinfo\/v1\/webdav.php",
            "repairlegacystoragesdone": "yes",
            "shareapi_allow_group_sharing": "no",
            "shareapi_allow_links": "no",
            "shareapi_allow_mail_notification": "no",
            "shareapi_allow_public_upload": "yes",
            "shareapi_allow_resharing": "no",
            "shareapi_allow_share_dialog_user_enumeration": "no",
            "shareapi_default_expire_date": "yes",
            "shareapi_enabled": "yes",
            "shareapi_enforce_expire_date": "yes",
            "shareapi_enforce_links_password": "yes",
            "shareapi_exclude_groups": "no",
            "shareapi_exclude_groups_list": "***REMOVED SENSITIVE VALUE***",
            "shareapi_expire_after_n_days": "1",
            "shareapi_only_share_with_group_members": "yes",
            "updater.secret.created": "1481325699",
            "vendor": "nextcloud"
        },
        "dav": {
            "enabled": "yes",
            "installed_version": "1.0.1",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.0.1",
            "types": ""
        },
        "federation": {
            "autoAddServers": "0",
            "enabled": "no",
            "installed_version": "1.0.1",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "default_quota": "1 GB",
            "enabled": "yes",
            "installed_version": "1.5.2",
            "types": "filesystem"
        },
        "files_accesscontrol": {
            "enabled": "yes",
            "installed_version": "1.1.2",
            "types": "filesystem"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.0.2",
            "ocsid": "166048",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "0.8.1",
            "ocsid": "166049",
            "types": ""
        },
        "files_retention": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": "filesystem"
        },
        "files_sharing": {
            "enabled": "no",
            "incoming_server2server_share_enabled": "no",
            "installed_version": "1.0.0",
            "outgoing_server2server_share_enabled": "no",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "yes",
            "installed_version": "2.1",
            "ocsid": "166051",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": "filesystem"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "files_videoplayer": {
            "enabled": "no",
            "installed_version": "0.9.8",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "1.1",
            "ocsid": "166055",
            "types": ""
        },
        "gallery": {
            "enabled": "yes",
            "installed_version": "15.0.1",
            "types": ""
        },
        "mail": {
            "enabled": "no",
            "installed_version": "0.6.0",
            "ocsid": "169914",
            "signed": "true",
            "types": ""
        },
        "mozilla_sync": {
            "enabled": "no",
            "installed_version": "",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "0.3.0",
            "types": "logging"
        },
        "ownnote": {
            "disableAnnouncement": null,
            "enabled": "no",
            "installed_version": "1.08",
            "ocsid": "168512",
            "types": ""
        },
        "password_policy": {
            "enabled": "yes",
            "enforceNumericCharacters": "1",
            "enforceSpecialCharacters": "1",
            "installed_version": "1.0.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "no",
            "installed_version": "1.0.0",
            "types": "prevent_group_restriction"
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "1.1.1",
            "types": ""
        },
        "survey_client": {
            "enabled": "no",
            "installed_version": "0.1.5",
            "types": ""
        },
        "systemtags": {
            "enabled": "no",
            "installed_version": "1.0.2",
            "types": "logging"
        },
        "tasks": {
            "enabled": "yes",
            "installed_version": "0",
            "ocsid": "164356",
            "types": ""
        },
        "templateeditor": {
            "enabled": "yes",
            "installed_version": "0.1",
            "types": ""
        },
        "theming": {
            "backgroundMime": "image\/jpeg",
            "cachebuster": "25",
            "color": "#00324C",
            "enabled": "yes",
            "installed_version": "1.0.1",
            "logoMime": "image\/png",
            "name": "myCloud",
            "slogan": "***REMOVED SENSITIVE VALUE***",
            "types": "logging",
            "url": "***REMOVED SENSITIVE VALUE***"
        },
        "updatenotification": {
            "calendar": "1.4.1",
            "contacts": "1.5.1",
            "enabled": "yes",
            "installed_version": "1.0.1",
            "notify_groups": "***REMOVED SENSITIVE VALUE***",
            "types": ""
        },
        "user_ldap": {
            "cleanUpJobOffset": "0",
            "enabled": "yes",
            "has_memberof_filter_support": "0",
            "home_folder_naming_rule": "",
            "installed_version": "1.0.1",
            "last_jpegPhoto_lookup": "0",
            "ldap_agent_password": "***REMOVED SENSITIVE VALUE***",
            "ldap_attributes_for_group_search": "cn",
            "ldap_attributes_for_user_search": "uid\ncn\nmailRoutingAddress",
            "ldap_backup_host": "",
            "ldap_backup_port": "",
            "ldap_base": "***REMOVED SENSITIVE VALUE***",
            "ldap_base_groups": "***REMOVED SENSITIVE VALUE***",
            "ldap_base_users": "***REMOVED SENSITIVE VALUE***",
            "ldap_cache_ttl": "60",
            "ldap_configuration_active": "1",
            "ldap_display_name": "cn",
            "ldap_dn": "***REMOVED SENSITIVE VALUE***",
            "ldap_dynamic_group_member_url": "",
            "ldap_email_attr": "mailRoutingAddress",
            "ldap_experienced_admin": "1",
            "ldap_expert_username_attr": "uid",
            "ldap_expert_uuid_group_attr": "cn",
            "ldap_expert_uuid_user_attr": "uid",
            "ldap_group_display_name": "cn",
            "ldap_group_filter": "(&(|(objectclass=posixGroup)))",
            "ldap_group_filter_mode": "1",
            "ldap_group_member_assoc_attribute": "memberUid",
            "ldap_groupfilter_groups": "",
            "ldap_groupfilter_objectclass": "",
            "ldap_host": "ldaps:\/\/ldap.intranet",
            "ldap_login_filter": "(& (objectclass=posixAccount) (| (uid=%uid) (mailRoutingAddress=%uid) ) )",
            "ldap_login_filter_mode": "0",
            "ldap_loginfilter_attributes": "",
            "ldap_loginfilter_email": "0",
            "ldap_loginfilter_username": "1",
            "ldap_nested_groups": "0",
            "ldap_override_main_server": "",
            "ldap_paging_size": "500",
            "ldap_port": "636",
            "ldap_quota_attr": "",
            "ldap_quota_def": "",
            "ldap_tls": "0",
            "ldap_turn_off_cert_check": "0",
            "ldap_user_display_name_2": "mailroutingaddress",
            "ldap_user_filter_mode": "0",
            "ldap_userfilter_groups": "",
            "ldap_userfilter_objectclass": "",
            "ldap_userlist_filter": "(&(objectclass=posixAccount)(mailRoutingAddress=*))",
            "types": "authentication",
            "use_memberof_to_detect_membership": "1"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "1.0.1",
            "types": "filesystem"
        }
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...

local Are you using encryption: yes/no

no Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

ldap

LDAP configuration (delete this part if not used)

+-------------------------------+---------------------------------------------------------------------------+
| Configuration                 |                                                                           |
+-------------------------------+---------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 0                                                                         |
| hasPagedResultSupport         |                                                                           |
| homeFolderNamingRule          |                                                                           |
| lastJpegPhotoLookup           | 0                                                                         |
| ldapAgentName                 | ***REMOVED SENSITIVE VALUE***                                             |
| ldapAgentPassword             | ***REMOVED SENSITIVE VALUE***                                             |
| ldapAttributesForGroupSearch  | cn                                                                        |
| ldapAttributesForUserSearch   | uid;cn;mailRoutingAddress                                                 |
| ldapBackupHost                |                                                                           |
| ldapBackupPort                |                                                                           |
| ldapBase                      | ***REMOVED SENSITIVE VALUE***                                             |
| ldapBaseGroups                | ***REMOVED SENSITIVE VALUE***                                             |
| ldapBaseUsers                 | ***REMOVED SENSITIVE VALUE***                                             |
| ldapCacheTTL                  | 60                                                                        |
| ldapConfigurationActive       | 1                                                                         |
| ldapDynamicGroupMemberURL     |                                                                           |
| ldapEmailAttribute            | mailRoutingAddress                                                        |
| ldapExperiencedAdmin          | 1                                                                         |
| ldapExpertUUIDGroupAttr       | cn                                                                        |
| ldapExpertUUIDUserAttr        | uid                                                                       |
| ldapExpertUsernameAttr        | uid                                                                       |
| ldapGroupDisplayName          | cn                                                                        |
| ldapGroupFilter               | (&(|(objectclass=posixGroup)))                                            |
| ldapGroupFilterGroups         |                                                                           |
| ldapGroupFilterMode           | 1                                                                         |
| ldapGroupFilterObjectclass    |                                                                           |
| ldapGroupMemberAssocAttr      | memberUid                                                                 |
| ldapHost                      | ***REMOVED SENSITIVE VALUE***                                             |
| ldapIgnoreNamingRules         |                                                                           |
| ldapLoginFilter               | (& (objectclass=posixAccount) (| (uid=%uid) (mailRoutingAddress=%uid) ) ) |
| ldapLoginFilterAttributes     |                                                                           |
| ldapLoginFilterEmail          | 0                                                                         |
| ldapLoginFilterMode           | 0                                                                         |
| ldapLoginFilterUsername       | 1                                                                         |
| ldapNestedGroups              | 0                                                                         |
| ldapOverrideMainServer        |                                                                           |
| ldapPagingSize                | 500                                                                       |
| ldapPort                      | 636                                                                       |
| ldapQuotaAttribute            |                                                                           |
| ldapQuotaDefault              |                                                                           |
| ldapTLS                       | 0                                                                         |
| ldapUserDisplayName           | cn                                                                        |
| ldapUserDisplayName2          | mailroutingaddress                                                        |
| ldapUserFilter                | (&(objectclass=posixAccount)(mailRoutingAddress=*))                       |
| ldapUserFilterGroups          |                                                                           |
| ldapUserFilterMode            | 0                                                                         |
| ldapUserFilterObjectclass     |                                                                           |
| ldapUuidGroupAttribute        | auto                                                                      |
| ldapUuidUserAttribute         | auto                                                                      |
| turnOffCertCheck              | 0                                                                         |
| useMemberOfToDetectMembership | 1                                                                         |
+-------------------------------+---------------------------------------------------------------------------+

Client configuration

Browser:

same behavoiur with firefox 45.5.1 or google chrome 55.0.xxx Operating system:

Debian-V8.6-x86_64

CalDAV-clients:

Logs

Web server error log

nothing special here

Log file (data/owncloud.log)

nothing special here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
georgehrke commented 7 years ago

please provide the browser log, that's the most important one here

lwt-pressy commented 7 years ago

what kind of browser log do you need? perhaps an advice how to draw it from firefox.

tcitworld commented 7 years ago

CTRL+MAJ+ K then refresh the page.

lwt-pressy commented 7 years ago

Is this the needed info?

Content Security Policy: The page's settings blocked the loading of a resource at self ("script-src https://nextcloud.intranet 'unsafe-eval'"). calendar:1:0 mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create clipboard.js:635:49

lwt-pressy commented 7 years ago

ncerror

tcitworld commented 7 years ago

Seems like https://github.com/owncloud/calendar/issues/606. cc @LukasReschke

lwt-pressy commented 7 years ago

now I am irritated, the old version (which works and shows calendars) thows the same errors:

Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf self blockiert ("script-src https://nextcloud.intranet 'unsafe-eval'"). calendar:1:0 mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create clipboard.js:635:49

the only difference I see, is the JQMIGRATE message.

lwt-pressy commented 7 years ago

Seems like the same issue with shares. I only ticked "Allow apps to use the Share API" as admin and didn't enable the "File sharing" - App. After enabling the app the calendars are shown in 1.4.1

mrtnmtth commented 7 years ago

I can confirm that I had to enable the File Sharing app in order to have calendars showing properly in version 1.4.1

Edit: should be fixed with PR #215

plutocrat commented 7 years ago

I'm experiencing this too. Just upgraded from 10.0.1 to 10.0.2. Re-enabled the Calendar and Contact apps (the only extra ones I use). Calendar stores data OK and will sync between my devices, but the screen looks like the attached. calendarbug Allow apps to use the Share API is checked. Trying to enable File Sharing app generated an error. "Error while enabling app". Nothing in nextcloud logs. Nothing in nginx access or error logs. Nothing in the javascript window (CTRL SHIFT K and refresh). Also tried disabling and reenabling the Calendar app, but that was disallowed too. Kinda stuck here. But the sync with device works, which is mainly what I use it for.

georgehrke commented 7 years ago

Trying to enable File Sharing app generated an error.

@plutocrat Please report that in https://github.com/nextcloud/server/issues That's not calendar related.

moparisthebest commented 7 years ago

I can confirm that I had to enable the File Sharing app in order to have calendars showing properly in version 1.4.1

I can also confirm this is the case with up-to-date nextcloud stable11 branch and calendar 1.4.1, thanks!

georgehrke commented 7 years ago

Hard dependency on Sharing API and File sharing app was removed with 1.5.0

lwt-pressy commented 7 years ago

I can confirm that with 1.5.0 it work with sharing app disabled and disallow sharing as admin, thx