Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038069
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformmajoralways2018-03-07 13:522018-03-12 13:27
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0PR17Q4.2
StatusclosedFix in branchFixed in SCM revision4c4adeaf70ca
ProjectionnoneETAnoneTarget Version3.0PR17Q4.2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression levelProduction - Confirmed Stable
Regression date2016-11-08
Regression introduced in release3.0PR17Q1
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/7acec5407733 [^]
Triggers an Emergency PackNo
Summary

0038069: incorrect view cache in browse for windows with server display logic

DescriptionView definition for windows that have at least a field with server side display logic are not correctly cached in browser if there is no preference configuring that field.

The affected windows are:

select distinct w.name from ad_field f, ad_tab t, ad_window w where displaylogic_server is not null and f.ad_Tab_id = t.ad_tab_id and w.ad_window_id = t.ad_window_id order by 1;
            name
-----------------------------
 Create Purchase Order Lines
 Goods Movements
 Goods Receipt
 Goods Shipment
 Manage Requisitions
 Purchase Invoice
 Purchase Order
 Referenced Inventory
 Requisition
 Return from Customer
 Return Material Receipt
 Return to Vendor
 Return to Vendor Shipment
 Sales Invoice
 Sales Order
 Sales Quotation
(16 rows)
Steps To Reproduce1. Log in as Openbravo
2. Open dev tools to check requests
3. Open Sales Order window
   -> OK: a request to View?viewId=_143 is triggered with response code 200 (success)
4. Close Sales Order window and reopen it in the same session
   -> OK: no request is perfomed
5. Close session and log in again with Openbravo user in the same browser
6. Open Sales Order window
   -> GOT: a request to View?viewId=_143 is triggered with response code 200
      EXPECTED: a request to View?viewId=_143 with response code 304 (not modified)

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0038066 closedalostale incorrect view cache in browser for windows with server display logic 

-  Notes
(0103079)
hgbot (developer)
2018-03-08 10:20

Repository: erp/backports/3.0PR17Q4.2
Changeset: 4c4adeaf70ca041e83f108d4442640551df485e8
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Mar 07 14:26:09 2018 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR17Q4.2/rev/4c4adeaf70ca041e83f108d4442640551df485e8 [^]

fixed bug 38069: no view cache in browser for windows with server display logic

  Window having at least a field with server side display logic were not cached
  in browser if there was no preference configuring that display logic.

  The problem was cuased by an incorrect eTag calculation that if not preference
  was set a date in future was set including current hour.

  The fix:
   * Simplifies eTag calculation for this case: if no preference defined, no need
     to add any date.
   * Uses for StringBuilder for String concatenation to slightly improve performance

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/ViewComponent.java
---
(0103158)
caristu (developer)
2018-03-12 13:27

Code reviewed + tested OK.

- Issue History
Date Modified Username Field Change
2018-03-07 14:18 alostale Type defect => backport
2018-03-07 14:18 alostale Target Version => 3.0PR17Q4.2
2018-03-08 10:20 hgbot Checkin
2018-03-08 10:20 hgbot Note Added: 0103079
2018-03-08 10:20 hgbot Status scheduled => resolved
2018-03-08 10:20 hgbot Resolution open => fixed
2018-03-08 10:20 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q4.2/rev/4c4adeaf70ca041e83f108d4442640551df485e8 [^]
2018-03-12 13:27 caristu Note Added: 0103158
2018-03-12 13:27 caristu Status resolved => closed
2018-03-12 13:27 caristu Fixed in Version => 3.0PR17Q4.2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker