nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.36k stars 4.06k forks source link

[Bug]: `Enforce Windows compatibility` triggers error in applications tab (30.0.2 RC2) #49103

Open Cisco30 opened 2 days ago

Cisco30 commented 2 days ago

⚠️ This issue respects the following points: ⚠️

Bug description

Hi, if you select the "Applications" tab in an administrator's menu there are links that are broken.

Image

Image

Steps to reproduce

1.go to the "Applications" tab 2.broken links are noticed 3.Error in nextcloud.log file displayed

Expected behavior

we should have a correct display

Nextcloud Server version

30

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?

None

What user-backends are you using?

Configuration report

{ "system": { "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "cloud.seeboxs.com", "www.cloud.seeboxs.com" ], "datadirectory": "REMOVED SENSITIVE VALUE", "dbtype": "mysql", "version": "30.0.2.1", "overwrite.cli.url": "https:\/\/cloud.seeboxs.com", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "default_phone_region": "FR", "htaccess.RewriteBase": "\/", "trashbin_retention_obligation": "auto, 30", "filelocking.enabled": "true", "knowledgebaseenabled": false, "activity_expire_days": 7, "skeletondirectory": "\/var\/www\/extra_nextcloud\/skeleton\/", "redis": { "host": "REMOVED SENSITIVE VALUE", "port": "0", "timeout": "0.0" }, "memcache.distributed": "\OC\Memcache\Redis", "memcache.local": "\OC\Memcache\Redis", "memcache.locking": "\OC\Memcache\Redis", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "465", "mail_smtpauth": 1, "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "default_language": "fr", "default_locale": "fr_FR", "updater.release.channel": "beta", "maintenance_window_start": 1, "maintenance": false, "integrity.check.disabled": false, "enable_previews": true, "enabledPreviewProviders": { "1": "OC\Preview\BMP", "2": "OC\Preview\GIF", "3": "OC\Preview\JPEG", "4": "OC\Preview\Krita", "5": "OC\Preview\MarkDown", "6": "OC\Preview\MP3", "7": "OC\Preview\OpenDocument", "8": "OC\Preview\PNG", "9": "OC\Preview\TXT", "10": "OC\Preview\XBitmap", "11": "OC\Preview\Image", "12": "OC\Preview\HEIC", "13": "OC\Preview\TIFF", "14": "OC\Preview\Movie", "15": "OC\Preview\MP4", "16": "OC\Preview\PDF" }, "preview_max_x": 1024, "preview_max_y": 1024, "preview_concurrency_all": 16, "preview_concurrency_new": 8, "preview_max_filesize_image": 200, "preview_max_memory": -1, "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg", "theme": "", "defaultapp": "", "loglevel": 2, "updatechecker": true, "has_internet_connection": true, "app_install_overwrite": [ "twofactor_email", "otpmanager", "socialsharing_facebook", "maps" ], "forbidden_filename_basenames": [ "con", "prn", "aux", "nul", "com0", "com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9", "com\u00b9", "com\u00b2", "com\u00b3", "lpt0", "lpt1", "lpt2", "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9", "lpt\u00b9", "lpt\u00b2", "lpt\u00b3" ], "forbidden_filename_characters": [ "<", ">", ":", "\"", "|", "?", "*", "\", "\/" ], "forbidden_filename_extensions": [ " ", ".", ".filepart", ".part" ] } }

List of activated Apps

Enabled:

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"SSEIcUBTRAc497kX6WZB","level":2,"time":"2024-11-05T18:07:23+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"no app in context","method":"GET","url":"/settings/apps","message":"Invalid defaultDaemonConfig data provided to provideInitialState by settings","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","version":"30.0.2.1","data":[]}
{"reqId":"ySGmhmCYYGl2abEBfBC6","level":3,"time":"2024-11-05T18:07:24+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"index","method":"GET","url":"/settings/api/apps/media?fileName=https%3A%2F%2Fnextcloud.com%2Fc%2Fuploads%2F2024%2F09%2FNextcloud-Hub-9-1024x576.jpg","message":"Exception thrown: OCP\\Files\\NotFoundException","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","version":"30.0.2.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":359,"function":"getFileInfo","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":159,"function":"getMountPoint","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","line":179,"function":"getStorage","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","line":47,"function":"isUserNode","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->"},{"function":"OCA\\Maps\\Hooks\\{closure}","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php","line":88,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php","line":22,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Root.php","line":125,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":110,"function":"emit","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":145,"function":"sendHooks","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php","line":86,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":144,"function":"newFolder","class":"OC\\Files\\SimpleFS\\SimpleFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"getAppDiscoverMedia","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php","Line":90,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"}}
{"reqId":"v24oGbTRe6iE35i2mdDT","level":3,"time":"2024-11-05T18:07:24+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"index","method":"GET","url":"/settings/api/apps/media?fileName=https%3A%2F%2Fgithub.com%2Fnextcloud%2Ffirstrunwizard%2Fraw%2Fmaster%2Fimg%2FNextcloud.webm","message":"Exception thrown: OCP\\Files\\NotFoundException","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","version":"30.0.2.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":359,"function":"getFileInfo","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":159,"function":"getMountPoint","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","line":179,"function":"getStorage","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","line":47,"function":"isUserNode","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->"},{"function":"OCA\\Maps\\Hooks\\{closure}","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php","line":88,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php","line":22,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Root.php","line":125,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":110,"function":"emit","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":145,"function":"sendHooks","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php","line":86,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":144,"function":"newFolder","class":"OC\\Files\\SimpleFS\\SimpleFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"getAppDiscoverMedia","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php","Line":90,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"}}
{"reqId":"0MiYzdHO1473Ezlq41GW","level":3,"time":"2024-11-05T18:07:25+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"index","method":"GET","url":"/settings/api/apps/media?fileName=https%3A%2F%2Fgithub.com%2Fnextcloud%2Ffirstrunwizard%2Fraw%2Fmaster%2Fimg%2FNextcloud.mp4","message":"Exception thrown: OCP\\Files\\NotFoundException","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","version":"30.0.2.1","exception":{"Exception":"OCP\\Files\\NotFoundException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":359,"function":"getFileInfo","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":159,"function":"getMountPoint","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","line":179,"function":"getStorage","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","line":47,"function":"isUserNode","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->"},{"function":"OCA\\Maps\\Hooks\\{closure}","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Hooks/EmitterTrait.php","line":88,"function":"call_user_func_array"},{"file":"/var/www/nextcloud/lib/private/Hooks/PublicEmitter.php","line":22,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Root.php","line":125,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Node.php","line":110,"function":"emit","class":"OC\\Files\\Node\\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":145,"function":"sendHooks","class":"OC\\Files\\Node\\Node","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php","line":86,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/settings/lib/Controller/AppSettingsController.php","line":144,"function":"newFolder","class":"OC\\Files\\SimpleFS\\SimpleFolder","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"getAppDiscoverMedia","class":"OCA\\Settings\\Controller\\AppSettingsController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Node.php","Line":90,"message":"","exception":{},"CustomMessage":"Exception thrown: OCP\\Files\\NotFoundException"}}

Additional info

I am using: Debian 12 (up to date) MariaDB Server version: 11.4.4-MariaDB-deb12 PHP 8.2.24 (cli) Apache/2.4.62 (Debian)

PirataBG commented 1 day ago

Hi, I have the same problem with version 30.0.1

The Bug occurs when activating the ‘Enforce Windows compatibility’ in the ‘Administration / Basic Settings’ menu

By disabling the option, the bug disappears and the images in the App Store work correctly.

Tested in 2 installations

Cisco30 commented 1 day ago

hi, you are right, when I disable windows file compatibility the application tab works again by disabling Windows compatibility, there is only one error left:

Image

{"reqId":"gnTJeFBRZhQXetIOUSlX","level":2,"time":"2024-11-06T18:52:02+00:00","remoteAddr":"192.168.1.254","user":"Boubou","app":"no app in context","method":"GET","url":"/settings/apps","message":"Invalid defaultDaemonConfig data provided to provideInitialState by settings","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","version":"30.0.2.1","data":[]}

joshtrichards commented 1 day ago

@Cisco30 Would you mind logging the defaultDaemonConfig matter as a separate Issue? Appears unrelated and I don't want it to get lost.

Cisco30 commented 21 hours ago

@joshtrichards Hi, I created a new issue for defaultDaemonConfig #49123