Last modified: 2014-09-07 19:06:45 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 T72097, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70097 - JS bug : URI error
JS bug : URI error
Status: RESOLVED WORKSFORME
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
wmf-deployment
PC Windows 7
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-27 16:17 UTC by Sacamol
Modified: 2014-09-07 19:06 UTC (History)
2 users (show)

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


Attachments
example of JS console on chrome browser as the time of bug input (19.03 KB, image/png)
2014-08-27 16:17 UTC, Sacamol
Details
home page error 1 (359.94 KB, image/png)
2014-08-27 22:07 UTC, Sacamol
Details
home page error 2 (372.81 KB, image/png)
2014-08-27 22:08 UTC, Sacamol
Details
Random page (269.60 KB, image/png)
2014-08-27 22:08 UTC, Sacamol
Details
editing a page (271.33 KB, image/png)
2014-08-27 22:08 UTC, Sacamol
Details
homepage console with debug=true (182.87 KB, image/png)
2014-08-28 21:56 UTC, Sacamol
Details
random page with debug=true (194.82 KB, image/png)
2014-08-28 21:57 UTC, Sacamol
Details
edit with debug=true (213.84 KB, image/png)
2014-08-28 21:57 UTC, Sacamol
Details

Description Sacamol 2014-08-27 16:17:18 UTC
Created attachment 16292 [details]
example of JS console on chrome browser as the time of bug input

Hi
Since some days, i'm experiencing javascript problems when i'm loading wiki pages (all pages have the problem). I've got some 'URI errors' thrown by different actions (not always the same) which seems coming from mediawiki files (for an example see attached file).

As a result, some functionalities are disabled (some gadgets are non running, edit buttons are not present, ...)

I've already deleted temporary files many times, deleted all mediawiki related cookies too and the problem is reappearing again and again. 

The problem seems to be attached to my french account : i have the problem on two different PC's, on different browsers (IE, firefox, chrome), and only on french wikipedia (but don't have pb in anonymous state, nor when logged on wiki EN)

I don't know how to fix this. Do you have a solution please ? Thanks.

