Last modified: 2013-04-22 16:16:05 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 T41773, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39773 - "You cannot post a blank message" error on every summary edit and more
"You cannot post a blank message" error on every summary edit and more
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
master
All All
: High normal (vote)
: MW 1.21 version
Assigned To: Rob Lanphier
https://translatewiki.net/w/i.php?tit...
:
Depends on:
Blocks: 39480
  Show dependency treegraph
 
Reported: 2012-08-29 20:43 UTC by Nemo
Modified: 2013-04-22 16:16 UTC (History)
8 users (show)

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


Attachments

Description Nemo 2012-08-29 20:43:18 UTC
On translatewiki I'm currently getting this error (MediaWiki:Lqt-empty-text) on each and all Summary: edit, whatever the content of the text area and of the edit summary. 
Firefox 14.0.1, fedora 17. 
I'm sure this started today after this update: 
    16.12 -rakkaus:#mediawiki-i18n- [siebrand] updating translatewiki.net from c3565bf 2012-08-29 13:42:23 +0000 (30 minutes ago)... 
Special:Version now says 1.20alpha (710db62).
Comment 1 Nemo 2012-08-29 20:50:15 UTC
Looks like it's mysteriously been fixed this afternoon, after an update on TWN a couple mins ago I'm no longer able to reproduce.
Comment 2 Nemo 2012-08-31 10:13:19 UTC
And now I'm getting it consistently again (last night and this morning), I spoke too early.
Comment 3 Nemo 2012-09-04 10:14:55 UTC
Same on Chromium and over HTTP, just verified on mediawiki.org too which is at 1.20wmf11 (6108192).
Comment 4 Siebrand Mazeland 2012-09-04 11:14:03 UTC
Most probably caused by Gerrit change #17683, as this is the only merge on that day in the affected area. Adding Helder to CC.
Comment 5 Siebrand Mazeland 2012-09-04 11:20:32 UTC
Steps to reproduce:
1. Ensure logged in at https://translatewiki.net.
2. Go to https://translatewiki.net/wiki/User_talk:SiebrandLqtTest
3. Click "Start new discussion"
4. Subject: Test
5. Contents: Test
6. Click "Save Page"
7. Click "Summarize"
8. Contents: Test
9. Click "Save page"

Observed:
a. Pop up appears stating "You cannot post a blank message"
b. Once clicks "OK" on the pop up, the page is saved anyway.
c. No JS errors observed in Firebug.
d. Adding an edit summary does not change observed behaviour.

Expected:
* Page is saved without warning "You cannot post a blank message"
Comment 6 Helder 2012-09-07 13:33:47 UTC
The message is shown because when the code from window.liquidThreads.handleAJAXSave is executed the "text" in the test
> $j.trim( text ).length == 0
is actually undefined. But this was already the case on Gerrit change #17940, which came before Gerrit change #17683 on
https://gerrit.wikimedia.org/r/#/q/status:merged+project:mediawiki/extensions/LiquidThreads+-owner:L10n-bot,n,z

Indeed, if I do
> cd extensions/LiquidThreads/
> git review -d 17940
and follow the steps from comment 5, I get the error
Uncaught TypeError: Cannot call method 'trim' of undefined

In both cases the fact that the text is undefined do not prevent the code from another function from saving and reloading the page (even if the [[translatewiki:MediaWiki:Lqt-empty-text]] is displayed), because none of lines which contains
> e.preventDefault();
is ever executed.

The reason for "text" being undefined is the line
> text = editform.find('#wpTextbox1').val();
which depends on the existence of some "editform". But it is defined as
> var editform = $j(this).closest('.lqt-edit-form');
and while summarizing a thread there is no element with class "lqt-edit-form".

