Page MenuHomePhabricator

Lockdown extension and VE: "Error loading from server: apierror-visualeditor-docserver-http: HTTP 500."
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:
Install Lockdown extension:
edit LocalSettings.php to include:

$wgNamespacePermissionLockdown[NS_TEST]['*'] = ['sysop'];
$wgNamespaceProtection[NS_TEST] = ['test-edit'];
$wgGroupPermissions['sysop']['test-edit'] = true;

Create NS_TEST:testpage

Actual Results:

Edit NS_TEST:testpage via VisualEditor

And received:
"Error loading from server: apierror-visualeditor-docserver-http:

HTTP 500. Would you like to retry?"

The Edit Source option worked as expected.

Expected Results:

Be able to edit the NS_TEST:testpage via VisualEditor with sysop account.

Event Timeline

Thank you for your quick response. I will give it a try and let you know.
Thank you so much!

Hi @Jasonba, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

Which exact MediaWiki version and VisualEditor version and extension git branch version is this about?

Thank you for your quick response. I will give it a try and let you know.

Which "response"?

Hi Reedy,

I have tried to enter the entries (`lang=php, `); however, after that I received HTTP 500 error.

Could you help?

Thanks so much Reedy!
I really appreciate if you could help.

Jason

I have tried to enter the entries (`lang=php, `); however, after that I received HTTP 500 error.

That is nothing more than fixing the way it is displayed in Phabricator. It was not a suggestion to add it to your LocalSettings

The Mediawiki 1.31.8, VisualEditor c3c9140.
Thanks!

Hi Reedy,

Parsoid log shows an "Access Denied" error.
Please advise my next step to get the issue resolved.

Please let me know.

Thanks!

Can you paste the whole relevant log entry?

Below is the relevant log entry that you requested:

"logType":"fatal/request","wiki":"wiki$0","title":"TEST:Testpage","oldId":null,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.31.8","msg":"API response Error for TemplateRequest: request=; error={\"code\":\"accessdenied\",\"info\":\"You are not allowed to view TEST:Testpage.\",\"*\":\"See http://localhost/mediawiki-1.31.0/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at < https://lists.wikimedia.org/mailman/listinfo/mediawiki-api announce> for notice of API deprecations and breaking changes.\"}","stack":"Error: API response Error for TemplateRequest: request=; error={\"code\":\"accessdenied\",\"info\":\"You are not allowed to view TEST:Testpage.\",\"*\":\"See http://localhost/mediawiki-1.31.0/api.php for API usage.

Thanks Reedy!

Hi Reedy,

Please let me know if you have any update for my issue.

Thanks Reedy!

Hi,

I am sorry. I am new to this Phabricator tool. I can see my reported error has been moved Non-Wikimedia Parsoid usecases. Could you let me know how I can track the progress of my issue/error? How can I tell if someone is working on it or when the issue is resolved? What are the processes? Thanks so much!

I moved it to that column to indicate that this is not an issue seen in Wikimedia production wikis. Follow this task to see if someone has a solution to your issue. Unfortunately, this is not something that we (parsoid developers) can help with since this is not related to wikitext functionality per se. Someone more familiar with this extension or how it impacts VE access might be able to help with this.

Do you have the following in your LocalSettings.php?

$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;

We probably don’t have that setting entry but will check. Thank you!

I added the entry but still getting the same error.

Thanks!

Aklapper renamed this task from Lockdown extension and VisualEditor Error to Lockdown extension and VE: "Error loading from server: apierror-visualeditor-docserver-http: HTTP 500.".Nov 3 2020, 10:46 AM

Hi,
Could you let me know if there is any new update about my issue?

Thanks!

matmarex claimed this task.
matmarex added a project: MW-1.41-notes.
matmarex subscribed.

This problem should no longer occur on MediaWiki 1.41 and later, as VisualEditor no longer uses HTTP requests internally to contact Parsoid, it just calls the PHP methods directly (see T320529 for related work).

Please try MediaWiki 1.41 and hopefully VisualEditor will now finally just work. If you still encounter some issues, please file a new task.