Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0023023 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2013-02-11 11:01 | 2013-02-20 04:49 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | high | Resolution | fixed | Fixed in Version | 3.0MP20 | |||
Status | closed | Fix in branch | Fixed in SCM revision | fe46ee66e77a | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | shankarb | |||||||
OBNetwork customer | No | |||||||
Web browser | Google Chrome | |||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | QA functional test | |||||||
Regression date | 2013-01-10 | |||||||
Regression introduced in release | ||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/22e7a5c9fbda [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0023023: Error to insert an USER calling to web service | |||||||
Description | if you try insert an user calling to the WS http://servername:8080/openbravo/ws/dal/ADUser [^] error is returned: org.openbravo.service.web.InvalidContentException: Exception when parsing entity ADUser (null):id to load is required for loading Exception when parsing entity ADUser (null):id to load is required for loading Caused by: Exception when parsing entity ADUser (null):id to load is required for loading Exception when parsing entity ADUser (null):id to load is required for loading | |||||||
Steps To Reproduce | . call to WS http://servername:8080/openbravo/ws/dal/ADUser [^] (method POST) using the xml attached (sampeCallWS.txt) | |||||||
Proposed Solution | . diff attached | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() | |||||||
![]() |
|
![]() |
|
(0056336) AugustoMauch (administrator) 2013-02-11 15:26 |
Test plan: Check that it is possible to add a new user using the Openbravo REST webservices. To do that, you can install the Chrome Poster extension, and configure it this way: URL: http://youropenbravodomain/ws/dal/ADUser [^] Content body: <?xml version="1.0" encoding="UTF-8"?> <ob:Openbravo xmlns:ob="http://www.openbravo.com"> [^] <ADUser> <active>true</active> <firstName>xxxName User</firstName> <lastName>xxxLastName User</lastName> <email>xxxmail@user.com</email> <phone>xxx123456</phone> <position>xxxConsultan</position> <businessPartner id="2C4C71BC828B47A0AF2A79855FD3BA7A" /> <name>xxxName User Last Name</name> </ADUser> </ob:Openbravo> After filling this fields, click on the POST button and the new user should be added to the AD_USER table. |
(0056337) hgbot (developer) 2013-02-11 15:27 |
Repository: erp/devel/pi Changeset: fe46ee66e77ade9de62d8c7118af74ec8c5a3bd9 Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Mon Feb 11 15:23:11 2013 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/fe46ee66e77ade9de62d8c7118af74ec8c5a3bd9 [^] Fixes issue 23023: NPE no longer thrown when using REST webservices to add rows In the resolve function of the EntityResolver class, OBDal.getInstance().get(entityName, id) was being executed without checking if the id was null. --- M src/org/openbravo/dal/xml/EntityResolver.java --- |
(0056354) shankarb (viewer) 2013-02-12 04:46 |
Code Reviewed and verified in pi changeset fda0bc8e8d80. |
(0056562) hudsonbot (viewer) 2013-02-20 04:49 |
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/d828167a9e83 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2013-02-11 11:01 | malsasua | New Issue | |
2013-02-11 11:01 | malsasua | Assigned To | => AugustoMauch |
2013-02-11 11:01 | malsasua | File Added: sampeCallWS.txt | |
2013-02-11 11:01 | malsasua | Web browser | => Google Chrome |
2013-02-11 11:01 | malsasua | Modules | => Core |
2013-02-11 11:01 | malsasua | OBNetwork customer | => No |
2013-02-11 11:01 | malsasua | Triggers an Emergency Pack | => No |
2013-02-11 11:02 | malsasua | File Added: diffCallWS.diff | |
2013-02-11 11:23 | AugustoMauch | Web browser | Google Chrome => Google Chrome |
2013-02-11 11:23 | AugustoMauch | Regression level | => QA functional test |
2013-02-11 11:23 | AugustoMauch | Regression date | => 2013-01-10 |
2013-02-11 11:23 | AugustoMauch | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/22e7a5c9fbda [^] |
2013-02-11 15:23 | AugustoMauch | Issue Monitored: shankarb | |
2013-02-11 15:23 | AugustoMauch | Review Assigned To | => shankarb |
2013-02-11 15:23 | AugustoMauch | Web browser | Google Chrome => Google Chrome |
2013-02-11 15:26 | AugustoMauch | Note Added: 0056336 | |
2013-02-11 15:27 | hgbot | Checkin | |
2013-02-11 15:27 | hgbot | Note Added: 0056337 | |
2013-02-11 15:27 | hgbot | Status | new => resolved |
2013-02-11 15:27 | hgbot | Resolution | open => fixed |
2013-02-11 15:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/fe46ee66e77ade9de62d8c7118af74ec8c5a3bd9 [^] |
2013-02-12 04:46 | shankarb | Note Added: 0056354 | |
2013-02-12 04:46 | shankarb | Status | resolved => closed |
2013-02-12 04:46 | shankarb | Fixed in Version | => 3.0MP20 |
2013-02-20 04:49 | hudsonbot | Checkin | |
2013-02-20 04:49 | hudsonbot | Note Added: 0056562 |
Copyright © 2000 - 2009 MantisBT Group |