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

       Web browser: ---
             Bug #: 29939
           Summary: Geographic coordinates don't serialize to valid JSON
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: SemanticMaps
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


When querying SMW using semantic search with JSON export result format,
geographic coordinates break the validity of the result. The reason for this is
that the "seconds" symbol (") does not get escaped, unintentionally terminating
the JSON string for the coordinate.

I am using: SM Version 0.7.6.1 and SMW Version 1.5.6

Example query result breaking JSON validity:
<pre>
{
    "properties": {
        "has_coordinates" : { "valueType": "text" }
    },
    "items": [
        {
            "label": "File:1306499229166.jpeg",
            "has_coordinates": "49° 52' 28" N, 8° 39' 35" E",
            "uri" : "http://mywiki/index.php?title=File:1306499229166.jpeg";,
            "type" : "Media"
        }
        ]
}
</pre>

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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