Last modified: 2014-10-08 14:42:00 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 T42889, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40889 - IDREF attribute for references an unknown ID "wpSourceTypeFile"
IDREF attribute for references an unknown ID "wpSourceTypeFile"
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Mark Holmquist
: accessibility, easy
: 71689 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-09 11:43 UTC by Thorsten Glaser
Modified: 2014-10-08 14:42 UTC (History)
9 users (show)

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


Attachments

Description Thorsten Glaser 2012-10-09 11:43:29 UTC
Special:Upload is invalid XHTML:

<tr class="mw-htmlform-field-UploadSourceField"><td class="mw-label"><label for="wpSourceTypeFile">Source filename:</label></td><td class="mw-input"><input id="wpUploadFile" name="wpUploadFile" size="60" type="file" />

The “for” attribute of the <label/> must reference an “id” of another tag, but the tag in question is named “wpUploadFile”.

This is lines 840 (and probably 855) and 1118 of mediawiki-1.19.2/includes/specials/SpecialUpload.php, but a quick diff shows git master (6a2ae3244eb2b8ea9c7dcadb528caca08238913e as of today) seems to also be affected.

I don’t know enough about the intricaties of this code to propose a fix, sorry.
Comment 1 Mark Holmquist 2012-10-12 19:29:04 UTC
I'll take a look at this this weekend, labels are a nice thing to have.

Thanks for reporting :)
Comment 2 Sumana Harihareswara 2012-10-12 19:31:07 UTC
Thanks for the heads-up, Thorsten. Also cc'ing some other folks interested in accessibility.

This is invalid XHTML and could hurt accessibility; screen readers and/or people who need bigger click targets might benefit from fixing this.
Comment 3 Mark Holmquist 2012-10-13 23:48:54 UTC
I've fixed this in change I19e06a3b. I mentioned in the commit message that this won't change anything functionally in Firefox, because of upstream bug [0]. But Chromium and others should work now.

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=701353
Comment 4 Alexandre Emsenhuber [IAlex] 2012-10-14 10:07:31 UTC
Change merged.
Comment 5 Thorsten Glaser 2012-10-15 13:49:59 UTC
Confirmed, with 9b09b55b7c09fa3e6591dffa2024b1b72ecfa053 on top of my current 1.19.2-Debian-based tree, the Special:Upload page is valid XHTML again.

Thanks!
Comment 6 Vitaliy Filippov 2013-10-08 11:12:31 UTC
?!!!!! You've broken the upload form in case there are URL uploads enabled.

Please check if something is used in other places before you change it. In this case that was the label ID and it is used as ID of radio button, if URL uploads (or other possible upload source types) are enabled.
Comment 7 Gerrit Notification Bot 2013-10-08 11:17:05 UTC
Change 88443 had a related patch set uploaded by VitaliyFilippov:
(bug 40889) Follow-up 6f1d4db3: Fix the upload form when radio buttons are shown.

https://gerrit.wikimedia.org/r/88443
Comment 8 Vitaliy Filippov 2013-10-08 11:20:24 UTC
OK, I've just posted a fix - please review it someone...

I would also suggest backporting this into LTS 1.19.
Comment 9 Vitaliy Filippov 2013-12-09 14:46:45 UTC
Hellllllllllllllllllllloooooooooooooooooooooooooooooooooooo anyoooooooooooooooooooonnnnnneeeeeeeeeeeeeeeeeeeeeeeee
Comment 10 Andre Klapper 2013-12-09 15:57:40 UTC
A friendly ping asking to review https://gerrit.wikimedia.org/r/#/c/88443/ is more welcome than comment 9.

Maybe mtraceur could review that 5-liner patch?
Comment 11 Vitaliy Filippov 2013-12-09 20:28:34 UTC
I'm sorry :)

...Perhaps I don't have enough patience to do friendly pings instead of "hellooooo" for each patch :(:(:(
Comment 12 Gerrit Notification Bot 2013-12-14 14:39:48 UTC
Change 88443 merged by jenkins-bot:
(bug 40889) Follow-up 6f1d4db3: Fix the upload form when radio buttons are shown.

https://gerrit.wikimedia.org/r/88443
Comment 13 Vitaliy Filippov 2013-12-17 18:41:22 UTC
Thank you very much!! :)

Now the mediawiki trunk has working URL uploads again! :)
Comment 14 Patrick Westerhoff 2014-10-08 14:42:00 UTC
*** Bug 71689 has been marked as a duplicate of this bug. ***

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


Navigation
Links