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

       Web browser: ---
             Bug #: 36438
           Summary: Quotation mark in page title produces wrong JSON
                    export
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: f...@imm.dtu.dk
                CC: jeroen_ded...@yahoo.com, mar...@semantic-mediawiki.org
    Classification: Unclassified
   Mobile Platform: ---


Quotation mark in page title produces wrong JSON export

E.g., a page with the title: 

Limits of self-organization: peer production and "laws of quality"

See an example here: 

http://sandbox.semantic-mediawiki.org/wiki/Limits_of_self-organization:_peer_production_and_%22laws_of_quality%22

With content 

[[title::Limits of self-organization: peer production and "laws of quality"]]
[[author::Paul Duguid]]


{{#ask: [[author::Paul Duguid]]
 |? title 
 |? author
 | format = JSON
}}

the formatted JSON will not escape the quotation mark in the page title: 

    "items": [
        {
            "label": "Limits of self-organization: peer production and "laws of
quality"",
            "title": ["Limits of self-organization: peer production and
"laws of quality""],
            "author": ["Paul Duguid"]
        }
    ]
}

Another example: 

http://wikilit.referata.com/wiki/Special:Ask/-5B-5BCategory:Publications-5D-5D-20-5B-5Bhas-20author::Paul-20Duguid-5D-5D/-3FHas-20author/-3FYear/-3FAbstract/-3FDomain/-3FHas-20topic/limit%3D50/searchlabel%3D/format%3Djson

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to