nextcloud / files_antivirus

👾 Antivirus app for Nextcloud Files
https://apps.nextcloud.com/apps/files_antivirus
GNU Affero General Public License v3.0
86 stars 36 forks source link

[Bug]: SMB Readme.md OCP\\Files\\ForbiddenException #366

Open mellow2012 opened 2 months ago

mellow2012 commented 2 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Hello, in the error log i have many errors with no app in context and file_antivirus. All files are Readme.md files generated from the text app (rich workspaces). The are all empty and on a SMB storage.

Steps to reproduce

1. 2. 3.

Expected behavior

no errors in the log

Installation method

Community Manual installation with Archive

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

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

Updated from a MINOR version (ex. 28.0.1 to 28.0.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "htaccess.IgnoreFrontController": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "maintenance_window_start": 1,
        "trusted_domains": [
            "lautwerfer.cloud",
            "*.lautwerfer.cloud",
            "lautwerfer.de",
            "80.147.224.124"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.4.1",
        "overwritehost": "lautwerfer.cloud",
        "overwrite.cli.url": "https:\/\/lautwerfer.cloud",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "share_folder": "\/Freigaben\/",
        "default_phone_region": "DE",
        "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***",
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "default_language": "de",
        "default_locale": "de_DE",
        "maintenance": false,
        "theme": "",
        "log_type": "file",
        "logfile": "data\/nextcloud.log",
        "loglevel": 2,
        "log_query": false,
        "logdateformat": "F d, Y H:i:s",
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "data-fingerprint": "3b3721d73b04e89385d9fa668658ca5d",
        "app_install_overwrite": [
            "files_antivirus",
            "breezedark",
            "extract",
            "video_converter",
            "cfg_share_links",
            "files_downloadlimit",
            "files_texteditor"
        ],
        "enforce_theme": "",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\Image",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\Font",
            "OC\\Preview\\MP3",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\ARW",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MSOffice2007",
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\MD"
        ],
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "preview_max_filesize_image": 50,
        "preview_max_memory": 1024
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - admin_audit: 1.19.0
  - analytics: 4.14.0
  - audioplayer: 3.4.1
  - bookmarks: 14.2.2
  - bruteforcesettings: 2.9.0
  - calendar: 4.7.14
  - calendar_resource_management: 0.8.0
  - cfg_share_links: 5.1.0
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - cospend: 1.6.1
  - dashboard: 7.9.0
  - dav: 1.30.1
  - drawio: 3.0.2
  - external: 5.4.0
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_antivirus: 5.5.7
  - files_automatedtagging: 1.19.0
  - files_external: 1.21.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_retention: 1.18.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - firstrunwizard: 2.18.0
  - forms: 4.2.4
  - guests: 3.1.0
  - integration_giphy: 1.0.11
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - mail: 3.7.6
  - memegen: 1.1.0
  - notifications: 2.17.0
  - notify_push: 0.7.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - passwords: 2024.7.20
  - phonetrack: 0.8.1
  - photos: 2.5.0
  - polls: 7.1.4
  - previewgenerator: 5.6.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - quota_warning: 1.19.0
  - related_resources: 1.4.0
  - richdocuments: 8.4.4
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - sharelisting: 1.2.0
  - sharereview: 1.0.2
  - side_menu: 3.13.1
  - spreed: 19.0.7
  - systemtags: 1.19.0
  - tables: 0.7.5
  - tasks: 0.16.0
  - terms_of_service: 2.5.0
  - text: 3.10.1
  - theming: 2.4.0
  - theming_customcss: 1.17.0
  - translate: 2.2.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_ldap: 1.20.0
  - user_status: 1.9.0
  - viewer: 2.3.0
  - workflow_ocr: 1.29.0
  - workflowengine: 2.11.0
Disabled:
  - contactsinteraction: 1.10.0 (installed 1.6.0)
  - deck: 1.13.1 (installed 1.13.1)
  - encryption: 2.17.0
  - files_downloadlimit: 2.0.0 (installed 1.1.0)
  - nextcloud_announcements: 1.18.0 (installed 1.12.0)
  - recommendations: 2.1.0 (installed 1.2.0)
  - support: 1.12.0 (installed 1.6.0)
  - survey_client: 1.17.0 (installed 1.11.0)
  - suspicious_login: 7.0.0
  - twofactor_totp: 11.0.0-dev
  - weather_status: 1.9.0 (installed 1.3.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"tG48irEjoiviOE6a8TkK","level":3,"time":"2024-08-02T09:50:07+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner::processFiles, exception: Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","userAgent":"--","version":"29.0.4.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","Code":0,"Trace":[{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":697,"function":"getFileInfo","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":484,"function":"file_exists","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/AvirWrapper.php","line":64,"function":"fopen","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":307,"function":"fopen","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":1169,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":997,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Node/File.php","line":116,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":197,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":80,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":91,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":293,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":145,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":98,"function":"processFiles","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":81,"function":"scan","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","Line":215,"Previous":{"Exception":"Icewind\\SMB\\Exception\\ForbiddenException","Message":"Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","Code":13,"Trace":[{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":75,"function":"fromMap","class":"Icewind\\SMB\\Exception\\Exception","type":"::"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":92,"function":"handleError","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":351,"function":"testResult","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php","line":305,"function":"getxattr","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php","line":43,"function":"getAttribute","class":"Icewind\\SMB\\Native\\NativeShare","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php","line":69,"function":"stat","class":"Icewind\\SMB\\Native\\NativeFileInfo","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php","line":114,"function":"getSize","class":"Icewind\\SMB\\Native\\NativeFileInfo","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":201,"function":"stat","class":"Icewind\\SMB\\Native\\NativeShare","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":697,"function":"getFileInfo","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":484,"function":"file_exists","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/AvirWrapper.php","line":64,"function":"fopen","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":307,"function":"fopen","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":1169,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":997,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Node/File.php","line":116,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":197,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":80,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":91,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":293,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":145,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":98,"function":"processFiles","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":81,"function":"scan","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Exception/Exception.php","Line":44},"message":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner::processFiles, exception: Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","exception":[],"CustomMessage":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner::processFiles, exception: Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)"},"id":"66acabd62b076"}
{"reqId":"tG48irEjoiviOE6a8TkK","level":3,"time":"2024-08-02T09:50:07+00:00","remoteAddr":"","user":"--","app":"files_antivirus","method":"","url":"--","message":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner::processFiles, exception: Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","userAgent":"--","version":"29.0.4.1","exception":{"Exception":"OCP\\Files\\ForbiddenException","Message":"Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","Code":0,"Trace":[{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":697,"function":"getFileInfo","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":484,"function":"file_exists","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/AvirWrapper.php","line":64,"function":"fopen","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":307,"function":"fopen","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":1169,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":997,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Node/File.php","line":116,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":197,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":80,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":91,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":293,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":145,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":98,"function":"processFiles","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":81,"function":"scan","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","Line":215,"Previous":{"Exception":"Icewind\\SMB\\Exception\\ForbiddenException","Message":"Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","Code":13,"Trace":[{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":75,"function":"fromMap","class":"Icewind\\SMB\\Exception\\Exception","type":"::"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":92,"function":"handleError","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php","line":351,"function":"testResult","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php","line":305,"function":"getxattr","class":"Icewind\\SMB\\Native\\NativeState","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php","line":43,"function":"getAttribute","class":"Icewind\\SMB\\Native\\NativeShare","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php","line":69,"function":"stat","class":"Icewind\\SMB\\Native\\NativeFileInfo","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php","line":114,"function":"getSize","class":"Icewind\\SMB\\Native\\NativeFileInfo","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":201,"function":"stat","class":"Icewind\\SMB\\Native\\NativeShare","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":697,"function":"getFileInfo","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":484,"function":"file_exists","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/AvirWrapper.php","line":64,"function":"fopen","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":307,"function":"fopen","class":"OCA\\Files_Antivirus\\AvirWrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":1169,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/View.php","line":997,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/private/Files/Node/File.php","line":116,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":197,"function":"fopen","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Item.php","line":80,"function":"getFileHandle","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/Scanner/ScannerBase.php","line":91,"function":"fread","class":"OCA\\Files_Antivirus\\Item","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":293,"function":"scan","class":"OCA\\Files_Antivirus\\Scanner\\ScannerBase","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":145,"function":"scanOneFile","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":98,"function":"processFiles","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_antivirus/lib/BackgroundJob/BackgroundScanner.php","line":81,"function":"scan","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/var/www/vhosts/example.cloud/httpdocs/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Exception/Exception.php","Line":44},"message":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner::processFiles, exception: Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)","exception":[],"CustomMessage":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner::processFiles, exception: Invalid request for /Allgemein/OBS/Unbenannt/Readme.md (ForbiddenException)"},"id":"66acabd62b076"}

Additional info

No response

kesselb commented 2 months ago

Thanks for your report :+1:

Closing as duplicate of https://github.com/nextcloud/server/issues/42663

mellow2012 commented 2 months ago

sorry @kesselb i think it‘s not the same problem there. i tested the workaround but the error is still there. and i have also no problems with the displaying of the readme.md files, only the error in the log „no app in context“ and „files_antivirus“ are there every 15min.

joshtrichards commented 2 months ago

What's the authentication set-up for this External Storage mount?

mellow2012 commented 2 months ago

hi it is the "login data from user save in database" in german it is "Anmeldedaten des Benutzers(in Datenbank gespeichern)"

mellow2012 commented 1 month ago

Hi, are there any news about this?