Page MenuHomePhabricator

Lockdown extension and VE: "Error loading from server: apierror-visualeditor-docserver-http: HTTP 500."
Open, Needs TriagePublicBUG 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.

Related Objects

Event Timeline

Jasonba created this task.Oct 5 2020, 10:17 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 5 2020, 10:17 PM

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

Reedy added a subscriber: Reedy.Oct 6 2020, 4:04 PM

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!

Reedy added a comment.Oct 7 2020, 5:07 PM

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!

ppelberg moved this task from To Triage to Triaged on the VisualEditor board.Dec 15 2020, 4:41 PM