Last modified: 2014-01-11 14:33:36 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 T60964, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58964 - Upload with url-parameter containing special characters causing holding
Upload with url-parameter containing special characters causing holding
Status: RESOLVED WORKSFORME
Product: Wiki Loves Monuments
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Nobody - You can work on this!
: utf8
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-25 18:38 UTC by AleXXw
Modified: 2014-01-11 14:33 UTC (History)
6 users (show)

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


Attachments

Description AleXXw 2013-12-25 18:38:34 UTC
If I try to upload a picture via link & url-parameter containing special characters like "ö" (ie https://commons.wikimedia.org/wiki/special:UploadWizard?campaign=wlm-at&id=35863&description=Puttererschl%F6ssl%20mit%20Schlosskapelle, linked via https://de.wikipedia.org/w/index.php?title=Liste_der_denkmalgesch%FCtzten_Objekte_in_Aigen_im_Ennstal&redirect=no&#objektid-35863) the spinner keeps spinning, no upload possible.
Comment 1 Andre Klapper 2013-12-25 19:00:22 UTC
> via link & url-parameter

Which browser, browser version, and operating system is this about?
Comment 2 AleXXw 2013-12-25 19:04:11 UTC
I tried it personal on Win 8.1, Chrome (33.0.1750.5 & 31.0.1650.67), FF 26 & IE11, there are at least two other people having the same problem (see https://de.wikipedia.org/wiki/Benutzer_Diskussion:AleXXw#Denkmallisten)
Comment 3 Tisza Gergő 2014-01-08 00:47:15 UTC
This is a bug in the monument list tool; the proper URL would be https://commons.wikimedia.org/wiki/special:UploadWizard?campaign=wlm-at&id=35863&description=Puttererschl%C3%B6ssl%20mit%20Schlosskapelle&debug=1 (note the two-byte code for ö). This is percent-encoded UTF-8; the tool seems to be outputting unencoded links in an ISO-8859-1 encoded document (which the browser then turns into percent-encoded ISO-8859-1).
Comment 4 AleXXw 2014-01-08 05:41:46 UTC
1) Sorry, it worked for years now so there is a new and existing problem that needs to be fixed. 

2) Mediawiki accepts two-byte codes: linked via
https://de.wikipedia.org/w/index.php?title=Liste_der_denkmalgesch%FCtzten_Objekte_in_Aigen_im_Ennstal&redirect=no&#objektid-35863, so the problem seems to be at the UploadWizzard

3) I don't think I have any possibility to change the encoding. The current code to create the link is:

{{fullurl:commons:special:uploadWizard|campaign=wlm-at&id={{{ObjektID|}}}&descriptionlang=de&description={{urlencode:{{{Name}}}}}{{#if:{{{Commonscat|}}}|&categories={{urlencode:{{{Commonscat|}}}}}}}}}

Any better ideas? BTW: this issue doesn't just belong to this one template, every template on de.wp using upload campaigns is now broken.
Comment 5 Tisza Gergő 2014-01-08 08:12:38 UTC
(In reply to comment #4)
> 2) Mediawiki accepts two-byte codes: linked via
> https://de.wikipedia.org/w/index.
> php?title=Liste_der_denkmalgesch%FCtzten_Objekte_in_Aigen_im_Ennstal&redirect
> =no&#objektid-35863,
> so the problem seems to be at the UploadWizzard

Try the same link on the Greek Wikipedia:
https://el.wikipedia.org/w/index.php?title=Liste_der_denkmalgesch%FCtzten_Objekte_in_Aigen_im_Ennstal&redirect=no&#objektid-35863

There is no way to reliably identify what character %FC stands for. ISO-8859 encodings only allow for 256 characters, therefore each region has its own character set and the same byte means a different character in different regions. Single-language wikis can be matched to encodings but multilanguage wikis like Commons cannot.

More importantly, if your application uses ISO-8859-1 then it will make a mess of any character that is not in that character set. (What if there is a monument in Austria which has a č in its name? That is encoded in ISO-8859-x as %E8, which happens to be è in ISO-8859-1.) So this is a bug in the monument list tool regardless of whether UploadWizard understands the links; and if that bug is fixed, there will be no problem with UploadWizard either. As it is now, I think it is better to error out on ambiguous input than to choose one possible interpretation by random and possibly do something else than the uploader intended.

> 3) I don't think I have any possibility to change the encoding. The current
> code to create the link is:
> 
> {{fullurl:commons:special:uploadWizard|campaign=wlm-
> at&id={{{ObjektID|}}}&descriptionlang=de&description={{urlencode:
> {{{Name}}}}}{{#if:{{{Commonscat|}}}|&categories={{urlencode:
> {{{Commonscat|}}}}}}}}}

That code works fine, it generates UTF-8 links, and UploadWizard works for me when I click them. The problem is only with the application at the toolserver.
Comment 6 Andre Klapper 2014-01-10 14:32:20 UTC
As comment 5 explains, it is technically impossible to fix this in UploadWizard to make it "work for everybody".

Tentatively moving to WLM product (though that does not feel right either, but it's at least closer to where this should get fixed).
Comment 7 AleXXw 2014-01-11 14:33:36 UTC
Thanks for the help, even if noone has changed anything: now it works again from the wikilists ;) The toolservertool was never the problem, there was a broken link on the on-wiki-lists.

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


Navigation
Links