Open knieselpriem opened 1 year ago
This array key refers to the path component of the DokuWiki URL. E.g. in my test-setup the DokuWiki URL is something like
https://dev1.test.tld/dokuwiki
There are also some restriction caused by a "same site" policy (see https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy) which probably is in use meaning that Nextcloud and Dokuwiki must virtually reside on the same server.
Can you please shine some light on your configuration?
Of course, the error message generated by the app is not really helpful ...
URL's:
cloud.server.lan
wiki.server.lan
This URL is configured in the settings of the app: https://wiki.server.lan
I didn't read about those restrictions in the documentation of the app. If this is the cause of the exception, this app makes no sense for my intention to use.
URL's:
* Nextcloud: `cloud.server.lan` * DokuWIki: `wiki.server.lan`
This URL is configured in the settings of the app:
https://wiki.server.lan
I didn't read about those restrictions in the documentation of the app. If this is the cause of the exception, this app makes no sense for my intention to use.
Caution. You are maybe a bit too fast with you conclusion. Some explanations and hints for the web-server setup can be found here:
https://github.com/rotdrop/nextcloud-roundcube#adminstration-web-server-setup
In short: if you have access to the web-server configuration of the server running you Nextcloud instance then you can map the Dokuwiki instance into the Nextcloud site by means of a proxy configuration. There are some more possibilities depending on you setup.
For the code quality of this app, there are two points:
For the moment, you could try to change line 139 in that file
to look like this
$this->dwPath = $urlParts['path'] ?? '';
This will not change the CSP policy but fix the undefined array key bug.
NextCoud Version 25.0.3 Users are authenticated by SAMBA AD (LDAP)
[PHP] Fehler: Error: Undefined array key "path" at /var/www/nextcloud/apps/dokuwiki/lib/Service/AuthDokuWiki.php#139 at <>
GET /index.php/apps/dokuwiki/page/index
[index] Fehler: Exception: xmlRequest(wiki.getPage) failed (-1) at <>
GET /index.php/apps/dokuwiki/page/index