Re: Re: BXE Wishlist

Christian Stocker <[email protected]> Sun, 21 Nov 2004 21:33:46 +0100
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>

On 21.11.2004 21:23 Uhr, Emmet Caulfield wrote:
> On Sun, Nov 21, 2004 at 12:47:26PM -0500, Jean Pierre LeJacq wrote:
> 
> 
>>I'm also concerned that BXE sometimes completely deletes a file when
>>an error occurs.  A more transactional approach is really essential
>>so that if BXE fails, we are left with at least the original
>>content.
> 
> 
> I don't see how BXE, running on the client-side as it does, could
> possibly delete a file on the server-side, or do as you seem to
> require.
> 
> I would've thought that it is the responsibility of whatever you have
> on the server side, accepting content from BXE, to implement this
> functionality, not BXE; that is to say that the "acceptor" on the
> server side should check that the incoming content from the editor (be
> it BXE or otherwise) is an appropriate replacement (e.g. not empty,
> valid XML, and whatever other rules-u-like) for what's currently there
> (if anything).
> 
> Short of inventing a protocol for two-phase-commit over HTTP (or
> adopting IBM's RHTTP), implementing it in BXE and insisting that
> server-side BXE-serving scripts implement it too (eek!), I don't see
> how it could be done. This would seem like gross overkill to me and a
> poor substitute for pretty simple defensive programming.

Sure, but BXE shouldn't send empty files or documents just consisting of 
the root node.  You can't produce empty XML files with BXE at all 
(currently), but the later would be possible ;)

To sum up, BXE shouldn't send stuff over the wire, if an error happened. 
I don't know right now, why this happens at all. But Jean Pierre will 
certainly shed some light on that. And yes, you definitively should also 
do some checks on the server side.

chregu



> 
> Cheers,
> 
> Emmet.
> 

-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [email protected]  |  gnupg-keyid 0x5CE1DECB
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users