Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0027222 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | trivial | always | 2014-07-29 08:18 | 2014-08-08 18:54 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR14Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 6f9569492c59 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | shankarb | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0027222: NPE in WebServices when trying to delete a non-existing record | |||||||
Description | If a record with an invalid ID is tried to be deleted using DAL webservices a NPE is thrown. | |||||||
Steps To Reproduce | -Execute WSUpdateTest jUnit test -Check Tomcat log ERROR org.openbravo.service.web.BaseWebServiceServlet - java.lang.NullPointerException org.openbravo.base.exception.OBException: java.lang.NullPointerException at org.openbravo.service.web.WebServiceServlet.doDelete(WebServiceServlet.java:89) | |||||||
Proposed Solution | Change exception to something more descriptive, not NPE. Note that currently this case returns an HTTP 500, which can be considered part of the public API. So the same HTTP code should be returned in this case (instead of 404 which could be more appropriate) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0068944) hgbot (developer) 2014-07-29 08:35 |
Repository: erp/devel/pi Changeset: 6f9569492c5981e537e29a174643e4a97f51fd53 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Tue Jul 29 08:34:51 2014 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/6f9569492c5981e537e29a174643e4a97f51fd53 [^] fixed bug 27222: NPE in WebServices when trying to delete a non-existing record Throwing OBException in this case so HTTP 500 response is kept --- M src/org/openbravo/service/rest/DalWebService.java --- |
(0068996) shankarb (viewer) 2014-07-31 06:34 |
Code reviewed and verified in pi changeset be933e11432c. |
(0069233) hudsonbot (viewer) 2014-08-08 18:54 |
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/4450016dee64 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2014-07-29 08:18 | alostale | New Issue | |
2014-07-29 08:18 | alostale | Assigned To | => alostale |
2014-07-29 08:18 | alostale | OBNetwork customer | => No |
2014-07-29 08:18 | alostale | Modules | => Core |
2014-07-29 08:18 | alostale | Triggers an Emergency Pack | => No |
2014-07-29 08:19 | alostale | Relationship added | related to 0027178 |
2014-07-29 08:35 | alostale | Review Assigned To | => shankarb |
2014-07-29 08:35 | hgbot | Checkin | |
2014-07-29 08:35 | hgbot | Note Added: 0068944 | |
2014-07-29 08:35 | hgbot | Status | new => resolved |
2014-07-29 08:35 | hgbot | Resolution | open => fixed |
2014-07-29 08:35 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/6f9569492c5981e537e29a174643e4a97f51fd53 [^] |
2014-07-31 06:34 | shankarb | Note Added: 0068996 | |
2014-07-31 06:34 | shankarb | Status | resolved => closed |
2014-07-31 06:34 | shankarb | Fixed in Version | => 3.0PR14Q4 |
2014-08-08 18:54 | hudsonbot | Checkin | |
2014-08-08 18:54 | hudsonbot | Note Added: 0069233 |
Copyright © 2000 - 2009 MantisBT Group |