Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0033440 | Retail Modules | Web POS | public | 2016-07-06 12:16 | 2016-07-12 13:44 |
Reporter | aaroncalero | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0033440: OB.Dal.removeRemoteModels fails if there is a remote model defined without a tableName | ||||
Description | Iis is possible to define OB.Data.ExtensibleModels (such as Products, BPs,...) without tableName, which can be used to store temporary results (e.g. query results, function results). These models can be defined as remote models. The OB.Dal.removeRemoteModels is executed on the logout, removing remote model's tables from the local database. If a model without a table defined is configured as a remote model, the OB.Dal.removeRemoteModels call fails (only in development/debug mode) and the logout is never executed. | ||||
Steps To Reproduce | Define the following dummy model: OB.Model.ATest = OB.Data.ExtensibleModel.extend({ remote: 'OBPOS_remote.customer' }); Having the instance in development mode, login in web pos, and then logout. Verify the following exception appears in the browser console: Uncaught OB.Dal.removeAll: tableName not found And the application stays 'Logging out' forever. | ||||
Proposed Solution | Add a validation to the OB.Dal.removeRemoteModels to verify that the model has a tableName defined before calling to removeAll (OB.Dal.getTableName can be used for this). | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-07-06 12:16 | aaroncalero | New Issue | |||
2016-07-06 12:16 | aaroncalero | Assigned To | => Retail | ||
2016-07-06 12:16 | aaroncalero | OBNetwork customer | => Yes | ||
2016-07-06 12:16 | aaroncalero | Resolution time | => 1468965600 | ||
2016-07-06 12:16 | aaroncalero | Triggers an Emergency Pack | => No | ||
2016-07-06 12:30 | marvintm | Status | new => acknowledged | ||
2016-07-07 11:14 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2016-07-07 11:14 | ranjith_qualiantech_com | Status | acknowledged => scheduled | ||
2016-07-12 10:56 | hgbot | Checkin | |||
2016-07-12 10:56 | hgbot | Note Added: 0088379 | |||
2016-07-12 10:56 | hgbot | Checkin | |||
2016-07-12 10:56 | hgbot | Note Added: 0088380 | |||
2016-07-12 10:56 | hgbot | Status | scheduled => resolved | ||
2016-07-12 10:56 | hgbot | Resolution | open => fixed | ||
2016-07-12 10:56 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/4edcaf0e555acabaa6e0b1ea889402d40bb1a028 [^] | ||
2016-07-12 13:44 | marvintm | Review Assigned To | => marvintm | ||
2016-07-12 13:44 | marvintm | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|