Product | Version |
MediaWiki | 1.36.1 |
PHP | 7.4.20 (fpm-fcgi) |
MariaDB | 10.5.11-MariaDB |
ICU | 67.1 |
Lua | 5.1.5 |
Elasticsearch | 6.8.16 |
I had this error with 1.36.0 so I upgraded to 1.36.1 and still have it sometimes. It is a small private wiki farm. One way I can consistently cause the error is to use the VisualEditor on my User page. It does work on other pages though which is strange.
I have $wgGroupPermissions['user']['writeapi'] = true;
set for all wikis in the farm.
I have the follow example in my vhost with the rewrite rules
<VirtualHost *:443>
ServerAdmin webmaster@un9.io
DocumentRoot [redacted]
ServerName mitm.un9.io
AllowEncodedSlashes NoDecode
SSLEngine on
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/un9.io/chain.pem
SSLCertificateFile /etc/letsencrypt/live/un9.io/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/un9.io/privkey.pem
RewriteEngine On
RewriteRule ^/(.*):(.*) /index.php/$1:$2
<Directory [redacted]>
AllowOverride AuthConfig FileInfo Limit Options=FollowSymLinks
Require all granted
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php/$1 [L,QSA]
</Directory>
</VirtualHost>
I enabled debug logging and code this
[http] HTTP complete: GET https://mitm.un9.io/rest.php/mitm.un9.io/v3/page/html/User%3ATestUser/16?redirect=false&stash=true code=400 size=194 total=0.887740 connect=0.530200
[VisualEditor] ApiParsoidTrait::requestRestbase: Received HTTP 400 from RESTBase
I've not seen errors in apache or php-fpm logs or audit/setroubleshoot logs. It looks a bit strange to me to see the domain in the URL twice. Is that because of the rewrite rules and how do I fix it.
Thanks