server
server copied to clipboard
[Bug]: Could not open file /2023-06-26_140718.pdf TypeError: t.replace is not a function
⚠️ This issue respects the following points: ⚠️
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
When I open file like info.md or a pdf the file not open. In the browser console i get the error message:
Could not open file /2023-06-26_140718.pdf TypeError: t.replace is not a function
replaceAll cadviewer_9.40.6.min.js:2
O index.js:53
O index.js:109
Z fileUtils.ts:66
Z fileUtils.ts:57
oe FileInfo.ts:44
[Viewer.vue:639](webpack:///viewer/src/views/Viewer.vue)
openFile Viewer.vue:639
Steps to reproduce
1.open app files 2.shoes a file and open it (.md, .pdf)
Expected behavior
The selected file opened in the file view.
Installation method
Community Docker image
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Other
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- [ ] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [X] Other
Configuration report
{
"system": {
"htaccess.RewriteBase": "\/",
"filelocking.enabled": true,
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"...."
],
"overwrite.cli.url": "https:\/\/cloud.com",
"overwriteprotocol": "https",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "28.0.2.5",
"dbtableprefix": "oc_",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"theme": "",
"loglevel": 2,
"log_type": "file",
"syslog_tag": "",
"logdateformat": "F d, Y H:i:s",
"logfile": "",
"maintenance": false,
"default_phone_region": "DE",
"onlyoffice": {
"verify_peer_off": true
},
"app_install_overwrite": [
"initialcheck",
"limit_login_to_ip",
"radio",
"tasks",
"occweb",
"files_reader",
"files_ebookreader",
"polls",
"contacts",
"drawio",
"checksum",
"rainloop",
"timetracker",
"passman",
"calendar",
"cookbook",
"dashboardcharts",
"apporder",
"bookmarks",
"passwords",
"carnet",
"electronicsignatures",
"ocdownloader",
"files_bpm",
"gestion",
"audioplayer_editor",
"news"
],
"enabledPreviewProviders": [
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\HEIC",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap",
"OC\\Preview\\MP3",
"OC\\Preview\\TXT",
"OC\\Preview\\MarkDown",
"OC\\Preview\\Movie",
"OC\\Preview\\PDF",
"OC\\Preview\\Illustrator"
],
"app.mail.imap.timeout": 20,
"app.mail.smtp.timeout": 2,
"app.mail.verify-tls-peer": "false",
"has_rebuilt_cache": true,
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "tls",
"mail_sendmailmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"updater.release.channel": "stable",
"data-fingerprint": "98",
"auth.bruteforce.protection.enabled": true,
"memcache.local": "\\OC\\Memcache\\APCu",
"updater.secret": "***REMOVED SENSITIVE VALUE***"
}
}
List of activated Apps
No response
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
No response
Additional info
No response