nextcloud / contacts

📇 Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
562 stars 169 forks source link

Contacts App integrity check failed after update to Nextcloud 20.0.3 #1981

Closed PunchIng closed 3 years ago

PunchIng commented 3 years ago

Describe the bug

A clear and concise description of what the bug is. ...... ......

To Reproduce Steps to reproduce the behavior:

  1. update to Nextcloud 20.0.3
  2. Click on 'Settings', 'Overview'
  3. See error: "Some files have failed the integrity check"

Expected behavior No warnings

Actual behavior Setup warning: some data failed integrity check

List of invalid data: Integrity check failed for some data:

Server configuration

Operating system: Synology DSM 6.2.3-25426 Update 2

Web server: Apache 2.4

Database: MariaDB 10

PHP version: 7.3

Nextcloud version: 20.0.3

Contacts version: 3.4.2

Updated from an older Nextcloud or fresh install: update from 20.0.2

Signing status:

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- contacts
    - INVALID_HASH
        - lib/Controller/ContactsController.php

Raw output
==========
Array
(
    [contacts] => Array
        (
            [INVALID_HASH] => Array
                (
                    [lib/Controller/ContactsController.php] => Array
                        (
                            [expected] => 6d9c87d7ca184eac91270fb778dc7a1969156c7a3688bbca9f16af4de64574f0afdc0676bc088563a1da2f07d1edce53c29c2bbb5ac9bfd11f9aa53e55925ec0
                            [current] => aa857698b3bd994b6b0f86c9fe88ac9d099852ce12f47c20aae3cd2905ff80d00fe259f0b69df1bbc955cc6f81afe47fb51397b31cee4a0088b7aa709f45abab
                        )

                )

        )

)

**List of activated apps:**
  - accessibility: 1.6.0
  - bruteforcesettings: 2.0.1
  - calendar: 2.1.2
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - contacts: 3.4.2
  - dav: 1.16.1
  - federatedfilesharing: 1.10.1
  - federation: 1.10.1
  - files: 1.15.0
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.0
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - firstrunwizard: 2.9.0
  - groupfolders: 8.2.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - nextcloud_announcements: 1.9.0
  - notes: 4.0.1
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - occweb: 0.0.7
  - password_policy: 1.10.1
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - support: 1.3.0
  - survey_client: 1.8.0
  - systemtags: 1.10.0
  - text: 3.1.0
  - twofactor_backupcodes: 1.9.0
  - updatenotification: 1.10.0
  - user_status: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0

**Nextcloud configuration:**
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.178.10",
            "ikern.dd-dns.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "20.0.3.2",
        "overwrite.cli.url": "https:\/\/192.168.178.10\/nextcloud",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "app_install_overwrite": [
            "occweb"
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mysql.utf8mb4": true,
        "updater.release.channel": "stable",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

### Client configuration
**Browser:**
Firefox 83.0

**Operating system:**
Windows 10

**CardDAV-clients:**
TBSync 1.7.9
Provider for CalDAV DardDAV 0.15.16

### Logs
#### *Web server error log*

Insert your webserver log here


### Nextcloud log
#### *data/nextcloud.log*

Insert your Nextcloud log here (empty)

Browser log

How to access your browser console (Click to expand) # Chrome - Press either CTRL + SHIFT + J to open the “console” tab of the Developer Tools. - Alternative method: 1. Press either CTRL + SHIFT + I or F12 to open the Developer Tools. 2. Click the “console” tab. # Safari - Press CTRL + ALT + I to open the Web Inspector. - See Chrome’s step 2. (Chrome and Safari have pretty much identical dev tools.) # IE9 1. Press F12 to open the developer tools. 2. Click the “console” tab. # Firefox - Press CTRL + SHIFT + K to open the Web console (COMMAND + SHIFT + K on Macs). - or, if Firebug is installed (recommended): 1. Press F12 to open Firebug. 2. Click on the “console” tab. # Opera 1. Press CTRL + SHIFT + I to open Dragonfly. 2. Click on the “console” tab.

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

No OC found index.js:46:12
JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js:2:551
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15
Notifications permissions granted App.vue:296
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 3 globals.js:60:15
jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 3 globals.js:60:15
session heartbeat polling started session-heartbeat.js:97:9
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 2 globals.js:60:15
Files_PDFViewer initialized for public page 
Object { isPublicPage: null, canDownload: true, isSecureViewerAvailable: false }
public.js:30:9
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 54 globals.js:60:15
[DEBUG] unified-search: Unified Search initialized with the following providers 
Object { 0: {…}, 1: {…}, 2: {…}, 3: {…}, 4: {…}, 5: {…}, 6: {…}, 7: {…}, app: "unified-search", uid: "Kern" }
ConsoleLogger.js:42:18
$ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15
skjnldsv commented 3 years ago

Did you edited the file? Can you remove the app and install it again please?

PunchIng commented 3 years ago

It's the original file that didn't cause any issues before the update of Nextcloud to 20.0.3 I removed the app and re-installed it - the warning was / is still the same...

PunchIng commented 3 years ago

Question: Is it possible that the update to Nextcloud 20.0.3 replaced a file containing the hash of the ContactsController.php file? Could that file containing the hash be restored?

skjnldsv commented 3 years ago

Question: Is it possible that the update to Nextcloud 20.0.3 replaced a file containing the hash of the ContactsController.php file? Could that file containing the hash be restored?

No, it's all depending on the contacts app. I find i weird. Can you retrigger a integrity scan from occ?

PunchIng commented 3 years ago

This is the result of occ integrity:check-app --path=/nextcloud/apps/contacts contacts

PunchIng commented 3 years ago

No idea why, but replacing the ContactsController.php file once more solved the issue. I downloaded the zip folder from apps.nextcloud.com/apps/contacts and transferred only the incriminated file - via ftp in binary mode (!) - fixed!