Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0049510 | Openbravo ERP | A. Platform | public | 2022-06-08 11:06 | 2022-07-02 13:33 |
|
Reporter | jlopez | |
Assigned To | jlopez | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR22Q4 | |
Merge Request Status | approved |
Review Assigned To | |
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 | 0049510: HttpServletRequestMock.getSession(boolean arg0) returns null instead of the active session |
Description | In jUnit tests you have to use the HttpServletRequestMock class, for example to test Callouts that make use of the active session to transform the request parameters to numeric types with the CalloutInfo.getBigDecimalParameter(String param) method, it is returning null instead of the active session. |
Steps To Reproduce | Run any jUnit test of a Callout that is retrieving parameters of type BigDecimal with the method CalloutInfo.getBigDecimalParameter(String param).
For example: https://gitlab.com/openbravo/devel/pmods/org.openbravo.commercialoperations/-/blob/fr/860/src-test/org/openbravo/commercialoperations/callouts/CheckProductPricesValuesTest.java [^] |
Proposed Solution | Modify the HttpServletRequestMock.getSession(boolean arg0) method so that it returns the active session. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-06-08 11:06 | jlopez | New Issue | |
2022-06-08 11:06 | jlopez | Assigned To | => Triage Platform Base |
2022-06-08 11:06 | jlopez | Modules | => Core |
2022-06-08 11:06 | jlopez | Triggers an Emergency Pack | => No |
2022-06-08 11:16 | jlopez | Issue Monitored: jlopez | |
2022-06-08 11:16 | jlopez | Issue End Monitor: jlopez | |
2022-06-08 11:23 | hgbot | Merge Request Status | => open |
2022-06-08 11:23 | hgbot | Note Added: 0138151 | |
2022-06-08 11:38 | aferraz | OBNetwork customer | => No |
2022-06-08 11:38 | aferraz | Summary | Using the HttpServletRequestMock class in jUnit tests => HttpServletRequestMock.getSession(boolean arg0) returns null instead of the active session |
2022-07-02 11:52 | hgbot | Merge Request Status | open => approved |
2022-07-02 11:53 | hgbot | Resolution | open => fixed |
2022-07-02 11:53 | hgbot | Status | new => closed |
2022-07-02 11:53 | hgbot | Note Added: 0138979 | |
2022-07-02 11:53 | hgbot | Fixed in Version | => PR22Q4 |
2022-07-02 11:53 | hgbot | Note Added: 0138980 | |
2022-07-02 13:33 | aferraz | Assigned To | Triage Platform Base => jlopez |