Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Maps refuses to scan unencrypted folder because encryption module is enabled #1276

Open
6 of 9 tasks
sgofferj opened this issue Jun 6, 2024 · 0 comments
Open
6 of 9 tasks

Comments

@sgofferj
Copy link

sgofferj commented Jun 6, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

I try to scan tracks for a custom map on unencrypted home storage but maps refuses with "Encryption is enabled. Aborted.". The encryption module is indeed enabled, however not in use for local storage. Only external storage is encrypted.

Screenshot_20240606_093713

Steps to reproduce

  1. Activate encryption module
  2. Don't activate home storage encryption
  3. Try to scan

Expected behavior

Maps should verify if a storage location actually is encrypted and if not, scan.

Installation method

Official Docker image

Operating system

Debian/Ubuntu

PHP engine version

Other

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install of the server?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Is this bug present after an update or on a fresh install of the app?

Fresh Nextcloud Maps install (never installed before)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.gofferje.net"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "overwrite.cli.url": "https:\/\/cloud.gofferje.net",
        "overwritehost": "cloud.gofferje.net",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "28.0.6.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "simpleSignUpLink.shown": false,
        "theme": "",
        "maintenance": false,
        "default_phone_region": "FI",
        "asset-pipeline.enabled": false,
        "loglevel": 2,
        "trashbin_retention_obligation": "30, 35",
        "defaultapp": "",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_smtpsecure": "tls",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mysql.utf8mb4": true,
        "updater.release.channel": "stable",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\PDF"
        ],
        "rewrite_url": false,
        "app_install_overwrite": [
            "files_downloadactivity",
            "files_external_gdrive",
            "mindmap_app",
            "dicomviewer",
            "ownbackup",
            "files_frommail",
            "ransomware_detection",
            "drawio",
            "carnet",
            "files_retention",
            "files_mindmap",
            "twofactor_totp",
            "riotchat",
            "workflow_script",
            "files_texteditor",
            "apporder",
            "impersonate",
            "files_markdown",
            "files_readmemd",
            "socialsharing_email",
            "cms_pico",
            "webhooks"
        ],
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "has_rebuilt_cache": true,
        "mail_sendmailmode": "smtp",
        "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***",
            "port": 6379,
            "timeout": 0,
            "dbindex": 0
        },
        "maintenance_window_start": 1
    }
}

List of activated Apps

Enabled:
  - activity: 2.20.0
  - admin_audit: 1.18.0
  - announcementcenter: 6.8.1
  - appointments: 2.1.3
  - audioplayer: 3.4.1
  - bookmarks: 14.1.1
  - bruteforcesettings: 2.8.0
  - calendar: 4.7.6
  - circles: 28.0.0
  - cloud_federation_api: 1.11.0
  - cms_pico: 1.0.21
  - collectives: 2.11.0
  - comments: 1.18.0
  - contacts: 5.5.3
  - contactsinteraction: 1.9.0
  - dashboard: 7.8.0
  - dav: 1.29.1
  - deck: 1.12.2
  - dicomviewer: 2.1.2
  - encryption: 2.16.0
  - event_update_notification: 2.4.0
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_accesscontrol: 1.18.1
  - files_automatedtagging: 1.18.0
  - files_external: 1.20.0
  - files_markdown: 2.4.1
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_retention: 1.17.2
  - files_sharing: 1.20.0
  - files_texteditor: 2.15.1
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - firstrunwizard: 2.17.0
  - forms: 4.2.4
  - geoblocker: 0.5.14
  - gpxpod: 5.0.18
  - group_everyone: 0.1.15
  - groupfolders: 16.0.6
  - impersonate: 1.15.0
  - integration_mastodon: 2.0.5
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - mail: 3.7.0
  - maps: 1.4.0
  - metadata: 0.20.0
  - notes: 4.10.0
  - notifications: 2.16.0
  - oauth2: 1.16.3
  - password_policy: 1.18.0
  - passwords: 2024.5.20
  - photos: 2.4.0
  - previewgenerator: 5.5.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - related_resources: 1.3.0
  - richdocuments: 8.3.7
  - secrets: 1.5.2
  - serverinfo: 1.18.0
  - settings: 1.10.1
  - sharebymail: 1.18.0
  - socialsharing_email: 3.1.0
  - spreed: 18.0.8
  - systemtags: 1.18.0
  - tables: 0.7.2
  - tasks: 0.16.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - twofactor_totp: 10.0.0-beta.2
  - twofactor_webauthn: 1.4.0
  - updatenotification: 1.18.0
  - user_status: 1.8.1
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - webhooks: 0.4.3
  - workflow_script: 1.13.1
  - workflowengine: 2.10.0
Disabled:
  - files_downloadactivity: 1.16.0 (installed 1.16.0)
  - files_readmemd: 2.0.1 (installed 2.0.1)
  - nextcloud_announcements: 1.17.0 (installed 1.10.0)
  - ransomware_protection: 1.14.0 (installed 1.14.0)
  - recommendations: 2.0.0 (installed 0.4.0)
  - support: 1.11.1 (installed 1.0.0)
  - survey_client: 1.16.0 (installed 1.1.0)
  - suspicious_login: 6.0.0 (installed 3.1.0)
  - user_ldap: 1.19.0 (installed 1.8.0)

Nextcloud Signing status

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
=======
- mail
	- EXTRA_FILE
		- vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/4.15.0,3478238e680361cd87bf880f5b3cc50a1e7abc6c,1.ser
		- vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/4.15.0,100a0d442686872045400b774dcb082c945a1908,2019080701.ser

Raw output
==========
Array
(
    [mail] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/4.15.0,3478238e680361cd87bf880f5b3cc50a1e7abc6c,1.ser] => Array
                        (
                            [expected] => 
                            [current] => 403272903ab6fd6acf8073eff7d4449d1d3c14a96ea299c257a66b334e44b09b0554c4f3be88a269f233dc1ec7e077e739d7a6d2c744dc9e1dadd7757ed1ca09
                        )

                    [vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/4.15.0,100a0d442686872045400b774dcb082c945a1908,2019080701.ser] => Array
                        (
                            [expected] => 
                            [current] => c68d95b7adc0174b7dcdc500b4480d4e29378ecda31c124be014323035795d47678e4d77629e7cfc8a667f6ec49863274ee48654b0a93d18e3a20c9f0febcdbf
                        )

                )

        )

)

Nextcloud Logs

Error	index	
LockedException "Maps/GPX" is locked, existing lock on file: 2 shared locks
6 Jun 2024, 09:26:05 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 08:40:41 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 08:40:40 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:59 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:52 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:45 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:39 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:34 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:27 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:20 	
Warning	mail	
Flagged message is not cached
6 Jun 2024, 07:39:15 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 07:38:50 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 07:38:49 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 07:36:31 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 07:36:30 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 07:33:10 	
Fatal	passwords	
FaviconRequestException The request to the favicon service failed
6 Jun 2024, 07:33:09 	
Error	index	
BadRequestException userId must be provided and must be not empty
6 Jun 2024, 07:23:54

Browser Console

Not relevant - used occ maps:scan-tracks

Additional info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant