Miss an explicit commit or rollback, where explicit can mean also annotation or 
aop based demarcation, is imho a bug. So, also without an exception the 
transaction should be aborted.
Andrea


Inviato da Samsung Mobile

<div>-------- Messaggio originale --------</div><div>Da: Tim Donohue 
<tdono...@duraspace.org> </div><div>Data:23/07/2014  19:24  (GMT+01:00) 
</div><div>A: dspace-devel <dspace-devel@lists.sourceforge.net> 
</div><div>Oggetto: [Dspace-devel] XMLUI "auto-commit" behavior versus JSPUI    
   "auto-abort" behavior </div><div>
</div>Hi Developers,

After a bit of digging on a very odd bug (DS-2012), Pascal-Nicolas 
Becker, Peter Dietz and I discovered a strange behavior difference in 
how XMLUI and JSPUI deal with uncommitted database changes:

https://jira.duraspace.org/browse/DS-2072

Simply, the JSPUI aborts any changes that you fail to explicitly commit. 
Whereas, XMLUI auto-commits them (as long as no Exceptions were thrown). 
See DS-2072 for much more detials.

Obviously having opposite behaviors is not ideal (it makes UI-specific 
bugs even harder to figure out). Thoughts on which behavior seems more 
"correct" or ideal?

- Tim

-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to