Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-696

SPARQL CSV Parser does not handled escaped quotes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Jena 2.11.2
    • None
    • None

    Description

      If we are going to commit to a CSV back to results set attempt then it'll need to handle "" inside "..."

      Example:

                  String x = "x\n\"123\"\"456\"" ;
                  byte[] b = StrUtils.asUTF8bytes(x) ;
                  ResultSet rs = CSVInput.fromCSV(new ByteArrayInputStream(b)) ;
                  ResultSetFormatter.out(rs); 
      

      gives

      Error Parsing CSV results at Line 2 - Expected comma after quote
      

      Attachments

        1. CSVParser.java
          9 kB
          Andy Seaborne
        2. JENA-696-v1.patch
          27 kB
          Andy Seaborne
        3. TestCSVParser.java
          5 kB
          Andy Seaborne

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: