Page MenuHomePhabricator

Apparent Bug in Undoing Edits on Articles in enwiki containing Arabic text
Closed, DeclinedPublicBUG REPORT

Description

In articles on wikien containing Arabic text, when I undo an edit, the text gets cut. I'm guessing it has something to do with right to left text. I'm using Chrome on Mac OS High Sierra.

For example:

https://en.wikipedia.org/w/index.php?title=Arabic_chat_alphabet&oldid=910828512

Sorry if this isn't formatted correctly; it's my first time using Phabricator.

Event Timeline

MBinder_WMF changed the subtype of this task from "Task" to "Bug Report".Aug 16 2019, 8:07 AM

This is quite... unusual.

Are you sure it's related to Arabic text? Do you have other examples?

I'm not sure if it's just Arabic text. My assumption is that it has something to do with ltr vs. rtl text, so if that's true it would also affect Hebrew, Farsi, and Urdu text on wikien for example.

You can try undoing this edit, for example:

https://en.wikipedia.org/w/index.php?title=Abd_el-Krim&oldid=910784174

See if it does the same thing for you.

@Sambasoccer27 can you please provide a diff link, not an oldid link? Something like https://en.wikipedia.org/w/index.php?title=Abd_el-Krim&diff=prev&oldid=906255302

Also, can you please create a test page (for instance User:Sambasoccer27/T230595 and in there create an example that we can work on? It is best not to test on an actual article.

When the OP undid this revision they may have inadvertently cleared the text in the edit area. This is not reproducible.

Ok, I made a test page as @Huji suggested. Here it is:

https://en.wikipedia.org/wiki/User:Sambasoccer27/T230595

When I tried to undo an edit, the Arabic text disappeared instead of the Latin text—as in this screenshot:

Screen Shot 2019-08-16 at 4.55.42 PM.png (696×1 px, 240 KB)

@Ammarpad I guarantee you that I did not manually clear the text in the edit area. In fact, I saw that the text was missing, went back to a previous version of the article, copied the text, pasted it in the edit area, published the article with the problematic edit undone, and the article was still published as you saw on this link: https://en.wikipedia.org/w/index.php?title=Arabic_chat_alphabet&oldid=910828512

Ok, I made a test page as @Huji suggested. Here it is:
https://en.wikipedia.org/wiki/User:Sambasoccer27/T230595
When I tried to undo an edit, the Arabic text disappeared instead of the Latin text—as in this screenshot:

I tried to re-produce here and here but it's working well without any issue (removing Arabic words).

https://en.wikipedia.org/w/index.php?title=Arabic_chat_alphabet&oldid=910828512

Also I tried to simulate the first example on Arabic chat alphabet enwiki article but also it's working well.

i.e. I can't re-produce it!

When I tried to undo an edit, the Arabic text disappeared instead of the Latin text—as in this screenshot:

OK I tried to do what you did. It showed me the diffs and the new text correctly. This might be an issue with your browser --not sure though.

Screen Shot 2019-08-16 at 5.49.27 PM.png (671×1 px, 232 KB)

It may be an issue caused by a browser extension or a toolbar or something like this. Can you try it Ina different browser or on a different computer, please?

When I tried to undo an edit, the Arabic text disappeared instead of the Latin text

@Sambasoccer27:

  • Can you please try again to "undo" by using [safemode](https://www.mediawiki.org/wiki/Help:Locating_broken_scripts)? That makes sure no gadgets and user scripts are involved.
  • Can you also reproduce the problem when editing anonymously (logged out, or in a "private" browser window) in the preview of your "undo"-edit?
Ammarpad changed the task status from Open to Stalled.Aug 29 2019, 3:08 PM

Unfortunately closing this Phabricator task as no further information has been provided.

@Sambasoccer27: After you have provided the information asked for and if this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!