Open justkrevedko opened 1 month ago
Describe the bug Error when opening files with extension in capital letters
To Reproduce Steps to reproduce the behavior:
Expected behavior Open an editor with a file
Screenshots
Client details:
Operating system Ubuntu Server 22.04.4 LTS
Web server 1.18.0
PHP version 8.2.23
Nextcloud version: 29.0.5.1
Version of the officeonline app 2.2.1
Version of Office Online server 16.0.10414.20000
Describe the bug Error when opening files with extension in capital letters
To Reproduce Steps to reproduce the behavior:
Expected behavior Open an editor with a file
Screenshots
Client details:
Server details
Operating system Ubuntu Server 22.04.4 LTS
Web server 1.18.0
PHP version 8.2.23
Nextcloud version: 29.0.5.1
Version of the officeonline app 2.2.1
Version of Office Online server 16.0.10414.20000
Logs
#### Nextcloud log (data/nextcloud.log) ``` {"reqId":"y9MDUgwd7aL050hIsQgY","level":3,"time":"2024-10-17T06:58:22+00:00","remoteAddr":"xxx","user":"xxx","app":"officeonline","method":"GET","url":"/apps/officeonline/index?fileId=4167214&requesttoken=bxMN8QymaZEak7O0xwMyycOGyZChHqFWl%2Bqs7rerNrw%3D%3ACUJsv2nsJrpD6v3c8mBArKTvsefNTuA%2B2dzjgs76YfQ%3D&path=%2Ftest.DOCX","message":"Exception thrown: Exception","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0","version":"29.0.5.1","exception":{"Exception":"Exception","Message":"Could not find urlsrc in WOPI","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/officeonline/lib/TokenManager.php","line":208,"function":"getUrlSrcForFile","class":"OCA\\Officeonline\\WOPI\\Parser","type":"->"},{"file":"/var/www/html/nextcloud/apps/officeonline/lib/Controller/DocumentController.php","line":241,"function":"getToken","class":"OCA\\Officeonline\\TokenManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"index","class":"OCA\\Officeonline\\Controller\\DocumentController","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/lib/base.php","line":1053,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/nextcloud/apps/officeonline/lib/WOPI/Parser.php","Line":213,"CustomMessage":"Exception thrown: Exception"}} ```