Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0018593 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | minor | always | 2011-09-22 16:31 | 2011-10-12 01:59 | |||
| Reporter | roklenardic | View Status | public | |||||
| Assigned To | mtaal | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | pi | |||
| Status | closed | Fix in branch | Fixed in SCM revision | 1912a8ab2d98 | ||||
| Projection | none | ETA | none | Target Version | 3.0MP4 | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | ||||||||
| OBNetwork customer | No | |||||||
| Web browser | Mozilla Firefox | |||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0018593: REST Webservice PUT method does not find objects | |||||||
| Description | Here is the situation: # we have an entity FOO that belongs to a table with access level = client/org # we have a record in this table with the Organization set to OrgA (not *) # our Openbravo user has the default role that has access to * and OrgA, however, the default organization is set to * # if we use the following PUT call to this url: http://localhost:8180/openbravo/ws/dal/FOO [^] with this content: <Openbravo> <FOO id="FF8081813258436B0132584CECDC001C"> <entityProperty>B</entityProperty> </FOO> </Openbravo> the system returns this: <ob:error xmlns:ob="http://www.openbravo.com"><message>org.openbravo.service.web.InvalidContentException: [^] Exception when parsing entity FOO (FF8081813258436B0132584CECDC001C):Entity FOO with id FF8081813258436B0132584CECDC001C not found Caused by: Exception when parsing entity FOO (FF8081813258436B0132584CECDC001C):Entity FOO with id FF8081813258436B0132584CECDC001C not found</message></ob:error> and that happens because the search method does not look for the entity FF8081813258436B0132584CECDC001C within all orgs that the user has access to, but only the default one. | |||||||
| Steps To Reproduce | see above | |||||||
| Proposed Solution | Extend the search so that it looks for the entity requested for UPDATE/PUT within all orgs that a user has access to. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0041238) hgbot (developer) 2011-09-22 16:33 |
Repository: erp/devel/pi Changeset: 1912a8ab2d98c41db96a97900e0b268e708115f7 Author: Martin Taal <martin.taal <at> openbravo.com> Date: Thu Sep 22 16:32:46 2011 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/1912a8ab2d98c41db96a97900e0b268e708115f7 [^] Fixes issue 18593: REST Webservice PUT method does not find objects Also search the other orgs an user has access to --- M src/org/openbravo/dal/xml/EntityResolver.java --- |
|
(0041239) roklenardic (viewer) 2011-09-22 17:48 |
Tested PUT/UPDATE and it works now |
|
(0041694) hudsonbot (viewer) 2011-10-12 01:59 |
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/9bd2b5c2d982 [^] Maturity status: Test |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2011-09-22 16:31 | roklenardic | New Issue | |
| 2011-09-22 16:31 | roklenardic | Assigned To | => mtaal |
| 2011-09-22 16:31 | roklenardic | Web browser | => Mozilla Firefox |
| 2011-09-22 16:31 | roklenardic | Modules | => Core |
| 2011-09-22 16:31 | roklenardic | OBNetwork customer | => No |
| 2011-09-22 16:33 | hgbot | Checkin | |
| 2011-09-22 16:33 | hgbot | Note Added: 0041238 | |
| 2011-09-22 16:33 | hgbot | Status | new => resolved |
| 2011-09-22 16:33 | hgbot | Resolution | open => fixed |
| 2011-09-22 16:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1912a8ab2d98c41db96a97900e0b268e708115f7 [^] |
| 2011-09-22 17:48 | roklenardic | Note Added: 0041239 | |
| 2011-09-22 17:48 | roklenardic | Status | resolved => closed |
| 2011-09-22 17:48 | roklenardic | Fixed in Version | => pi |
| 2011-10-12 01:59 | hudsonbot | Checkin | |
| 2011-10-12 01:59 | hudsonbot | Note Added: 0041694 | |
| Copyright © 2000 - 2009 MantisBT Group |