Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007060Openbravo ERPA. Platformpublic2009-01-21 16:542009-03-06 12:34
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
pi 
pi 
Core
No
0007060: REST: when posting an xml without the Openbravo roottag an unclear error message is given
Currently the error message: not the same object is given.

It should be something related to the mandatory root tag.

This is an example of an incorrect doocument:
  <Hotel_Guest id="064E6CCE55D04548B9C2B8F36DF73BB2" identifier="Spuzvica Cevapovic">
    <calculateGuestType/>
    <id>064E6CCE55D04548B9C2B8F36DF73BB2</id>
    <client id="1000000" entity-name="ADClient" identifier="BigBazaar"/>
    <organization id="0" entity-name="Organization" identifier="*"/>
    <isActive>true</isActive>
</Hotel_Guest>

It should be:
<?xml version="1.0" encoding="UTF-8"?>

<ob:Openbravo xmlns:ob="http://www.openbravo.com" [^] created="Wed Jan 21 16:32:06 CET 2009" ob-version="2.50" ob-revision="11999">
  <Hotel_Guest id="064E6CCE55D04548B9C2B8F36DF73BB2" identifier="Spuzvica Cevapovic">
    <calculateGuestType/>
    <id>064E6CCE55D04548B9C2B8F36DF73BB2</id>
    <client id="1000000" entity-name="ADClient" identifier="BigBazaar"/>
    <organization id="0" entity-name="Organization" identifier="*"/>
    <isActive>true</isActive>
</Hotel_Guest>
</ob:Openbravo>
No tags attached.
Issue History
2009-01-21 16:54mtaalNew Issue
2009-01-21 16:54mtaalAssigned To => mtaal
2009-01-21 16:54mtaalsf_bug_id0 => 2526402
2009-01-21 16:54mtaalRegression testing => No
2009-01-22 10:47svnbotCheckin
2009-01-22 10:47svnbotNote Added: 0012509
2009-01-22 10:47svnbotStatusnew => resolved
2009-01-22 10:47svnbotResolutionopen => fixed
2009-01-22 10:47svnbotsvn_revision => 12135
2009-03-06 12:34psarobeStatusresolved => closed

Notes
(0012509)
svnbot   
2009-01-22 10:47   
Repository: openbravo
Revision: 12135
Author: mtaal
Date: 2009-01-22 10:46:59 +0100 (Thu, 22 Jan 2009)

Fixes issue 7076, REST: paging parameters in GET url do not seem to work correctly
Fixes issue 7060, REST: when posting an xml without the Openbravo roottag an unclear error message is given
This commit contains the testcases to proof that the issues have been fixed, the real fix is in revision 12131

---
U trunk/src-test/org/openbravo/test/webservice/BaseWSTest.java
U trunk/src-test/org/openbravo/test/webservice/WSReadTest.java
U trunk/src-test/org/openbravo/test/webservice/WSUpdateTest.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=12135&sc=1 [^]