Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0021716 | Openbravo ERP | A. Platform | public | 2012-09-21 12:59 | 2012-09-30 22:03 |
|
Reporter | caristu | |
Assigned To | AugustoMauch | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP16 | Fixed in Version | 3.0MP17 | |
Merge Request Status | |
Review Assigned To | mtaal |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0021716: REST Webservice PUT Method not find objects for * |
Description | When trying to perform an update via REST web services, if the default organization is '*' the update not works because can't find the object id.
It should work because in the application it is possible to change, for example, the business partner name, with * as default organization. |
Steps To Reproduce | 1) Log in with * as default organizaion
2) Perform the following update, that updates the business partner "Alimentos y Supermercados" name:
<?xml version="1.0" encoding="UTF-8"?>
<ob:Openbravo xmlns:ob="http://www.openbravo.com"> [^]
<BusinessPartner id="A6750F0D15334FB890C254369AC750A8">
<name>Alimentos y Supermercados, S.A Nuevo Nombre</name>
</BusinessPartner>
</ob:Openbravo>
3) We obtain the following error:
<ob:error xmlns:ob="http://www.openbravo.com"><message>org.openbravo.service.web.InvalidContentException: [^] Exception when parsing entity BusinessPartner (A6750F0D15334FB890C254369AC750A8):Entity BusinessPartner with id A6750F0D15334FB890C254369AC750A8 not found
Caused by: Exception when parsing entity BusinessPartner (A6750F0D15334FB890C254369AC750A8):Entity BusinessPartner with id A6750F0D15334FB890C254369AC750A8 not found</message></ob:error> |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | has duplicate | defect | 0021529 | 3.0MP17 | closed | ioritzCia | Updating default warehouse by using web services not working properly | related to | design defect | 0021758 | | acknowledged | AugustoMauch | Update the ClientExportImportTest so it can be reactivated | related to | defect | 0023801 | | closed | AugustoMauch | XML REST Webservices identifier property is not working | related to | defect | 0023990 | | closed | AugustoMauch | Permission error when applying datasets |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-09-21 12:59 | caristu | New Issue | |
2012-09-21 12:59 | caristu | Assigned To | => AugustoMauch |
2012-09-21 12:59 | caristu | Modules | => Core |
2012-09-21 12:59 | caristu | Resolution time | => 1351116000 |
2012-09-21 12:59 | caristu | Issue Monitored: networkb | |
2012-09-24 16:02 | AugustoMauch | Note Added: 0052346 | |
2012-09-26 10:28 | AugustoMauch | Relationship added | related to 0021758 |
2012-09-26 12:01 | AugustoMauch | Issue Monitored: mtaal | |
2012-09-26 12:01 | AugustoMauch | Closed by | => mtaal |
2012-09-26 12:02 | hgbot | Checkin | |
2012-09-26 12:02 | hgbot | Note Added: 0052618 | |
2012-09-26 12:02 | hgbot | Status | new => resolved |
2012-09-26 12:02 | hgbot | Resolution | open => fixed |
2012-09-26 12:02 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/fd9a9c55609325f4b5b00b831cd812dce16f8ba9 [^] |
2012-09-26 12:56 | hgbot | Checkin | |
2012-09-26 12:56 | hgbot | Note Added: 0052621 | |
2012-09-26 12:57 | AugustoMauch | Note Added: 0052622 | |
2012-09-26 12:57 | AugustoMauch | Status | resolved => new |
2012-09-26 12:57 | AugustoMauch | Resolution | fixed => open |
2012-09-27 09:48 | hgbot | Checkin | |
2012-09-27 09:48 | hgbot | Note Added: 0052823 | |
2012-09-27 09:48 | hgbot | Status | new => resolved |
2012-09-27 09:48 | hgbot | Resolution | open => fixed |
2012-09-27 09:48 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/fd9a9c55609325f4b5b00b831cd812dce16f8ba9 [^] => http://code.openbravo.com/erp/devel/pi/rev/9d212ece87cbc923b5ff28352139e9fa24e9b12f [^] |
2012-09-28 13:06 | ioritzCia | Relationship added | has duplicate 0021529 |
2012-09-28 14:39 | hudsonbot | Checkin | |
2012-09-28 14:39 | hudsonbot | Note Added: 0052908 | |
2012-09-28 14:39 | hudsonbot | Checkin | |
2012-09-28 14:39 | hudsonbot | Note Added: 0052909 | |
2012-09-28 14:39 | hudsonbot | Checkin | |
2012-09-28 14:39 | hudsonbot | Note Added: 0052918 | |
2012-09-30 22:03 | mtaal | Note Added: 0052940 | |
2012-09-30 22:03 | mtaal | Status | resolved => closed |
2012-09-30 22:03 | mtaal | Fixed in Version | => 3.0MP17 |
2013-05-13 15:53 | AugustoMauch | Relationship added | related to 0023801 |
2013-06-10 11:49 | AugustoMauch | Relationship added | related to 0023990 |
Notes |
|
|
|
|
(0052618)
|
hgbot
|
2012-09-26 12:02
|
|
Repository: erp/devel/pi
Changeset: fd9a9c55609325f4b5b00b831cd812dce16f8ba9
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Sep 26 10:47:44 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fd9a9c55609325f4b5b00b831cd812dce16f8ba9 [^]
Fixes issue 21716: REST Webservice works with organization '*'
The EntityResolver.getOrgIds has been modified, because prior to the fix if it was called with the organization '0', it returned '0' instead of the natural true. And now, if it is called for an organization other than EntityResolver.organization, it returns a recomputed natural true (orgNaturalTree is the natural the of EntityResolver.organization).
---
M src-test/org/openbravo/test/AllTests.java
M src/org/openbravo/dal/xml/EntityResolver.java
---
|
|
|
(0052621)
|
hgbot
|
2012-09-26 12:56
|
|
|
|
|
Reopened because the previous fix broke install.source |
|
|
(0052823)
|
hgbot
|
2012-09-27 09:48
|
|
|
|
|
|
|
|
|
|
|
|
|
(0052940)
|
mtaal
|
2012-09-30 22:03
|
|
|