SemanticMediaWiki / SemanticResultFormats

Provides additional visualizations (result formats) for Semantic MediaWiki
https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats
Other
45 stars 75 forks source link

table format, datatables class not working #733

Closed krabina closed 1 year ago

krabina commented 1 year ago

Setup

Software Version
MediaWiki 1.35.8
PHP 7.4.32 (fpm-fcgi)
MariaDB 10.3.36-MariaDB
ICU 69.1
Semantic MediaWiki 4.0.2 (0d6b0cb) 09:08, 21. Jul. 2022
Semantic Result Formats 4.0.1 (44c0bd8) 12:52, 26. Jan. 2022

Issue

The option to put class "datatable" for the table format (not to be confused with the datatables format) does not work.

Observed result: The console shows several errors

GEThttps://www.verwaltungskooperation.at/vendor/onoi/shared-resources/res/jquery.highlight/jquery.highlight.js?85bb2
[HTTP/1.1 403 Forbidden 27ms]
Loading failed for the <script> with source “https://www.verwaltungskooperation.at/vendor/onoi/shared-resources/res/jquery.highlight/jquery.highlight.js?85bb2”.

A test can be seen here: https://www.verwaltungskooperation.at/index.php?title=Benutzer:Administrator/Test_DatatableClass

Seb35 commented 1 year ago

Given there are multiple errors 403 in the directory vendor, could yo check the configuration of Apache? Access to JS/CSS/images/fonts should be authorised (similarly to the directory extensions) and it should solve the issue.

PS: ideally do not authorise access to other file types inside vendor to make the life harder to attackers, search for instance about CVE-2017-9841 to see why it is preferable to disable reading of PHP files inside vendor.

krabina commented 1 year ago

Thank you. Did not time to look further into this, but it seems this has to do with the individual environment of this one wiki, thus closing for now.