<html><body style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 12px;">http://code.google.com/p/xerteonlinetoolkits/source/browse/trunk/modules/xerte/engine/save.php<br /><br />here<br /><br />Well we check the strings are the same length.<br /><br />The PHP echoes, but that isn't much use to the flash. However, when it was written, the mantra was "code for success" :)<br /><blockquote><br />----- Original Message -----<br /><div style="width:100%;background:rgb(228,228,228);"><div style="font-weight:bold;">From:</div> "For Xerte technical developers" <xerte-dev@lists.nottingham.ac.uk></div><br /><div style="font-weight:bold;">To:</div>"For Xerte technical developers (xerte-dev@lists.nottingham.ac.uk)" <xerte-dev@lists.nottingham.ac.uk><br /><div style="font-weight:bold;">Cc:</div><br /><div style="font-weight:bold;">Sent:</div>Thu, 9 May 2013 13:49:00 +0100<br /><div style="font-weight:bold;">Subject:</div>[Xerte-dev] FW: xot data disappearing<br /><br /><br /><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">Where do we do the checking for valid data? It must be server side because I can’t see any mention of it in the wizard?</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><div><div style="border:none;border-top:solid #B5C4DF 1pt;padding:3pt 0cm 0cm 0cm;"><p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us">From:</span></b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us"> Tenney Julian <br /><b>Sent:</b> 09 May 2013 11:48<br /><b>To:</b> 'Xerte discussion list'<br /><b>Subject:</b> RE: xot data disappearing</span></p><p></p><p></p></div></div><p class="MsoNormal"></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">Hi,</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">This is always bad news. Happily it doesn’t seem to be happening often. From time to time it happens here as well, and almost every time it is because people are pasting in text from MSOffice or elsewhere that carries unseen formatting that breaks the XML, as much as we try and protect it. There is better error handling code in there now than the early days so if you upgrade it may improve – of course, if it’s a rare occurrence, it’s hard to tell.</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">We do test to see if the xml is well formed, and prevent it being saved if it isn’t, but I think from time to time things do slip though, and when this happens no one can tell us exactly what they were doing when it broke. We hear ‘well, I, er, dunno, but it was working one minute, and not the next… pardon? Paste form word, no, I don’t think so, er, shouldn’t I do that then, oh, I didn’t know that…’ etc, so it’s hard to replicate things and prevent them happening again.</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">If it happens, the first thing to look at is whether data and preview.xml files are the same. If they are, there’s probably not much you can do about it, but try and see if the xml file contains more info than they are seeing in the editor. If so, some of it might be able to be rescued. </span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">If they are different, you can restore to the last good published place. If you can catch a real example I’d love to see it, because this is about the worst thing that can happen, and it shouldn’t be possible.</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">Julian</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><div><div style="border:none;border-top:solid #B5C4DF 1pt;padding:3pt 0cm 0cm 0cm;"><p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us">From:</span></b><span style="font-size:10pt;font-family:Tahoma, 'sans-serif';" lang="en-us" xml:lang="en-us"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk">xerte-bounces@lists.nottingham.ac.uk</a> [<a href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Loughlin, Colin<br /><b>Sent:</b> 09 May 2013 10:06<br /><b>To:</b> 'Xerte discussion list'<br /><b>Subject:</b> [Xerte] xot data disappearing</span></p><p></p><p></p></div></div><p class="MsoNormal"></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">Hi – apologies if this has already been covered, but I have now had several incidents of data disappearing from Xerte objects and wondered if this was a known problem, and/or what the solutions might be.</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">It happens infrequently (4/5 times over the last two versions that we have had installed during the last couple of years), we’re currently on version 1.7.</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">I think what happens is that data gets corrupted/lost during the saving process. For example the most recent case the LO was about 40 pages and was saved normally, but when we went to open it again it contained only 29 pages.</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;">Thanks, </span></p><p></p><p></p><p class="MsoNormal"><b><span style="font-family:Calibri, 'sans-serif';color:#003366;">Colin Loughlin </span></b></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#244061;">CMALT FHEA</span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:10pt;font-family:Calibri, 'sans-serif';color:#244061;">Kingston University</span><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#244061;"></span></p><p></p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri, 'sans-serif';color:#1F497D;"></span></p><p> </p><p></p><p class="MsoNormal"><br />This email has been scanned for all viruses by the MessageLabs Email<br />Security System.</p><p></p><p></p></div>
</blockquote></body></html>