Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0015728 | Openbravo ERP | A. Platform | public | 2011-01-21 11:46 | 2011-09-01 17:52 |
|
Reporter | iperdomo | |
Assigned To | marvintm | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 20 | OS Version | 2.6.35-gentoo-r12 |
Product Version | | |
Target Version | 3.0MP3 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0015728: Images provided by ShowImageLogo and are not cached in the browser |
Description | The calls to the servlet ShowImageLogo returns always the image. This prevents caching of the images in the browser.
|
Steps To Reproduce | Using Apache HTTP in front of Apache Tomcat, go the login page, and refresh the page several times.
e.g
127.0.0.1 - - [21/Jan/2011:11:38:36 +0100] "GET /openbravo/utility/ShowImageLogo?logo=yourcompanymenu HTTP/1.1" 200 5643
127.0.0.1 - - [21/Jan/2011:11:44:59 +0100] "GET /openbravo/utility/ShowImageLogo?logo=yourcompanymenu HTTP/1.1" 200 5643
|
Proposed Solution | * Implement etag based on the md5 hash of the image content
* Reply HTTP 304 code when the image hasn't changed |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2011-01-21 11:46 | iperdomo | New Issue | |
2011-01-21 11:46 | iperdomo | Assigned To | => marvintm |
2011-01-21 11:46 | iperdomo | Modules | => Core |
2011-01-21 12:09 | shuehner | Note Added: 0033804 | |
2011-01-21 12:10 | shuehner | Issue Monitored: shuehner | |
2011-01-24 08:47 | alostale | Status | new => scheduled |
2011-05-17 09:15 | iperdomo | Priority | urgent => normal |
2011-06-02 10:53 | dmitry_mezentsev | Target Version | 3.0MP0 => 3.0MP1 |
2011-06-22 19:41 | dmitry_mezentsev | Target Version | 3.0MP1 => 3.0MP3 |
2011-08-31 15:29 | hgbot | Checkin | |
2011-08-31 15:29 | hgbot | Note Added: 0040629 | |
2011-08-31 15:29 | hgbot | Status | scheduled => resolved |
2011-08-31 15:29 | hgbot | Resolution | open => fixed |
2011-08-31 15:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/073bf9bf00feb03b6215fa3d43e2bc0ab64f8e21 [^] |
2011-08-31 15:52 | hgbot | Checkin | |
2011-08-31 15:52 | hgbot | Note Added: 0040630 | |
2011-08-31 18:05 | hgbot | Checkin | |
2011-08-31 18:05 | hgbot | Note Added: 0040639 | |
2011-09-01 14:35 | hudsonbot | Checkin | |
2011-09-01 14:35 | hudsonbot | Note Added: 0040670 | |
2011-09-01 14:35 | hudsonbot | Checkin | |
2011-09-01 14:35 | hudsonbot | Note Added: 0040671 | |
2011-09-01 14:35 | hudsonbot | Checkin | |
2011-09-01 14:35 | hudsonbot | Note Added: 0040673 | |
2011-09-01 17:52 | iperdomo | Note Added: 0040690 | |
2011-09-01 17:52 | iperdomo | Status | resolved => closed |
Notes |
|
|
Note: there are 2-3 similar servlet to retrieve images. |
|
|
(0040629)
|
hgbot
|
2011-08-31 15:29
|
|
Repository: erp/devel/pi
Changeset: 073bf9bf00feb03b6215fa3d43e2bc0ab64f8e21
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Aug 31 15:28:11 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/073bf9bf00feb03b6215fa3d43e2bc0ab64f8e21 [^]
Fixed issue 15728. The following changes have been made:
- The logic which gets the image and sends it to the client has been moved to a series of methods in the new ImageUtils class
- ShowImage and ShowImageLogo now use this class
- An ETag is now calculated when an image is sent. This ETag is based on the audit information of the image object.
- If the ETag is sent in the request, and is equal to the current ETag of the image, then the image is now sent, because it hasn't changed.
---
M src/org/openbravo/erpCommon/utility/ShowImage.java
M src/org/openbravo/erpCommon/utility/ShowImageLogo.java
A src/org/openbravo/erpCommon/utility/ImageUtils.java
---
|
|
|
(0040630)
|
hgbot
|
2011-08-31 15:52
|
|
Repository: erp/devel/pi
Changeset: 14d6a595b95683637a313fb4dc9f181d0ec896e2
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Aug 31 15:51:58 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/14d6a595b95683637a313fb4dc9f181d0ec896e2 [^]
Related to issue 15728. Added admin mode. Made new class non-public (because it's only needed in the Image servlets)
---
M src/org/openbravo/erpCommon/utility/ImageUtils.java
---
|
|
|
(0040639)
|
hgbot
|
2011-08-31 18:05
|
|
Repository: erp/devel/pi
Changeset: 0324c4da6bd2191182243cadd3473090f67acc8a
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Aug 31 18:05:14 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0324c4da6bd2191182243cadd3473090f67acc8a [^]
Related to issue 15728. Added information about the contributor (Francois Le Roux)
---
M CONTRIBUTORS
M src/org/openbravo/erpCommon/utility/ImageUtils.java
---
|
|
|
|
|
|
|
|
|
|
|
|
|
Tested on pi @ rev ecb8f9e371a5 |
|