Sacamol (https://fr.wikipedia.org/wiki/Utilisateur:Sacamol)
Comment 1 Andre Klapper 2014-08-27 16:51:35 UTC
Thanks for taking the time to report this!

What are exact steps to reproduce the problem? Also, the exact error is welcome (if that arrow in your screenshot can be clicked to expand its content, don't know) by attaching "?debug=true" to the URL.
Comment 2 Sacamol 2014-08-27 22:07:36 UTC
Created attachment 16298 [details]
home page error 1
Comment 3 Sacamol 2014-08-27 22:08:03 UTC
Created attachment 16299 [details]
home page error 2
Comment 4 Sacamol 2014-08-27 22:08:26 UTC
Created attachment 16300 [details]
Random page
Comment 5 Sacamol 2014-08-27 22:08:48 UTC
Created attachment 16301 [details]
editing a page
Comment 6 Sacamol 2014-08-27 22:13:42 UTC
Hi

Thanx for reply. There is no special step. Each displaying page is producing the problem : homepage (attachements "home page"), profile page, viewing an article (attachement "random page"), editing an article (attachement "editing page"), etc...

I do not have "?debug=true" parameter attached to the URLs when i'm browsing, as you can see on attachments pictures.

If you need something else, let me know.
Comment 7 Andre Klapper 2014-08-28 15:06:07 UTC
Please append "?debug=true" to the URL, or "&debug=true" if there already is a question mark "?" in the URL address. 
This should provide clearer information in your browser's error console about the actual location in the code where the problem happens.
Comment 8 Sacamol 2014-08-28 21:56:36 UTC
Created attachment 16306 [details]
homepage console with debug=true
Comment 9 Sacamol 2014-08-28 21:57:06 UTC
Created attachment 16307 [details]
random page with debug=true
Comment 10 Sacamol 2014-08-28 21:57:34 UTC
Created attachment 16308 [details]
edit with debug=true
Comment 11 Sacamol 2014-08-28 22:00:03 UTC
Hi, i added pictures of JS console on pages with "debug=true". Hope this will help to find something :) . Thx for helping.
Sacamol
Comment 12 Helder 2014-08-28 22:28:09 UTC
When I go to
https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal?debug=1
using Firefox in privative navigation the error doesn't happens (so it is not something enabled by default). But If I type
importScript('User:Dr Brains/HistoryDeluxe.js');
in the console (which is one of the scripts you use) I see the error "URIError: malformed URI sequence" from this line
https://github.com/wikimedia/mediawiki-core/blob/555e0b4b3c517cfb565ad275d9600806cd3cd50a/resources/lib/jquery/jquery.cookie.js#L17
At that point the parameter s has this value:
"-Nmdbot%3BABotSupreme%3BAHbot%3BAddihockey10%20%28automated%29%3BAibot%3BAkeronBot%3BAlexbot%3BAlinebot%3BAlirezabot%3BAnalphabot%3BAntonyB-Bot%3BArkbot%3BAutorit%E9Bot%3BAvicBot%3BAvocatoBot%3BBeBot%3BBlockbot%3BBoToulousain%3BBokimBot%3BBot%20de%20paille%3BBotMyShinyMetalAss%3BBoten%20Anna%3BBotte%3BBottine%3BBub%27s%20wikibot%3BCactusBot%3BCarsracBot%3BCeraBot%3BChicobot%3BChobot%3BChuispastonBot%3BCocuBot%3BCommonsDelinker%3BCrochet.david.bot%3BDEagleBot%3BDSisyphBot%3BDarafshBot%3BDickensBot%3BDiliBot%3BDinamik-bot%3BDr%20Bot%3BDragonBot%3BEdwardsBot%3BEleferenBot%3BElfobot%3BEmausBot%3BEpopBot%3BEscarbot%3BEtiennekdBot%3BFBot%3BFajrbot%3BFiriBot%3BGZ-Bot%3BGerakibot%3BGhosterBot%3BGratusBot%3BGrouchoBot%3BHAL%3BHRoestBot%3BHawk-Eye-Bot%3BHerculeBot%3BHexabot%3BHomon-Bot-Ohohoho%3BHunsuBot%3BHyuBoT%3BIluvatarBot%3BInfoRobBot%3BIr4ubot%3BJYBot%3BJackBot%3BJackieBot%3BJustincheng12345-bot%3BKamikazeBot%3BKasirbot%3BKunMilanoRobot%3BKwjbot%3BLait%20ribot%3BLe%20plus%20bot%3BLeperebot%3BLinedBot%3BLin%E91bot%3BLouperibot%3BLoveless%3BLucienBOT%3BLuckas-bot%3BMahdiBot%3BMakecat-bot%3BMediaWiki%20default%3BMediaWiki%20message%20delivery%3BMerlIwBot%3BMerlLinkBot%3BMinsbot%3BMyBot%3BNallimbot%3BOrikriBot%3BOrlodrimBot%3BPastilleBot%3BPeter17-Bot%3BPhe-bot%3BPiglobot%3BRahl43bot%3BRedBot%3BRezabot%3BRibotBOT%3BRoland45-Bot%3BRpabot%3BSahimrobot%3BSalebot%3BSantoshBot%3BSassoBot%3BScoopBot%3BStarusBot%3BSteenthIWbot%3BSynthebot%3BTXiKiBoT%3BTalabot%3BThijs%21bot%3BTjBot%3BTotorobot%3BTuHan-Bot%3BVagobot%3BVarbot%3BVer-bot%3BVolkovBot%3BWikiCleanerBot%3BWwbot%3BXavier%20Combelle%20Bot%3BXqbot%3BYFdyh-bot%3BZebulon84bot%3BZetudBot%3BZiziBot%3BZ%E9roBot%3B%u30BF%u30C1%u30B3%u30DE%20robot"
Comment 13 Andre Klapper 2014-08-28 22:31:58 UTC
Looking at that code (your browser's developer console offers that) and going to the line numbers offered, these are all cookie related calls.

jquery.cookie.js:17
jquery.cookie.js:65
  ext.dismissableSiteNotice.js:10
  ext.dismissableSiteNotice.js:29
     and 
  mediawiki.action.view.postEdit.js:24
  mediawiki.action.view.postEdit.js:86
     and 
  bannerController.js:308
  bannerController.js:165


This might simply be a misbehavior created by 'User:Dr Brains/HistoryDeluxe.js'? (thanks Helder for your help to track this down!)
Comment 14 Sacamol 2014-08-29 19:24:20 UTC
Thx for replying. I have disabled the user script "User:Dr Brains/HistoryDeluxe.js" and it seems that the problem disappeared. It's a little bit weird that this is a user script the problem cause because, in the beginning, i disabled all gadgets and user scripts and the problem was still there.

I will tell to the script maintainig user (Dr Brains) that there is problem on it. Sorry for disturbing you with non mediawiki related problem. 

Really big thanks for your help :) .

sacamol
Comment 15 Andre Klapper 2014-08-29 19:55:12 UTC
https://fr.wikipedia.org/wiki/Utilisateur:Dr_Brains/HistoryDeluxe.js does $stuff with cookies.

Glad that Helder and you found out the reason for this. I'm going to close this ticket as INVALID as the reason seems to be outside of the MediaWiki codebase and instead in code that is locally on-wiki.
Comment 16 Helder 2014-08-29 20:16:55 UTC
If I type $.cookie('bug70097') in the console I get
> URIError: malformed URI sequence
so this bug doesn't seems to be caused by that script.
Comment 17 Helder 2014-08-29 20:30:44 UTC
(In reply to Helder from comment #16)
> If I type $.cookie('bug70097') in the console I get
> > URIError: malformed URI sequence
> so this bug doesn't seems to be caused by that script.

And the error doesn't happens anymore after I deleted the cookies from fr.wikipedia.org.
Comment 18 Sacamol 2014-08-30 14:34:28 UTC
Since i have disabled the script, the problem hadn't appeared one more time so it might me linked to it. (just in user experience way, not technical way)

Sacamol
Comment 19 Andre Klapper 2014-09-07 19:06:45 UTC
No way to reproduce anymore. Closing as WORKSFORME.

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


Navigation
Links