<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://compendium.open.ac.uk/bugzilla/bugzilla.dtd">

<bugzilla version="3.4.12"
          urlbase="http://compendium.open.ac.uk/bugzilla/"
          
          maintainer="m.s.bachler@open.ac.uk"
>

    <bug>
          <bug_id>523</bug_id>
          
          <creation_ts>2007-04-30 12:21:00 +0100</creation_ts>
          <short_desc>Restoring from SQL does not escape newline character</short_desc>
          <delta_ts>2009-06-23 12:21:34 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Compendium</product>
          <component>** General **</component>
          <version>1.5.2</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          
          
          <priority>High</priority>
          <bug_severity>Bug-Normal</bug_severity>
          <target_milestone>2.0 Beta 1</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dariusz Kaminski">dariusz.kaminski</reporter>
          <assigned_to name="Michelle Bachler">m.s.bachler</assigned_to>
          <cc>jeff</cc>

      

      

      

          <long_desc isprivate="0">
            <who name="Dariusz Kaminski">dariusz.kaminski</who>
            <bug_when>2007-04-30 12:21:41 +0100</bug_when>
            <thetext>After having backed up the content with nodes containing text with multiple lines (each made by pressing Enter) I restored the database from this SQL file.
Instead of having the text with sentences starting in separate lines, I got them all like this: &apos;This is the first line.\nThis is the second line.\nThis is the third line.&apos;
It seems that newline characters are not escaped properly when the file is being restored to the project.

This is how the SQL data looks like:
INSERT INTO Node (NodeID, Author, CreationDate, ModificationDate, NodeType, OriginalID, ExtendedNodeType, Label, Detail, CurrentStatus, LastModAuthor) VALUES (&apos;826936641177931332515&apos;,&apos;Dariusz Kaminski&apos;,1177931332515,1177931384265,10,&apos;&apos;,&apos;&apos;,&apos;Testing what happens with new line \n and why it is not escaped&apos;,&apos;This is the first line.\nThis is the second line.\nThis is the third line.&apos;,0,&apos;Dariusz Kaminski&apos;)

I hope this helps.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Al Selvin">alselvin</who>
            <bug_when>2007-05-03 22:44:16 +0100</bug_when>
            <thetext>Thanks for reporting this. It&apos;s been a known issue in the past that I thought had been addressed but seems not.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Michelle Bachler">m.s.bachler</who>
            <bug_when>2007-05-11 09:30:27 +0100</bug_when>
            <thetext>Yes, I thought I had fixed this for 1.5.2. It was all working fine. I&apos;ll do some testing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Michelle Bachler">m.s.bachler</who>
            <bug_when>2007-08-08 10:20:01 +0100</bug_when>
            <thetext>*** Bug 530 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Michelle Bachler">m.s.bachler</who>
            <bug_when>2009-06-23 12:21:34 +0100</bug_when>
            <thetext>OK. I think I have cracked it this time :-)</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>