Page MenuHomePhabricator

Apparent Bug in Undoing Edits on Articles in enwiki containing Arabic text
Open, Stalled, Needs TriagePublicBUG 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

Restricted Application added subscribers: alanajjar, Aklapper. · View Herald TranscriptAug 16 2019, 7:57 AM
Restricted Application added a project: I18n. · View Herald TranscriptAug 16 2019, 8:06 AM
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.

Huji added a subscriber: Huji.Aug 16 2019, 2:22 PM

@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.

Ammarpad added a subscriber: Ammarpad.EditedAug 16 2019, 2:32 PM

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:

@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

alanajjar added a comment.EditedAug 16 2019, 4:26 PM

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!

Ammarpad added a comment.EditedAug 16 2019, 4:56 PM

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.

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?

Aklapper added a comment.EditedAug 18 2019, 11:03 AM

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? 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