Uploaded image for project: 'Lucee Development'
  1. LDEV-761

CR line breaks when using <cfhttp> on csv files

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.3.006, 5.0.0.196
    • Labels:
      None

      Description

      When using <cfhttp> to get csv files for use as query objects:

      <cfhttp url="http://myserver/testLF.csv" method="GET" name="theQuery" charset="utf-8"firstrowasheaders="Yes"></cfhttp>

      <cfdump var="#theQuery#"/>

      There is an issue with Mac formatted files that have CR line breaks. Windows files (CRLF) and Unix files (LF) are recognized correctly in Lucee, but Mac (CR) files are not. All 3 file types work correctly in ACF. I have attached all 3 files types for testing and verification.

        Attachments

        1. testCR.csv
          0.3 kB
        2. testCRLF.csv
          0.3 kB
        3. testLF.csv
          0.3 kB

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              djung76 Danny Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: