FS#76412 - [dokuwiki] PKGBUILD does not change the owner and the group of all the necessary files

Attached to Project: Community Packages
Opened by Guybrush Threepwood (pappapisshu) - Thursday, 03 November 2022, 22:05 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 10 February 2023, 19:03 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 0
Private No

Details

Description:
As described in the official documentation, DokuWiki requires that the PHP process (the webserver process) is able to write the files inside the directories data/, lib/plugins/ and lib/tpl/.

However, the PKGBUILD does not properly change the owner and the group of all the necessary files and this involves a malfunction of DokuWiki's Extension Manager. In particular, as depicted in the attachment, the Extension Manager shows an error message for each extension for which it does not have the right permissions. (Please, note the "Extension directory is not writable" message next to each extension).

In order to fix this bug, you can simply edit the PKGBUILD (line 54 to line 57).

In particular, you can edit these lines:
# fix rights and ownership
chown 33:33 var/lib/dokuwiki/plugins
chown -R 33:33 var/lib/dokuwiki/data
chown -R 33:33 etc/webapps/dokuwiki

into these lines:
# fix rights and ownership
chown -R 33:33 var/lib/dokuwiki/plugins
chown -R 33:33 var/lib/dokuwiki/data
chown -R 33:33 var/lib/dokuwiki/tpl
chown -R 33:33 etc/webapps/dokuwiki


Additional info:
* package version: 20220731_a-1
* link to official documentation: https://www.dokuwiki.org/install:permissions

Steps to reproduce:
1. install the dokuwiki package
2. configure a webserver (Apache, nginx, etc) in order to run DokuWiki
3. use the Extension Manager and look the errors
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 10 February 2023, 19:03 GMT
Reason for closing:  Fixed

Loading...