Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025781Openbravo ERPA. Platformpublic2014-02-20 12:092024-02-07 05:04
gorka_gil 
shankarb 
lowminoralways
closedfixed 
30livebuilds
main 
3.0PR14Q2 
alostale
Google Chrome
Core
Production - Confirmed Stable
2013-07-11
https://code.openbravo.com/erp/devel/pi/rev/bed326b6ddf6f08b10cf22cd7403aff84c0e3750 [^]
No
0025781: download all attachments fail
Using 'downloads all' attachments shows this error in the openbravo.log:

2014-02-19 19:08:18,419 [ajp-localhost%2F127.0.0.1-8809-4] ERROR org.openbravo.erpCommon.businessUtility.TabAttachments - Error while downloading attachments
java.io.FileNotFoundException: /opt/livebuilds/contexts/erp_main_pgsql/attachments/291-A6750F0D15334FB890C254369AC750A8/a (No such file or directory)


From the interface appear everything since create an attachment.zip file for downalod, but when try to uncompress it with unzip fail with:

  End-of-central-directory signature not found. Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive. In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.


Environment:
  ob: livebuilds postgres main
  web browser: chromium 32
1) create a dummy file: echo "abc" > a
2) loggin in livebuilds postgres main
3) go to bussines partner, select the first one
4) add the file 'a' as attachment, desc: a
5) click on 'download all'

It will create a zip for download, but :
- the file fails on uncompress
- an error appear in openbravo.log
No tags attached.
Issue History
2014-02-20 12:09gorka_gilNew Issue
2014-02-20 12:09gorka_gilAssigned To => marvintm
2014-02-20 12:09gorka_gilWeb browser => Google Chrome
2014-02-20 12:09gorka_gilModules => Core
2014-02-20 12:09gorka_gilTriggers an Emergency Pack => No
2014-02-20 18:59alostaleAssigned Tomarvintm => shankarb
2014-02-20 20:00shankarbWeb browserGoogle Chrome => Google Chrome
2014-02-20 20:00shankarbRegression level => Production - Confirmed Stable
2014-02-20 20:00shankarbRegression date => 2013-07-11
2014-02-20 20:00shankarbRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/bed326b6ddf6f08b10cf22cd7403aff84c0e3750 [^]
2014-02-20 20:19shankarbReview Assigned To => alostale
2014-02-20 20:19shankarbWeb browserGoogle Chrome => Google Chrome
2014-02-20 20:20hgbotCheckin
2014-02-20 20:20hgbotNote Added: 0064465
2014-02-20 20:20hgbotStatusnew => resolved
2014-02-20 20:20hgbotResolutionopen => fixed
2014-02-20 20:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a9ab0578b4ece99a56fab8b28ecbfcab2f670067 [^]
2014-02-21 16:28hudsonbotCheckin
2014-02-21 16:28hudsonbotNote Added: 0064497
2014-02-25 14:13alostaleNote Added: 0064566
2014-02-25 14:13alostaleStatusresolved => closed
2014-02-25 14:13alostaleFixed in Version => 3.0MP32
2024-02-07 05:04adamusaNote Added: 0160319
2024-02-07 15:26shuehnerNote Deleted: 0160319

Notes
(0064465)
hgbot   
2014-02-20 20:20   
Repository: erp/devel/pi
Changeset: a9ab0578b4ece99a56fab8b28ecbfcab2f670067
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Fri Feb 21 00:46:21 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/a9ab0578b4ece99a56fab8b28ecbfcab2f670067 [^]

Fixes Issue 0025781: download all attachments fail

When downloading all attachments older method of retrieving attachments was always used.
Called the appropriate method to determine the attachment model and download accordingly.

---
M src/org/openbravo/erpCommon/businessUtility/TabAttachments.java
---
(0064497)
hudsonbot   
2014-02-21 16:28   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b309487a3fb6 [^]
Maturity status: Test
(0064566)
alostale   
2014-02-25 14:13   
Code reviewed + tested