Closed pvanthony closed 5 months ago
Looks like cURL does not support TLS 1.3. I am guessing. So centos 7 is out. Anyway to get it to work?
I've been debugging the issue, and found out the key problem: the viewer
handler binding for richdocuments
is returning the value of mimes
as a JSON object, when the procedure expects an array instead. This results in the following error on the console log:
[ERROR] viewer: The following handler doesn't have a valid mime array
Object { level: 2, app: "viewer", uid: "user", handler: {β¦} }
β
app: "viewer"
β
handler: Object { id: Getter & Setter, group: Getter & Setter, mimes: Getter & Setter, β¦ }
ββ
__ob__: Object { shallow: false, mock: false, vmCount: 0, β¦ }
ββ
component: Object { name: Getter & Setter, components: Getter & Setter, props: Getter & Setter, β¦ }
ββ
group: null
ββ
id: "richdocuments"
ββ
mimes: Object { 0: Getter & Setter, 1: Getter & Setter, 3: Getter & Setter, β¦ }
βββ
0: "application/vnd.oasis.opendocument.text"
βββ
1: "application/vnd.oasis.opendocument.spreadsheet"
βββ
3: "application/vnd.oasis.opendocument.presentation"
βββ
4: "application/vnd.oasis.opendocument.text-flat-xml"
βββ
5: "application/vnd.oasis.opendocument.spreadsheet-flat-xml"
βββ
7: "application/vnd.oasis.opendocument.presentation-flat-xml"
βββ
8: "application/vnd.lotus-wordpro"
βββ
9: "application/vnd.visio"
βββ
10: "application/vnd.ms-visio.drawing"
βββ
11: "application/vnd.wordperfect"
βββ
12: "application/msonenote"
βββ
13: "application/msword"
βββ
14: "application/rtf"
βββ
15: "text/rtf"
βββ
16: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
βββ
17: "application/vnd.openxmlformats-officedocument.wordprocessingml.template"
βββ
18: "application/vnd.ms-word.document.macroEnabled.12"
βββ
19: "application/vnd.ms-word.template.macroEnabled.12"
βββ
20: "application/vnd.ms-excel"
βββ
21: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
βββ
22: "application/vnd.openxmlformats-officedocument.spreadsheetml.template"
βββ
23: "application/vnd.ms-excel.sheet.macroEnabled.12"
βββ
24: "application/vnd.ms-excel.template.macroEnabled.12"
βββ
25: "application/vnd.ms-excel.addin.macroEnabled.12"
βββ
26: "application/vnd.ms-excel.sheet.binary.macroEnabled.12"
βββ
27: "application/vnd.ms-powerpoint"
βββ
28: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
βββ
29: "application/vnd.openxmlformats-officedocument.presentationml.template"
βββ
30: "application/vnd.openxmlformats-officedocument.presentationml.slideshow"
βββ
31: "application/vnd.ms-powerpoint.addin.macroEnabled.12"
βββ
32: "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
βββ
33: "application/vnd.ms-powerpoint.template.macroEnabled.12"
βββ
34: "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
βββ
35: "text/csv"
βββ
__ob__: Object { shallow: false, mock: false, vmCount: 0, β¦ }
βββ
<get 0()>: function get()βββ
<set 0()>: function set(t)βββ
<get 1()>: function get()βββ
<set 1()>: function set(t)βββ
<get 3()>: function get()βββ
<set 3()>: function set(t)βββ
<get 4()>: function get()βββ
<set 4()>: function set(t)βββ
<get 5()>: function get()βββ
<set 5()>: function set(t)βββ
<get 7()>: function get()βββ
<set 7()>: function set(t)βββ
<get 8()>: function get()βββ
<set 8()>: function set(t)βββ
<get 9()>: function get()βββ
<set 9()>: function set(t)βββ
<get 10()>: function get()βββ
<set 10()>: function set(t)βββ
<get 11()>: function get()βββ
<set 11()>: function set(t)βββ
<get 12()>: function get()βββ
<set 12()>: function set(t)βββ
<get 13()>: function get()βββ
<set 13()>: function set(t)βββ
<get 14()>: function get()βββ
<set 14()>: function set(t)βββ
<get 15()>: function get()βββ
<set 15()>: function set(t)βββ
<get 16()>: function get()βββ
<set 16()>: function set(t)βββ
<get 17()>: function get()βββ
<set 17()>: function set(t)βββ
<get 18()>: function get()βββ
<set 18()>: function set(t)βββ
<get 19()>: function get()βββ
<set 19()>: function set(t)βββ
<get 20()>: function get()βββ
<set 20()>: function set(t)βββ
<get 21()>: function get()βββ
<set 21()>: function set(t)βββ
<get 22()>: function get()βββ
<set 22()>: function set(t)βββ
<get 23()>: function get()βββ
<set 23()>: function set(t)βββ
<get 24()>: function get()βββ
<set 24()>: function set(t)βββ
<get 25()>: function get()βββ
<set 25()>: function set(t)βββ
<get 26()>: function get()βββ
<set 26()>: function set(t)βββ
<get 27()>: function get()βββ
<set 27()>: function set(t)βββ
<get 28()>: function get()βββ
<set 28()>: function set(t)βββ
<get 29()>: function get()βββ
<set 29()>: function set(t)βββ
<get 30()>: function get()βββ
<set 30()>: function set(t)βββ
<get 31()>: function get()βββ
<set 31()>: function set(t)βββ
<get 32()>: function get()βββ
<set 32()>: function set(t)βββ
<get 33()>: function get()βββ
<set 33()>: function set(t)βββ
<get 34()>: function get()βββ
<set 34()>: function set(t)βββ
<get 35()>: function get()βββ
<set 35()>: function set(t)βββ
<prototype>: Object { β¦ }
ββ
theme: "light"
ββ
<get component()>: function get()ββ
<set component()>: function set(t)ββ
<get group()>: function get()ββ
<set group()>: function set(t)ββ
<get id()>: function get()ββ
<set id()>: function set(t)ββ
<get mimes()>: function get()ββ
<set mimes()>: function set(t)ββ
<get theme()>: function get()ββ
<set theme()>: function set(t)ββ
<prototype>: Object { β¦ }
β
level: 2
β
uid: "user"
β
<prototype>: Object { β¦ }
ββ
__defineGetter__: function __defineGetter__()
ββ
__defineSetter__: function __defineSetter__()
ββ
__lookupGetter__: function __lookupGetter__()
ββ
__lookupSetter__: function __lookupSetter__()
ββ
__proto__:
ββ
constructor: function Object()
ββ
hasOwnProperty: function hasOwnProperty()
ββ
isPrototypeOf: function isPrototypeOf()
ββ
propertyIsEnumerable: function propertyIsEnumerable()
ββ
toLocaleString: function toLocaleString()
ββ
toString: function toString()
ββ
valueOf: function valueOf()
ββ
<get __proto__()>: function __proto__()
ββ
<set __proto__()>: function __proto__()
Same issue with me. Using the nextcloud 26 git version. Tried with collabora demo servers and own versions.
Looks like cURL does not support TLS 1.3. I am guessing. So centos 7 is out. Anyway to get it to work?
Out of scope for here since we don't have any control over this. :) Going to close this out since it's not a bug in this app as far as I can see (and it's rather old now).
[ERROR] viewer: The following handler doesn't have a valid mime array
I don't see any evidence this is an issue today.
Signing status
``` Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here. ``` No errors have been found. **List of activated apps:**App list
``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder ``` Enabled: - activity: 2.17.0 - circles: 25.0.0 - cloud_federation_api: 1.8.0 - comments: 1.15.0 - contactsinteraction: 1.6.0 - dashboard: 7.5.0 - dav: 1.24.0 - federatedfilesharing: 1.15.0 - federation: 1.15.0 - files: 1.20.1 - files_pdfviewer: 2.6.0 - files_rightclick: 1.4.0 - files_sharing: 1.17.0 - files_trashbin: 1.15.0 - files_versions: 1.18.0 - firstrunwizard: 2.14.0 - logreader: 2.10.0 - lookup_server_connector: 1.13.0 - nextcloud_announcements: 1.14.0 - notifications: 2.13.1 - oauth2: 1.13.0 - password_policy: 1.15.0 - photos: 2.0.1 - privacy: 1.9.0 - provisioning_api: 1.15.0 - recommendations: 1.4.0 - related_resources: 1.0.3 - richdocuments: 7.0.2 - richdocumentscode: 22.5.802 - serverinfo: 1.15.0 - settings: 1.7.0 - sharebymail: 1.15.0 - support: 1.8.0 - survey_client: 1.13.0 - systemtags: 1.15.0 - text: 3.6.0 - theming: 2.0.1 - twofactor_backupcodes: 1.14.0 - updatenotification: 1.15.0 - user_status: 1.5.0 - viewer: 1.9.0 - weather_status: 1.5.0 - workflowengine: 2.7.0 Disabled: - admin_audit - bruteforcesettings - encryption - files_external - suspicious_login - twofactor_totp - user_ldapConfig report
'xxxxxxxxxxx', 'passwordsalt' => 'xxxxxxxxxxx', 'secret' => 'xxxxxxxxxxx', 'trusted_domains' => array ( 0 => 'example.com', ), 'datadirectory' => '/var/www/html/nextcloud/data', 'dbtype' => 'mysql', 'version' => '25.0.2.3', 'overwrite.cli.url' => 'https://example.com', 'dbname' => 'nextclouddb', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_user', 'dbpassword' => 'password', 'mysql.utf8mb4' => true, 'installed' => true, 'default_phone_region' => 'SG', 'maintenance' => false, 'loglevel' => 2, 'app_install_overwrite' => array ( 0 => 'issuetemplate', ), );Web server error log
``` Insert your webserver log here ```Nextcloud log
``` {"reqId":"S7vyJn45XtdIsvRQ3XOw","level":3,"time":"2022-12-18T15:52:02+00:00","remoteAddr":"xxxxxxxx","user":"--","app":"richdocuments","method":"GET","url":"/apps/theming/icon?v=b6589fc6","message":"Failed to fetch the Collabora capabilities endpoint: cURL error 35: Peer reports incompatible or unsupported protocol version. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://example.com/apps/richdocumentscode/proxy.php?req=/hosting/capabilities","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0","version":"25.0.2.3","exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 35: Peer reports incompatible or unsupported protocol version. (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) ```Browser log
``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```