Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0018593
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2011-09-22 16:312011-10-12 01:59
ReporterroklenardicView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Versionpi
StatusclosedFix in branchFixed in SCM revision1912a8ab2d98
ProjectionnoneETAnoneTarget Version3.0MP4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browserMozilla Firefox
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0018593: REST Webservice PUT method does not find objects

DescriptionHere 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 Reproducesee above
Proposed SolutionExtend the search so that it looks for the entity requested for UPDATE/PUT within all orgs that a user has access to.
TagsNo 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 (developer)
2011-09-22 17:48

Tested PUT/UPDATE and it works now
(0041694)
hudsonbot (developer)
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: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
Powered by Mantis Bugtracker