Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0027555 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | have not tried | 2014-09-08 16:17 | 2014-09-26 09:00 | |||
Reporter | mtaal | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR14Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 97ff2c91e221 | ||||
Projection | none | ETA | none | Target Version | RR14Q4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | alostale | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0027555: With slow system generated js file is not there when already requested, wrong filename | |||||||
Description | See attached image. After analyzing it seems that the appcache already returns the name of the generated file before the file is actually present. This results in a 404 and all kinds of other issues when loading the page. The code can be restructured so that returning the appcache is only done when the file has actually been generated. | |||||||
Steps To Reproduce | put a break point in the generate part visit webpos page | |||||||
Tags | No tags attached. | |||||||
Attached Files | Selection_011.png [^] (42,342 bytes) 2014-09-08 16:17
Q3manifestRace.diff [^] (6,793 bytes) 2014-09-12 16:28 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Notes | |
(0070082) mtaal (manager) 2014-09-11 10:41 |
Hi Rafa, Some comments: - the code which is in the getGenFileName in the MobileCoreApplicationCacheComponent should be moved completely to the MobileStaticResourceComponent component. So there is one place where this is done. (note that the 2 codes are even different now, so is a bug :-) - no need to use a static, better to use injection here - make the code which actually generates the js file synchronized so it is called once - not sure how often the generate or isDevelopment is called, if a lot the isDevelopment should be cached gr. Martin |
(0070086) hgbot (developer) 2014-09-11 17:01 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 8d602e983f7f8ff604f402365c38d4fe4e58e1b3 Author: Rafa Alonso <rafael.alonso <at> openbravo.com> Date: Thu Sep 11 17:01:03 2014 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8d602e983f7f8ff604f402365c38d4fe4e58e1b3 [^] Fixes issue 27555: Mobile core will correctly generate the javascript when its first accessed --- M src/org/openbravo/mobile/core/MobileCoreApplicationCacheComponent.java M src/org/openbravo/mobile/core/MobileStaticResourceComponent.java --- |
(0070091) hgbot (developer) 2014-09-12 01:10 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: c9c6593cbfb87b812b3a35c367ea616c7ebe95da Author: Rafa Alonso <rafael.alonso <at> openbravo.com> Date: Fri Sep 12 01:09:33 2014 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c9c6593cbfb87b812b3a35c367ea616c7ebe95da [^] Related to issue 27555: the logic for the generation of the javascript file has seen the following changes: - the decision of if a new file must be generated is now centralized in the synchronized 'generateStaticResources' method - fixed the inDevelopment mode - fixed the check if the file exists - better comments --- M src/org/openbravo/mobile/core/MobileStaticResourceComponent.java --- |
(0070336) hgbot (developer) 2014-09-24 23:39 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 97ff2c91e221b23b6288206a97daa931e4229bf1 Author: Rafa Alonso <rafael.alonso <at> openbravo.com> Date: Wed Sep 24 23:38:48 2014 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/97ff2c91e221b23b6288206a97daa931e4229bf1 [^] Fixes issue 27555: The decision to create a new javascript file and to keep them have been modified: A new file is created when: - each time tomcat is started - a module changes its version - a module is 'in development' - if the file does not exists Only 1 mobile.core generated file will be present - all mobile.core generated files will be removed, as only the last one is valid and no terminal should use any other Notes: - the file will allways have the mobile.core suffix ('_OBMOBCR' as of now) - to force the creation of a new one: 1. delete the file from the /WebContent/web/js/gen directory 2. restart tomcat 3. only while developing and not to need a module 'in development'; add 'isModuleVersionChange = true;' just before the 'if (generatedJavascriptFilename == null //' line --- M src/org/openbravo/mobile/core/MobileStaticResourceComponent.java --- |
(0070423) alostale (manager) 2014-09-26 09:00 |
Code reviewed tested: Simulating a slow static resources generation by adding sleeps appcache is not served till the actual js file is already created |
Issue History | |||
Date Modified | Username | Field | Change |
2014-09-08 16:17 | mtaal | New Issue | |
2014-09-08 16:17 | mtaal | Assigned To | => mtaal |
2014-09-08 16:17 | mtaal | File Added: Selection_011.png | |
2014-09-08 16:17 | mtaal | Triggers an Emergency Pack | => No |
2014-09-10 14:42 | shuehner | Issue Monitored: shuehner | |
2014-09-11 03:38 | hgbot | Checkin | |
2014-09-11 03:38 | hgbot | Note Added: 0070079 | |
2014-09-11 03:38 | hgbot | Status | new => resolved |
2014-09-11 03:38 | hgbot | Resolution | open => fixed |
2014-09-11 03:38 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/615336731b8e601120f40fd08cbc55d135591490 [^] |
2014-09-11 03:49 | Orekaria | Relationship added | blocks 0027414 |
2014-09-11 04:57 | hgbot | Checkin | |
2014-09-11 04:57 | hgbot | Note Added: 0070081 | |
2014-09-11 10:41 | mtaal | Note Added: 0070082 | |
2014-09-11 11:01 | Orekaria | Issue Monitored: Orekaria | |
2014-09-11 17:00 | Orekaria | Status | resolved => new |
2014-09-11 17:00 | Orekaria | Resolution | fixed => open |
2014-09-11 17:00 | Orekaria | Note Deleted: 0070081 | |
2014-09-11 17:00 | Orekaria | Note Deleted: 0070079 | |
2014-09-11 17:01 | hgbot | Checkin | |
2014-09-11 17:01 | hgbot | Note Added: 0070086 | |
2014-09-11 17:01 | hgbot | Status | new => resolved |
2014-09-11 17:01 | hgbot | Resolution | open => fixed |
2014-09-11 17:01 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/615336731b8e601120f40fd08cbc55d135591490 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8d602e983f7f8ff604f402365c38d4fe4e58e1b3 [^] |
2014-09-11 17:03 | Orekaria | Status | resolved => new |
2014-09-11 17:03 | Orekaria | Resolution | fixed => open |
2014-09-11 17:04 | Orekaria | File Added: patch.diff | |
2014-09-11 17:04 | Orekaria | Status | new => scheduled |
2014-09-11 17:04 | Orekaria | fix_in_branch | => pi |
2014-09-11 17:04 | Orekaria | Review Assigned To | => alostale |
2014-09-11 17:04 | Orekaria | fix_in_branch | pi => |
2014-09-12 01:10 | hgbot | Checkin | |
2014-09-12 01:10 | hgbot | Note Added: 0070091 | |
2014-09-12 16:27 | Orekaria | File Deleted: patch.diff | |
2014-09-12 16:28 | Orekaria | File Added: Q3manifestRace.diff | |
2014-09-12 17:41 | Orekaria | Relationship added | blocks 0027329 |
2014-09-22 16:20 | mtaal | Target Version | RR14Q4 => |
2014-09-22 17:05 | mtaal | Target Version | => RR14Q4 |
2014-09-24 09:54 | Orekaria | Status | scheduled => resolved |
2014-09-24 09:54 | Orekaria | Fixed in Version | => RR14Q4 |
2014-09-24 09:54 | Orekaria | Resolution | open => fixed |
2014-09-24 23:39 | hgbot | Checkin | |
2014-09-24 23:39 | hgbot | Note Added: 0070336 | |
2014-09-24 23:39 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8d602e983f7f8ff604f402365c38d4fe4e58e1b3 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/97ff2c91e221b23b6288206a97daa931e4229bf1 [^] |
2014-09-26 09:00 | alostale | Note Added: 0070423 | |
2014-09-26 09:00 | alostale | Status | resolved => closed |
2014-11-07 10:52 | Orekaria | Relationship added | causes 0027936 |
Copyright © 2000 - 2009 MantisBT Group |