Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0021716 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2012-09-21 12:59 | 2012-09-30 22:03 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0MP17 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 9d212ece87cb | ||||
Projection | none | ETA | none | Target Version | 3.0MP16 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | mtaal | |||||||
Web browser | ||||||||
Modules | Core | |||||||
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> | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||||||||||||||
|
Notes | |
(0052346) AugustoMauch (administrator) 2012-09-24 16:02 |
This behaviour is caused by the implementacion of the getOrgIds method [1] of the EntityResolver class. If the current organization is 0, then it returns just '0', instead of the natural tree. [1] https://code.openbravo.com/erp/devel/pi/file/57f229938edf/src/org/openbravo/dal/xml/EntityResolver.java#l534 [^] |
(0052618) hgbot (developer) 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 (developer) 2012-09-26 12:56 |
Repository: erp/devel/pi Changeset: cce05b691662ac077cccd1276187b01ccf454fde Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Wed Sep 26 12:55:20 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/cce05b691662ac077cccd1276187b01ccf454fde [^] Related to issue 21716: Reverted fix because it breaks install.source --- M src/org/openbravo/dal/xml/EntityResolver.java --- |
(0052622) AugustoMauch (administrator) 2012-09-26 12:57 |
Reopened because the previous fix broke install.source |
(0052823) hgbot (developer) 2012-09-27 09:48 |
Repository: erp/devel/pi Changeset: 9d212ece87cbc923b5ff28352139e9fa24e9b12f Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Wed Sep 26 14:22:55 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/9d212ece87cbc923b5ff28352139e9fa24e9b12f [^] Fixes issue 21716: REST Webservices can update records from '*' organization --- M src/org/openbravo/dal/xml/EntityResolver.java --- |
(0052908) hudsonbot (developer) 2012-09-28 14:39 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6d2f8cffd4b1 [^] Maturity status: Test |
(0052909) hudsonbot (developer) 2012-09-28 14:39 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6d2f8cffd4b1 [^] Maturity status: Test |
(0052918) hudsonbot (developer) 2012-09-28 14:39 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6d2f8cffd4b1 [^] Maturity status: Test |
(0052940) mtaal (manager) 2012-09-30 22:03 |
Reviewed |
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 |
Copyright © 2000 - 2009 MantisBT Group |