https://bugzilla.wikimedia.org/show_bug.cgi?id=39847

       Web browser: ---
             Bug #: 39847
           Summary: Bad data in campaign config can break templates
           Product: WikiLoves Monuments Mobile
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to