Last modified: 2012-09-01 18:24:27 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 T41847, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39847 - Bad data in campaign config can break templates
Bad data in campaign config can break templates
Status: RESOLVED DUPLICATE of bug 39872
Product: WikiLoves Monuments Mobile
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
: 39879 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-31 18:51 UTC by Arthur Richards
Modified: 2012-09-01 18:24 UTC (History)
2 users (show)

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


Attachments

Description Arthur Richards 2012-08-31 18:51:55 UTC
There has been one report so far of bad campaign data causing a template breakage on photo upload:

https://commons.wikimedia.org/w/index.php?title=File:Gimnazjum,_ob-_III_LO_2012-07-31_14-27-29.jpg&oldid=76984495

This appears due to a syntax problem in one of the data fields in the campaign data for Poland. The 'idField' contains some lovely wikitext that is not complete:
"idField": "{{Zabytek|2=$1|", 

Which results in the broken template:

=={{int:filedesc}}==
{{Information
|description={{pl|1=Gimnazjum, ob. III LO}}
{{Zabytek|2=A 014|
{{Uploaded with WLM Mobile 
|app-version=1.2
|platform=Android 
|user-agent=Android 4.0.4; pl-pl; GT-I9100 Build/IMM76D
}}
|date=2012-08-31
|source={{own}}
|author=[[User:PMG|PMG]]
|permission=
|other_versions=
|other_fields=
}}


I've fixed the data for the campaign, however we should also guard ourselves against bad data since we have no control over the input, and the input for most campaign data fields is free-form input and can contain pure text, or wiki markup, etc.
Comment 2 Jon 2012-08-31 23:27:00 UTC

*** This bug has been marked as a duplicate of bug 39872 ***
Comment 3 Jon 2012-09-01 18:24:27 UTC
*** Bug 39879 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