Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0033222 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | major | always | 2016-06-11 21:36 | 2016-06-20 12:46 | |||
| Reporter | guillermogil | View Status | public | |||||
| Assigned To | caristu | |||||||
| Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR16Q3 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | a53d8d5cb840 | ||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | alostale | |||||||
| OBNetwork customer | No | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | Production - QA Approved | |||||||
| Regression date | 2015-10-27 | |||||||
| Regression introduced in release | 3.0PR16Q1 | |||||||
| Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/cbf2d65774b8afda5265c76b78642271a0a7246a [^] | |||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0033222: ConcatPDFReport has a null pointer exception if is used without reportConfiguration parameter | |||||||
| Description | ConcatPDFReport has a null pointer exception if is used without reportConfiguration parameter Method concatPDFReport(List<JasperPrint> jasperPrintList, boolean createBookmarks, OutputStream outputStream) is creating a null pointer exception | |||||||
| Steps To Reproduce | Create a call on concatPDFReport(List<JasperPrint> jasperPrintList, boolean createBookmarks, OutputStream outputStream) Without any SimplePdfExporterConfiguration | |||||||
| Proposed Solution | On ReportingUtils.java: public static void concatPDFReport(List<JasperPrint> jasperPrintList, boolean createBookmarks, OutputStream outputStream, SimplePdfExporterConfiguration reportConfiguration) throws JRException { JRPdfExporter exporter = new JRPdfExporter(); SimpleOutputStreamExporterOutput exporterOutput = new SimpleOutputStreamExporterOutput( outputStream); SimplePdfExporterConfiguration configuration = reportConfiguration != null ? reportConfiguration : new SimplePdfExporterConfiguration(); reportConfiguration.setCreatingBatchModeBookmarks(createBookmarks); exporter.setConfiguration(configuration); exporter.setExporterInput(SimpleExporterInput.getInstance(jasperPrintList)); exporter.setExporterOutput(exporterOutput); exporter.exportReport(); } Line: reportConfiguration.setCreatingBatchModeBookmarks(createBookmarks); Should be: configuration.setCreatingBatchModeBookmarks(createBookmarks); | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
||||||||||||||||||||||
|
||||||||||||||||||||||
Notes |
|
|
(0087191) hgbot (developer) 2016-06-13 10:54 |
Repository: erp/devel/pi Changeset: a53d8d5cb84048ba4be4cd75cb80ff6c4e88f691 Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Mon Jun 13 10:53:19 2016 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/a53d8d5cb84048ba4be4cd75cb80ff6c4e88f691 [^] fixes issue 33222: ConcatPDFReport can throw a null pointer exception Use the correct variable name (configuration instead of reportConfiguration) when using the setCreatingBatchModeBookmarks method --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java --- |
|
(0087606) hudsonbot (viewer) 2016-06-17 19:38 |
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/0dc7be081b1c [^] Maturity status: Test |
|
(0087663) alostale (viewer) 2016-06-20 12:46 |
code reviewed + tested |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2016-06-11 21:36 | guillermogil | New Issue | |
| 2016-06-11 21:36 | guillermogil | Assigned To | => platform |
| 2016-06-11 21:36 | guillermogil | OBNetwork customer | => No |
| 2016-06-11 21:36 | guillermogil | Modules | => Core |
| 2016-06-11 21:36 | guillermogil | Triggers an Emergency Pack | => No |
| 2016-06-13 08:51 | caristu | Regression level | => Production - QA Approved |
| 2016-06-13 08:51 | caristu | Regression date | => 2015-10-27 |
| 2016-06-13 08:51 | caristu | Regression introduced in release | => 3.0PR16Q1 |
| 2016-06-13 08:51 | caristu | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/cbf2d65774b8afda5265c76b78642271a0a7246a [^] |
| 2016-06-13 08:52 | caristu | Relationship added | caused by 0030783 |
| 2016-06-13 09:30 | alostale | Priority | normal => immediate |
| 2016-06-13 09:46 | alostale | Assigned To | platform => caristu |
| 2016-06-13 09:46 | alostale | Status | new => scheduled |
| 2016-06-13 09:48 | alostale | Status | scheduled => acknowledged |
| 2016-06-13 09:49 | alostale | Status | acknowledged => scheduled |
| 2016-06-13 10:54 | hgbot | Checkin | |
| 2016-06-13 10:54 | hgbot | Note Added: 0087191 | |
| 2016-06-13 10:54 | hgbot | Status | scheduled => resolved |
| 2016-06-13 10:54 | hgbot | Resolution | open => fixed |
| 2016-06-13 10:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a53d8d5cb84048ba4be4cd75cb80ff6c4e88f691 [^] |
| 2016-06-13 11:21 | caristu | Review Assigned To | => alostale |
| 2016-06-17 19:38 | hudsonbot | Checkin | |
| 2016-06-17 19:38 | hudsonbot | Note Added: 0087606 | |
| 2016-06-20 12:46 | alostale | Note Added: 0087663 | |
| 2016-06-20 12:46 | alostale | Status | resolved => closed |
| 2016-06-20 12:46 | alostale | Fixed in Version | => 3.0PR16Q3 |
| Copyright © 2000 - 2009 MantisBT Group |