Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0027222 | Openbravo ERP | A. Platform | public | 2014-07-29 08:18 | 2014-08-08 18:54 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR14Q4 | |
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) |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0027178 | | closed | platform | Error in openbravo.log in ci try-dummy-pgsql job |
|
Attached Files | |
|
Issue History |
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 | |