Last modified: 2013-07-25 20:13:38 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 T52623, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50623 - Entering AFTv5 feedback causes error
Entering AFTv5 feedback causes error
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Matthias Mullie
:
Depends on:
Blocks: 51494
  Show dependency treegraph
 
Reported: 2013-07-02 22:56 UTC by Chris McMahon
Modified: 2013-07-25 20:13 UTC (History)
11 users (show)

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


Attachments
response causing AFT error (85.67 KB, image/png)
2013-07-04 00:24 UTC, Chris McMahon
Details

Description Chris McMahon 2013-07-02 22:56:49 UTC
entering feedback on a page for example at http://en.wikipedia.beta.wmflabs.org/wiki/Aftpage causes an error reading "Form submission error." upon submitting
Comment 1 Alex Monk 2013-07-03 21:22:52 UTC
Chrome messed up the text of the exception being thrown so I tried to make it trigger again from the console with an identical request:

( new mw.Api ).post( {
    action: 'articlefeedbackv5',
    found: '1',
    comment: 'asd',
    anontoken: 'I1FwW4QHH7nnq0bFCw0zsfXTM9P5Uzzc',
    pageid: '6270',
    revid: '57949',
    bucket: '6',
    cta: '4',
    link: 'X'
} ).fail( function ( code, result ) {
    console.log( result.error.info );
    console.log( result.error['*'] );
} );
Object {abort: function, state: function, always: function, then: function, promise: function…}
Exception Caught: Unable to resolve site ID 'enwiki'!


#0 /data/project/apache/common-local/php-master/extensions/Wikibase/client/includes/LangLinkHandler.php(396): Wikibase\LangLinkHandler->getSiteGroup()
#1 /data/project/apache/common-local/php-master/extensions/Wikibase/client/includes/LangLinkHandler.php(428): Wikibase\LangLinkHandler->getEffectiveRepoLinks(Object(Title), Object(ParserOutput))
#2 /data/project/apache/common-local/php-master/extensions/Wikibase/client/WikibaseClient.hooks.php(370): Wikibase\LangLinkHandler->addLinksFromRepository(Object(Title), Object(ParserOutput))
#3 [internal function]: Wikibase\ClientHooks::onParserAfterParse(Object(Parser), 'asd', Object(StripState))
#4 /data/project/apache/common-local/php-master/includes/Hooks.php(199): call_user_func_array('\Wikibase\Clien...', Array)
#5 /data/project/apache/common-local/php-master/includes/GlobalFunctions.php(3829): Hooks::run('ParserAfterPars...', Array)
#6 /data/project/apache/common-local/php-master/includes/parser/Parser.php(387): wfRunHooks('ParserAfterPars...', Array)
#7 /data/project/apache/common-local/php-master/extensions/SpamBlacklist/SpamBlacklist_body.php(55): Parser->parse('asd', Object(Title), Object(ParserOptions))
#8 /data/project/apache/common-local/php-master/extensions/ArticleFeedbackv5/ArticleFeedbackv5.utils.php(359): SpamBlacklist->filter(Object(Title), 'asd', '')
#9 /data/project/apache/common-local/php-master/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php(121): ArticleFeedbackv5Utils::validateSpamBlacklist('asd', 6270)
#10 /data/project/apache/common-local/php-master/includes/api/ApiMain.php(840): ApiArticleFeedbackv5->execute()
#11 /data/project/apache/common-local/php-master/includes/api/ApiMain.php(380): ApiMain->executeAction()
#12 /data/project/apache/common-local/php-master/includes/api/ApiMain.php(351): ApiMain->executeActionWithErrorHandling()
#13 /data/project/apache/common-local/php-master/api.php(73): ApiMain->execute()
#14 /data/project/apache/common-local/w/api.php(3): require('/data/project/a...')
#15 {main}
Comment 2 Alex Monk 2013-07-03 21:41:18 UTC
Actually it seems this error is unrelated, sorry. Will have to wait for that error to be resolved before I can look into the original issue again.
Comment 3 Alex Monk 2013-07-03 22:49:54 UTC
Seems to be working now. Maybe that was the issue after all...
Comment 4 Chris McMahon 2013-07-03 23:54:30 UTC
Strange, I am still getting "Form submission error"
Comment 5 Chris McMahon 2013-07-04 00:24:45 UTC
Created attachment 12746 [details]
response causing AFT error
Comment 6 Chris McMahon 2013-07-04 00:28:40 UTC
As if the POST from the AFT is not invoking the API at all.  The response is just the static HTML page of the API documentation.
Comment 7 Antoine "hashar" Musso (WMF) 2013-07-08 08:40:52 UTC
I managed to post a feedback on http://en.wikipedia.beta.wmflabs.org/wiki/Aftpage

I found out last week that the resource loader url (load.php) was pointing to the text cache ( en.wikipedia.beta.wmflabs.org/w/load.php ) instead of bits ( bits.beta.wmflabs.org/en.wikipedia.beta.wmflabs.org/w/load.php ).  

When resourceloader cache is unvalidated, there is no purge sent to the text cache so we had an old Javascript version being delivered.  That most probably caused the issue reported there.


I have deployed a change on beta a few minutes ago that points load.php to bits.beta.wmflabs.org : https://gerrit.wikimedia.org/r/#/c/70322/ . I guess that solve it.
Comment 8 Chris McMahon 2013-07-09 15:00:41 UTC
I am still seeing this behavior consistently along with Bug 50622
Comment 9 Ariel T. Glenn 2013-07-10 07:27:24 UTC
As a logged in user I was able to post an update; as an anonymous user, even after page purge, I saw the error Chris mentions.
Comment 10 Ariel T. Glenn 2013-07-10 10:49:34 UTC
And now as an anonymous user it is working for me. Can you say if it's consistent for you and if it's both logged in and logged out that you have the problem?
Comment 11 Chris McMahon 2013-07-25 20:13:38 UTC
This seems to have miraculously fixed itself.  I looked through the recent merges but didn't see any likely reasons.

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


Navigation
Links