FS#61527 - [dokuwiki] plugins are installed in the wrong location

Attached to Project: Community Packages
Opened by Stefano Franchi (cleinias) - Thursday, 24 January 2019, 22:02 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 10 February 2023, 19:07 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The PKGBUILD for Dokuwiki installs plugins in /var/lib/dokuwiki/plugins (which is the app's data directory) instead of the code directory, namely /etc/webapps/dokuwiki/plugins. This cause at least a plugin (godiag) to fail, since it navigates through the tree using relative paths and it ends up in the wrong place.

See discussion on Dokuwiki's forums: https://forum.dokuwiki.org/thread/16658

Additional info:
* package version(s): 20180422_b

Steps to reproduce:

1. Install dokuwiki
2. Install the godiag plugin from within dokuwiki's own extension manager
3. Create a new go diagram inside a new page, as per godiag instructions (see xa here: https://www.dokuwiki.org/plugin:godiag)
4. Save and see the diagram NOT getting rendered
5. See the error in the web server log.

The "problem" is caused by these lines in the PKGBUILD:
# move plugins in var
mv usr/share/webapps/dokuwiki/lib/plugins var/lib/dokuwiki
ln -s {../../../../../../var/lib/dokuwiki,usr/share/webapps/dokuwiki/lib}/plugins

According to the Dokuwiki people, the plugins should remain in /etc/webapps/dokuwiki and not be moved. See the forum discussion referred above for why only some plugin suffer from this mis-location and how manually hardcoding the correct path into one of the plugin's php modules works around the issue.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 10 February 2023, 19:07 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Actually worked around in plugin and plugin looks abandoned.
Comment by Jiachen Yang (farseerfc) - Tuesday, 01 October 2019, 15:02 GMT
Shall we consider moving /var/lib/dokuwiki/* to /var/lib/docuwiki/lib/* and inter-link directory structures?
Seems debian is doing this: https://salsa.debian.org/debian/dokuwiki/blob/master/debian/postinst#L457-499 and https://salsa.debian.org/debian/dokuwiki/blob/master/debian/links
Comment by Sergej Pupykin (sergej) - Saturday, 02 July 2022, 14:57 GMT

Loading...