Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008179Openbravo ERP03. Procurement managementpublic2009-03-17 19:232009-07-17 10:52
roklenardic 
iperdomo 
urgentmajoralways
closedfixed 
20Ubuntu 8.10
main 
pi 
Core
No
0008179: PDF Purchase Dimensional Report Does not work
When running the above report, an almost empty html file is returned:
SimpleDimensionalNoComparative.jrxml-20d988f2-733d-494d-9c0f-c110420b2157.pdf

with the following content:
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=utf-8"></META>
<TITLE></TITLE>
<LINK rel="shortcut icon" href="../web/images/favicon.ico" type="image/x-icon"></LINK>
<SCRIPT language="javascript">
    function onLoadDo(url) {
      if(typeof top.opener.top.appFrame != 'undefined')
        top.opener.top.appFrame.document.location.href = url;
      else
          top.opener.top.document.location.href = url;
      top.window.close();
    }
  </SCRIPT>
</HEAD>
<BODY onload="onLoadDo('http://localhost:8180/openbravoMain/utility/DownloadReport.html?report=SimpleDimensionalNoComparative.jrxml-20d988f2-733d-494d-9c0f-c110420b2157.pdf' [^]);" style="background-color: #505050;" id="paramHref">

</BODY></HTML>



instead of the actual PDF.
1) Login and switch to Openbravo Admin role
2) navigate to Procurement Management || Analysis Tools || Purchase Dimensional Report
3) From Date=01-01-2004
4) To Date=01-01-2009
5) Dimensions=Product
6) click the PDF Format button
250 QA
depends on backport 0008187 closed gmauleon PDF Purchase Dimensional Report Does not work 
has duplicate defect 0007775 closed dalsasua General Ledger Report cannot be exported 
has duplicate defect 0008424 closed iperdomo The reports in jasper don't work 
Issue History
2009-03-17 19:23roklenardicNew Issue
2009-03-17 19:23roklenardicAssigned To => rafaroda
2009-03-17 19:23roklenardicRegression testing => No
2009-03-18 10:43gmauleonAssigned Torafaroda => gmauleon
2009-03-18 10:43gmauleonStatusnew => acknowledged
2009-03-18 10:43gmauleonStatusacknowledged => scheduled
2009-03-18 10:43gmauleonfix_in_branch => pi
2009-03-19 19:09roklenardicNote Added: 0014805
2009-03-25 13:19gmauleonNote Added: 0014945
2009-03-25 15:11gmauleonAssigned Togmauleon => iperdomo
2009-04-01 17:44psarobeTag Attached: 250 QA
2009-04-01 17:44psarobeSeverityminor => major
2009-04-01 17:44psarobefix_in_branchpi =>
2009-04-02 15:22pjuvaraPrioritynormal => urgent
2009-04-02 20:01hgbotCheckin
2009-04-02 20:01hgbotNote Added: 0015140
2009-04-02 20:01hgbotStatusscheduled => resolved
2009-04-02 20:01hgbotResolutionopen => fixed
2009-04-02 20:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a3b1cd2a6d59cb83cb111b925355b14205946f76 [^]
2009-04-03 09:07rafarodaRelationship addedrelated to 0007775
2009-04-03 11:41sureshbabuStatusresolved => closed
2009-04-03 11:41sureshbabuNote Added: 0015153
2009-04-03 11:41sureshbabuFixed in Version => 2.50beta
2009-04-03 14:30iperdomoRelationship addedhas duplicate 0008424
2009-04-03 16:17dalsasuaRelationship replacedhas duplicate 0007775
2009-04-03 18:31plujanStatusclosed => new
2009-04-03 18:31plujanResolutionfixed => open
2009-04-03 18:31plujanNote Added: 0015190
2009-04-03 18:31plujanFixed in Version2.50beta =>
2009-04-03 18:31plujanStatusnew => scheduled
2009-04-03 18:31plujanfix_in_branch => pi
2009-04-03 18:38hgbotCheckin
2009-04-03 18:38hgbotNote Added: 0015192
2009-04-03 18:38hgbotStatusscheduled => resolved
2009-04-03 18:38hgbotResolutionopen => fixed
2009-04-03 18:38hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/a3b1cd2a6d59cb83cb111b925355b14205946f76 [^] => http://code.openbravo.com/erp/devel/pi/rev/f10967662fa084d1ddeebf888637c5d5cf5bcd9f [^]
2009-04-03 19:29plujanStatusresolved => new
2009-04-03 19:29plujanResolutionfixed => open
2009-04-03 19:29plujanNote Added: 0015198
2009-04-03 19:30plujanStatusnew => scheduled
2009-04-03 19:36hgbotCheckin
2009-04-03 19:36hgbotNote Added: 0015200
2009-04-03 19:36hgbotStatusscheduled => resolved
2009-04-03 19:36hgbotResolutionopen => fixed
2009-04-03 19:36hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/f10967662fa084d1ddeebf888637c5d5cf5bcd9f [^] => http://code.openbravo.com/erp/devel/pi/rev/5e552073a7ed5523ec1a26e916e7ed9fc69a6cd2 [^]
2009-04-03 20:11plujanStatusresolved => closed
2009-04-15 12:00anonymoussf_bug_id0 => 2764936
2009-07-03 13:12hgbotCheckin
2009-07-03 13:12hgbotNote Added: 0017817
2009-07-03 13:12hgbotStatusclosed => resolved
2009-07-03 13:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/5e552073a7ed5523ec1a26e916e7ed9fc69a6cd2 [^] => http://code.openbravo.com/erp/devel/pi/rev/25eefb3dff5d0ff8a1093ef62cd2e7fe3fd1a0c3 [^]
2009-07-03 13:12hgbotCheckin
2009-07-03 13:12hgbotNote Added: 0017832
2009-07-03 13:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/25eefb3dff5d0ff8a1093ef62cd2e7fe3fd1a0c3 [^] => http://code.openbravo.com/erp/devel/pi/rev/9f9aeec6bd3071005af4afa84ed14e6e8b6e1450 [^]
2009-07-03 13:12hgbotCheckin
2009-07-03 13:12hgbotNote Added: 0017833
2009-07-03 13:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/9f9aeec6bd3071005af4afa84ed14e6e8b6e1450 [^] => http://code.openbravo.com/erp/devel/pi/rev/14e465a2ca687246be4148c00d6f63d5c9960b27 [^]
2009-07-17 10:51sureshbabuNote Added: 0018346
2009-07-17 10:52sureshbabuStatusresolved => closed
2009-07-17 10:52sureshbabuFixed in Version2.50MP1 => pi

