http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13431
--- Comment #4 from Jacek Ablewicz <[email protected]> --- Created attachment 34321 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34321&action=edit Bug 13431 - Shared FastMmap file causes issues Koha::Cache package does not take into account that, when using fastmmap caching variant, mmaped cache file created in /tmp (typically: /tmp/sharefile-koha-koha), would only be further accessible to the one given OS user - the one which created it. In many Koha setups, in the circumstances when various system scripts are executed by 2+ users with diffrent UIDs (like multi-tenant servers, for example) this may cause many kinds of issues. Observable symptom is usually the appearance of the below error when searching, or looking at MARC Framework pages and a few other places: Open of share file /tmp/sharefile-koha-koha failed: Permission denied at /usr/lib/perl5/Cache/FastMmap.pm line 640. This patch adds the ID of the OS user to the mmaped file name created in /tmp, to prevent such kinds of conflicts and/or permission problems from happening. To test: 1) remove the /tmp/sharefile-koha-* file[s] (if any) 2) do something which would lead to its re-creation (e.g., performing any search in OPAC should be sufficient to cause that) 3) observe that /tmp/sharefile-koha-koha got created 4) remove it 5) apply patch 6) redo step 2) 7) observe that file created in /tmp now does have the OS user id included in it's name (e.g. it would be named like that 'sharefile-koha-koha-www-data' - depending on the particular test setup) 8) add some additional user to the /etc/passwd, with the same UID www-data has, but with different name (e.g. 'www-data2'); redo the tests; ensure that it still works fine in such unusual case -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
