Last modified: 2014-10-30 00:49:23 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 T54073, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52073 - VisualEditor: When user is saving a page subsequently deleted after they started editing, show them <confirmrecreate‎>
VisualEditor: When user is saving a page subsequently deleted after they star...
Status: PATCH_TO_REVIEW
Product: VisualEditor
Classification: Unclassified
MediaWiki integration (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Alex Monk
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-26 02:21 UTC by John Mark Vandenberg
Modified: 2014-10-30 00:49 UTC (History)
5 users (show)

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


Attachments

Description John Mark Vandenberg 2013-07-26 02:21:11 UTC
Steps to reproduce:
1. Open VE on a sandbox
2. In a different window, delete the sandbox
3. In the VE window, change the text in the sandbox and save the page

Expected results:
Something similar to the SE, which asks "
User xxx (talk) deleted this article after you started editing it, with a reason of:

    blah 

Please confirm that you really want to recreate this article." with a checkbox

Actual results:
Backend error message is displayed, and there is no option to ignore this error.
Comment 1 James Forrester 2013-11-25 16:07:10 UTC
The response is now:

| Error: The page has been deleted since you fetched its timestamp

I guess we should inherit this message, however. Changing to an enhancement.
Comment 2 Alex Monk 2014-04-19 14:26:35 UTC
I currently get this error in Parsoid:

TypeError: Cannot read property 'length' of null
    at Object.result.parse (eval at <anonymous> (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.tokenizer.peg.js:97:44), <anonymous>:18347:34)
    at PegTokenizer.tokenizeAsync (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.tokenizer.peg.js:135:25)
    at PegTokenizer._processText (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.tokenizer.peg.js:124:8)
    at PegTokenizer.process (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.tokenizer.peg.js:38:7)
    at ParserPipeline.process (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.parser.js:439:21)
    at ParserPipeline.processToplevelDoc (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.parser.js:455:21)
    at SSP.parseOriginalSource (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.SelectiveSerializer.js:143:17)
    at TemplateRequest.<anonymous> (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.Util.js:1266:3)
    at TemplateRequest.g (events.js:180:16)
    at Object.processSome [as _onImmediate] (/var/www/MediaWiki/Git/extensions/VisualEditor/parsoid/lib/mediawiki.ApiRequest.js:123:17)
worker 11363 died (1), restarting.
Comment 3 Gerrit Notification Bot 2014-10-30 00:49:20 UTC
Change 169976 had a related patch set uploaded by Alex Monk:
Catch pagedeleted errors and give the ability to re-create the page

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

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


Navigation
Links