Notes
(0014805)
roklenardic   
2009-03-19 19:09   
Where is the link to the fix revision/changeset? I could not find this bug number in any of the commit messages of the PI branch. why PI as opposed to the main?
(0014945)
gmauleon   
2009-03-25 13:19   
Im having a look into this issue and i've noticed the issues below

-The PDF that the system is trying to print is stored in tmp folder, this is incorrect should take the file stored into the attachment file configured in Openbravo.properties.


So i've seen that the PDF file are properly created under the attachment file configured in Openbravo.properties but the system is trying to get the one stored in /tmp that in fact does not exits

Related java files:

-renderJS function under
org.openbravo.base.secureApp
(0015140)
hgbot   
2009-04-02 20:01   
Repository: erp/devel/pi
Changeset: a3b1cd2a6d59cb83cb111b925355b14205946f76
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Apr 02 20:00:49 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a3b1cd2a6d59cb83cb111b925355b14205946f76 [^]

Fixes issue 8179: Removed the content-disposition header to be able to execute the javascript code

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0015153)
sureshbabu   
2009-04-03 11:41   
Retested working fine
(0015190)
plujan   
2009-04-03 18:31   
It is not working properly if an Apache is set up "in front" of Tomcat (default Openbravo Network SMB config)
(0015192)
hgbot   
2009-04-03 18:38   
Repository: erp/devel/pi
Changeset: f10967662fa084d1ddeebf888637c5d5cf5bcd9f
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Apr 03 18:37:37 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f10967662fa084d1ddeebf888637c5d5cf5bcd9f [^]

Fixes issue 8179: Adding a html file extension. The response contains a html with a download report code

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0015198)
plujan   
2009-04-03 19:29   
It is not working
(0015200)
hgbot   
2009-04-03 19:36   
Repository: erp/devel/pi
Changeset: 5e552073a7ed5523ec1a26e916e7ed9fc69a6cd2
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Apr 03 19:36:29 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5e552073a7ed5523ec1a26e916e7ed9fc69a6cd2 [^]

Fixes issue 8179: Added a content-type to work with apache http

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0017817)
hgbot   
2009-07-03 13:12   
Repository: erp/devel/pi
Changeset: 25eefb3dff5d0ff8a1093ef62cd2e7fe3fd1a0c3
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Thu Apr 02 20:00:49 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/25eefb3dff5d0ff8a1093ef62cd2e7fe3fd1a0c3 [^]

Fixes issue 8179: Removed the content-disposition header to be able to execute the javascript code

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0017832)
hgbot   
2009-07-03 13:12   
Repository: erp/devel/pi
Changeset: 9f9aeec6bd3071005af4afa84ed14e6e8b6e1450
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Apr 03 18:37:37 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9f9aeec6bd3071005af4afa84ed14e6e8b6e1450 [^]

Fixes issue 8179: Adding a html file extension. The response contains a html with a download report code

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0017833)
hgbot   
2009-07-03 13:12   
Repository: erp/devel/pi
Changeset: 14e465a2ca687246be4148c00d6f63d5c9960b27
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Apr 03 19:36:29 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/14e465a2ca687246be4148c00d6f63d5c9960b27 [^]

Fixes issue 8179: Added a content-type to work with apache http

---
M src/org/openbravo/base/secureApp/HttpSecureAppServlet.java
---
(0018346)
sureshbabu   
2009-07-17 10:51   
Tested working fine in VM(PI) context