Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0046256 | Retail Modules | Web POS | public | 2021-04-13 11:00 | 2021-04-19 07:28 |
|
Reporter | marvintm | |
Assigned To | rqueralta | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR21Q3 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | OBPS |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0046256: JSONProcessSimple class exec method fails if there is no request in RequestContext |
Description | In some cases we want to use the WebPOS webservices programatically, and in some of those cases there is no actual HTTP request as the code is coming from a process or integration.
In all the cases inside JSONProcessSimple class, there are checks for the existance of the request, so that the relevant code is not executed if request is null. However, there is one case missing this check: the getParameterMap in the MobileCoreKernelUtils class is not doing this check, and fails if the request is null. |
Steps To Reproduce | Use the ExportOrder class programatically from an ImportEntryProcessorHook. Realise that the exec method fails because the request inside RequestContext is null |
Proposed Solution | Add the following lines to the getParameterMap in the MobileCoreKernelUtils class:
if(request == null) {
return parameterMap;
} |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-04-13 11:00 | marvintm | New Issue | |
2021-04-13 11:00 | marvintm | Assigned To | => Retail |
2021-04-13 11:00 | marvintm | OBNetwork customer | => OBPS |
2021-04-13 11:00 | marvintm | Resolution time | => 1619733600 |
2021-04-13 11:00 | marvintm | Triggers an Emergency Pack | => No |
2021-04-16 18:20 | rqueralta | Assigned To | Retail => rqueralta |
2021-04-16 18:20 | rqueralta | Status | new => scheduled |
2021-04-16 23:38 | hgbot | Merge Request Status | => open |
2021-04-16 23:38 | hgbot | Note Added: 0127334 | |
2021-04-19 07:28 | hgbot | Merge Request Status | open => approved |
2021-04-19 07:28 | hgbot | Resolution | open => fixed |
2021-04-19 07:28 | hgbot | Status | scheduled => closed |
2021-04-19 07:28 | hgbot | Fixed in Version | => RR21Q3 |
2021-04-19 07:28 | hgbot | Note Added: 0127348 | |
2021-04-19 07:28 | hgbot | Note Added: 0127349 | |