Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007850Openbravo ERP07. Sales managementpublic2009-02-26 15:222009-03-24 00:00
villind 
iperdomo 
normalmajorN/A
closedno change required 
5
2.40MP3 
 
No
Core
No
0007850: In ExternalSales webservice the uploadOrders method does not report exceptions or any other error conditions
In ExternalSales webservice the uploadOrders method does not report exceptions or any other error conditions. When the other party (POS) relies that the Openbravo has the once uploaded orders some orders will not get uploaded if there is communication of configuration error.
Misconfigure the POS or shutdown the Openbravo database etc. and upload orders.
Properly report status in webservice calls.
No tags attached.
depends on backport 0008212 closed iperdomo In ExternalSales webservice the uploadOrders method does not report exceptions or any other error conditions 
Issue History
2009-02-26 15:22villindNew Issue
2009-02-26 15:22villindAssigned To => rafaroda
2009-02-26 15:22villindOBNetwork customer => No
2009-02-26 15:22villindRegression testing => No
2009-03-03 13:29rafarodaNote Added: 0014308
2009-03-03 13:29rafarodaAssigned Torafaroda => mtaal
2009-03-03 15:37mtaalNote Added: 0014321
2009-03-16 12:25rafarodaNote Added: 0014687
2009-03-16 12:25rafarodaAssigned Tomtaal => iperdomo
2009-03-16 12:25rafarodaStatusnew => feedback
2009-03-16 12:39iperdomoNote Added: 0014690
2009-03-17 11:26iperdomoNote Edited: 0014690
2009-03-20 10:05iperdomoStatusfeedback => scheduled
2009-03-20 10:05iperdomofix_in_branch => pi
2009-03-23 11:45iperdomoStatusscheduled => closed
2009-03-23 11:45iperdomoResolutionopen => no change required
2009-03-24 00:00anonymoussf_bug_id0 => 2707586

Notes
(0014308)
rafaroda   
2009-03-03 13:29   
Martin,

Are these exceptions handled with new webservices?

Thanks.
(0014321)
mtaal   
2009-03-03 15:37   
Hi Rafa,
The REST webservices will not commit the transaction if an error occurred and the error is reported back in an error document.

What should be done further with this issue? I have no experience with the upload sales orders webservice so it won't make that much sense if I try to cover this issue (imo).

gr. Martin
(0014687)
rafaroda   
2009-03-16 12:25   
Iván,

Any idea on this?

Thanks.
(0014690)
iperdomo   
2009-03-16 12:39   
(edited on: 2009-03-17 11:26)
Checking the uploadOrders code, everything is wrapped by a big try/catch block, and only logs the errors in Openbravo.log but don't report anything to the webservice consumer app.