-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DokuWiki inclusion is not operational #9
Comments
This array key refers to the path component of the DokuWiki URL. E.g. in my test-setup the DokuWiki URL is something like
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:
This URL is configured in the settings of the app: 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 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 <>
OC\Log\ErrorHandler::onError()
OCA\DokuWiki\Service\AuthDokuWiki->__construct()
ReflectionClass->newInstanceArgs()
OC\AppFramework\Utility\SimpleContainer->buildClass()
OC\AppFramework\Utility\SimpleContainer->resolve()
OC\AppFramework\Utility\SimpleContainer->query()
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
OC\AppFramework\DependencyInjection\DIContainer->query()
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}("*** sensitive parameters replaced ***")
array_map()
OC\AppFramework\Utility\SimpleContainer->buildClass()
OC\AppFramework\Utility\SimpleContainer->resolve()
OC\AppFramework\Utility\SimpleContainer->query()
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
OC\AppFramework\DependencyInjection\DIContainer->query()
OC\AppFramework\App::main()
OC\Route\Router->match()
OC::handleRequest()
GET /index.php/apps/dokuwiki/page/index
[index] Fehler: Exception: xmlRequest(wiki.getPage) failed (-1) at <>
OCA\DokuWiki\Service\AuthDokuWiki->handleError()
OCA\DokuWiki\Service\AuthDokuWiki->xmlRequest()
OCA\DokuWiki\Service\AuthDokuWiki->getPage()
OCA\DokuWiki\Service\AuthDokuWiki->refresh()
OCA\DokuWiki\Controller\PageController->frame()
OCA\DokuWiki\Controller\PageController->index()
call_user_func_array()
OC\AppFramework\Http\Dispatcher->executeController()
OC\AppFramework\Http\Dispatcher->dispatch()
OC\AppFramework\App::main()
OC\Route\Router->match()
OC::handleRequest()
GET /index.php/apps/dokuwiki/page/index
The text was updated successfully, but these errors were encountered: