Last modified: 2014-04-15 03:59:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52284, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50284 - VisualEditor: Disable veaction=edit on translation pages, which are not editable directly
VisualEditor: Disable veaction=edit on translation pages, which are not edita...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-2014-03-20
Assigned To: James Forrester
:
: 51534 51805 51931 (view as bug list)
Depends on: 61331
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-27 13:09 UTC by Guillaume Paumier
Modified: 2014-04-15 03:59 UTC (History)
17 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Guillaume Paumier 2013-06-27 13:09:53 UTC
Not sure if this should be filed under VisualEditor or Translate.

When clicking the "edit source" button on a translation or a page that uses the Translate extension, it isn't possible to edit the wikitext directly; instead, the user is told to use the Translate extension to change the content.

When clicking the "edit" button on a translation of a page that uses the Translate extension, it's possible to edit the text with VisualEditor. At first, I thought this was a feature, and that changes would be propagated to the Translate extension, until I tried to save the page and got the following error:

Error saving data to server: Unsuccessful request: Unknown error: "tpt-target-page".

If VisualEditor can't be used to edit those pages, it probably shouldn't lead users to believe it can :)
Comment 1 Elitre 2013-07-16 06:34:56 UTC
Just a note to say that this keeps happening. Thanks!
Comment 2 Chris McKenna 2013-07-16 19:36:10 UTC
I tested this on mediawiki.org following a report on the English Wikipedia, but instead of getting an error VisualEditor just silently refused to save the page - the progress bar appeared for a typical amount of time then I was back to the save dialog as if I hadn't pressed save. Lather, rinse, repeat.
Comment 3 Dan Wolff 2013-07-17 14:30:58 UTC
*** Bug 51534 has been marked as a duplicate of this bug. ***
Comment 4 John Mark Vandenberg 2013-07-20 08:57:33 UTC
e.g.
https://www.mediawiki.org/wiki/Communication/hu?veaction=edit
Comment 5 John Mark Vandenberg 2013-07-24 22:10:14 UTC
*** Bug 51931 has been marked as a duplicate of this bug. ***
Comment 6 James Forrester 2013-07-26 15:56:10 UTC
*** Bug 51805 has been marked as a duplicate of this bug. ***
Comment 7 James Forrester 2013-07-26 17:16:08 UTC
Presumably there is a simple check we can do for whether the page is under the protection of the Translate extension, so we can do

if (
  …
  if <Translate extension installed> && !<page is Translate-protected>
  …
) { <do not load> }

… in the code in ViewPageTarget init?
Comment 8 Niklas Laxström 2013-07-27 16:35:41 UTC
I assume VE checks whether the page is editable somewhere? I wonder if changing the hook in Translate from getUserPermissionsErrorsExpensive to getUserPermissionsErrors would solve this? Would have to make sure that the hook is efficient then.
Comment 9 Elitre 2013-09-27 10:32:59 UTC
I just VEdited a page on mw.org (Communication) and it seemed to work (beyond the translate tags showing up).
Comment 10 Guillaume Paumier 2013-10-01 09:08:55 UTC
(In reply to comment #9)
> I just VEdited a page on mw.org (Communication) and it seemed to work (beyond
> the translate tags showing up).

Nope, the error happens when you try to edit a translation, not the source page :) e.g. try to edit Communication/it
Comment 11 Gerrit Notification Bot 2014-03-19 00:52:35 UTC
Change 119427 had a related patch set uploaded by Jforrester:
Disable VisualEditor on Page Translation output pages

https://gerrit.wikimedia.org/r/119427
Comment 12 Gerrit Notification Bot 2014-03-19 22:27:39 UTC
Change 119427 merged by jenkins-bot:
Disable VisualEditor on Page Translation output pages

https://gerrit.wikimedia.org/r/119427

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links