It seems this specific bug could be fixed by replacing the line which defines the text by
> text = $j('#wpTextbox1').val();
(because there should be at most one element with this id on the page). But there will be the problem of "editform" being empty...
Comment 7 Nemo 2012-09-07 14:41:15 UTC
Is bug 40083 related? It's been recently reported by a casual user and I'm reproducing it consistently.
Comment 8 Sumana Harihareswara 2012-10-12 15:22:52 UTC
I confirmed that this is still reproducible today per instructions on comment #5 .
Comment 9 Rob Lanphier 2012-10-12 16:22:37 UTC
Removing as a blocker since blocking the 1.21wmf2 deployment won't help matters.
Comment 10 Nemo 2012-10-12 18:40:23 UTC
(In reply to comment #9)
> Removing as a blocker since blocking the 1.21wmf2 deployment won't help
> matters.

Sigh, didn't the WMF once say that the Wikimedia projects which chose LQT were going to get life support for it? I think you should notify them that you don't guarantee LQT won't be broken by updates, ie that LQT is completely unsupported.
Comment 11 Alex Monk 2012-10-12 18:44:22 UTC
(In reply to comment #10)
> I think you should notify them that you don't
> guarantee LQT won't be broken by updates, ie that LQT is completely
> unsupported.

How on earth do you get from not being able to guarantee that it won't get broken to it being completely unsupported?
Comment 12 Nemo 2012-10-12 18:48:21 UTC
(In reply to comment #11)
> How on earth do you get from not being able to guarantee that it won't get
> broken to it being completely unsupported?

Well, if it gets intentionally broken and upgrades are performed however broken LQT can get, I call that being unsupported. Reversing the question, what kind of support does WMF offer to Wikimedia projects using LQT?
Comment 13 Rob Lanphier 2012-10-12 23:53:03 UTC
This may be fixed with https://gerrit.wikimedia.org/r/#/c/27844/

Note: taking issues off the blocker list don't diminish their priority.  It just means we're not going to hold a particular version deployment hostage over it.
Comment 14 Nemo 2012-10-13 06:49:09 UTC
(In reply to comment #13)
> Note: taking issues off the blocker list don't diminish their priority.  It
> just means we're not going to hold a particular version deployment hostage over
> it.

The difference is subtle: given the nature of LQT, this means that any and all bugs affecting it will rot forever and get worse at each update.
Also, no need for hostages: is it really impossible to revert changes which are known to break stuff and deploy them only *after* they've been fixed? 

<rant>From a user perspective it's really impossible to understand what the purpose of continuous integration is, if nothing can stop known bugs from getting deployed. Erik asked people to file major bugs against LQT a year ago http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/56008 , but it's obviously useless; I do it only for masochism and tracking-addiction.</rant>
Comment 15 Nemo 2012-11-25 19:07:40 UTC
This bug also happens if you reply to a message by opening the reply link in a new tab, e.g. <User:Nemo_bis/monobook.js]]_28760">https://translatewiki.net/w/i.php?title=User_talk:Nemo_bis&lqt_method=reply&lqt_operand=28760#[[User:Nemo_bis/monobook.js]]_28760> (I had to do so because often the text area for the reply or new thread doesn't open inline even after many reloads).
Comment 16 Andre Klapper 2012-11-30 12:08:23 UTC
There is a not-too-huge patch (+18, -5) waiting for two weeks now in https://gerrit.wikimedia.org/r/#/c/27844/ - could somebody review it?
Comment 17 Nemo 2013-01-07 13:58:08 UTC
Milestone missed.
Comment 18 Alex Monk 2013-02-17 13:45:26 UTC
I'm trying to review this but when trying to save the summaries I actually get this in /var/log/apache2/error.log:
[Sun Feb 17 13:43:40 2013] [notice] child pid 7278 exit signal Segmentation fault (11)
Comment 19 Alex Monk 2013-02-17 14:05:48 UTC
Not sure what I did but it seems to be working now.
Comment 20 Alex Monk 2013-02-17 14:11:55 UTC
Merged.
Comment 21 Alex Monk 2013-02-17 14:12:33 UTC
(I should probably add that the segfault issue I was having was both with and without the patch, and I can't reproduce it anymore.)

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


Navigation
Links