Uploaded image for project: 'GeoServer'
  1. GEOS-5312

CSV WFS output format doesn't deal with Windows newlines

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.1.x, 2.2.x
    • Fix Version/s: 2.5.3, 2.6.1
    • Component/s: WFS
    • Labels:
      None

      Description

      The CSV WFS format correctly deals with embedded unix newlines (\n) in attribute data, which ensures the field is enclosed in double-quotes.

      FID,geom,label,number\r\n
      fid--79854fbd_139d1dd3621_-7fa7,POINT (5 4),"A long label\nwith newlines",2\r\n

      When the attribute contains Windows-style newlines, the output is not quoted, which then then splits the record across two lines.

      FID,geom,label,number\r\n
      fid--79854fbd_139d1dd3621_-7fa7,POINT (5 4),A long label\r\nwith newlines,2\r\n

      .

      Pull request to follow.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              harrison.grundy codehaus (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: