Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-50510

Web form portlet uses LF as line separator instead of CRLF at csv export

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 7.0.0 M3
    • Fix Version/s: None
    • Component/s: Web Form
    • Labels:
      None
    • Fix Priority:
      1

      Description

      Web form portlet uses Line Feed (\n) characters at the en of lines instead of Carriage Return + Line Feed (\r\n).

      According to RFC-4180 (http://tools.ietf.org/html/rfc4180), section Definition of the CSV format

       1.  Each record is located on a separate line, delimited by a line
             break (CRLF).  For example:
      
             aaa,bbb,ccc CRLF
             zzz,yyy,xxx CRLF
      

      steps to reproduce

      1. Deploy web form portlet
      2. Add web form portlet to a page
      3. fill in data and send the form at least two times
      4. click on Configuration, Export
      5. check the saved file

      expected behaviour

      The characters of the end of the lines should be cr+lf (not necessarily in the last line)

      experienced behaviour

      Line ending character is lf (line feed, \n)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 35 weeks, 5 days ago