Topic on Extension talk:VisualEditor

ooui-dialog-process-error

7
Summary by Revansx
Revansx (talkcontribs)
ooui-dialog-process-error

Hi. I have a SAML-based SSO that times out every 15 mins.

MediaWiki 1.31.1 (a4c8065)
VisualEditor 0.1.0 (3db9a0a)12:41, 3 June 2019

The following is a summary of the way edits are saved with respect to the SAML expiration.

  1. FORM EDIT - No Problem - User attempts to save edits to a page using Form Edit after SAML has timed-out --> SAML just renews and the pending edits are saved. Nothing lost.
  2. SOURCE EDIT - No Problem - User attempts to save edits to a page using Source Edit after SAML has timed-out --> SAML just renews and the pending edits are saved. Nothing lost.
  3. VE - PROBLEM - User attempts to save edits to a page using VE after SAML has timed-out --> VE crashes with error as shown in thumbnail. USER HAS NO CLEAR OPTIONS

To the savvy user the solution is simple - just renew the session using a new tab and come back to the edit screen, click "Resume editing", and then SAVE again (with the session renewed), but the non-savvy user (rightly) does not know what to do.

How to fix this scenario so the normal user has a clear intuitive option to renew session and save their edits?

Can I alter the Mediawiki message "ooui-dialog-process-error" to maybe provide a link to a page on my server that will renew the session?

ESanders (WMF) (talkcontribs)

ooui-dialog-process-error is a very generic message for failures within a dialog. It also probably isn't parsed so you couldn't put a link in there. You might be able to modify ApiVisualEditor to send back a more descriptive error message, which is displayed in the red box.

Revansx (talkcontribs)

yes. if I could tailor the message to have a custom hyperlink, that would give the user an option. I've tried updating the system message "Mediawiki:ooui-dialog-process-error" to no avail. Is that not the right system message for this situation?

Revansx (talkcontribs)

also getting this error when SAML SSO Auth is expired:

Revansx (talkcontribs)

I think the basic question is this - Is VE designed to help users resolve the scenario where the underlying auth has expired and they need to renew it in order to save their work. Yes. That's the questions. Is VE designed to address that scenario?

ESanders (WMF) (talkcontribs)

We retry if the edit token has expired, but I don't know anything about SAML SSO.

Revansx (talkcontribs)

how do you do the retry?