Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0028324 | Retail Modules | Web POS | public | 2014-11-30 19:49 | 2014-12-01 11:06 | |||||||
Reporter | mtaal | |||||||||||
Assigned To | mtaal | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR15Q1 | Fixed in Version | RR15Q1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0028324: Source change detection breaks build, non-thread safe handling of js code generation | |||||||||||
Description | This issue was found while reviewing while the performance build was broken: https://ci.openbravo.com/view/retail/job/ret-performance-pgsql/ [^] https://ci.openbravo.com/view/retail/job/ret-performance-pgsql/ [^] The source change resulted in that direct json webservice orderloader requests caused a NPE on the server. The getGeneratedJavascriptFilename method in the MobileStaticResourceComponent method expected the parameters of the MobileStaticResourceComponent to contain the ServletContext. This was not the case. The code review also showed that the MobileStaticResourceComponent was ApplicationScoped but the parameters of the component were set at each request, resulting in potential unsafe thread behavior. | |||||||||||
Steps To Reproduce | Do a direct webservice call to the orderloader, for example see the performance build jmeter files or use the POSOrderCashupPerformanceTest class. | |||||||||||
Proposed Solution | Make sure that the parameters are set correctly when the static file name is generated. Make the MobileStaticResourceComponent not application scoped anymore, so request based to prevent race conditions. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2014-11-30 19:49 | mtaal | New Issue | ||||||||||
2014-11-30 19:49 | mtaal | Assigned To | => mtaal | |||||||||
2014-11-30 19:49 | mtaal | Triggers an Emergency Pack | => No | |||||||||
2014-11-30 20:00 | mtaal | Relationship added | caused by 0028251 | |||||||||
2014-11-30 20:03 | hgbot | Checkin | ||||||||||
2014-11-30 20:03 | hgbot | Note Added: 0072165 | ||||||||||
2014-11-30 20:03 | hgbot | Status | new => resolved | |||||||||
2014-11-30 20:03 | hgbot | Resolution | open => fixed | |||||||||
2014-11-30 20:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6ea902cef0dfa499eaba07acdee8d89951489eb7 [^] | |||||||||
2014-12-01 11:06 | marvintm | Review Assigned To | => marvintm | |||||||||
2014-12-01 11:06 | marvintm | Status | resolved => closed | |||||||||
2014-12-01 11:06 | marvintm | Fixed in Version | => RR15Q1 |
Notes | |||||
|
|||||
|
|