Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033024 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | major | always | 2016-05-03 12:35 | 2016-05-24 07:41 | |||
Reporter | JONHM | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR16Q1.2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 0352a751baf7 | ||||
Projection | none | ETA | none | Target Version | 3.0PR16Q1.2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 3.0PR16Q1 | SCM revision | ||||||
Review Assigned To | alostale | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Pre packaging ( pi ) | |||||||
Regression date | 2016-04-08 | |||||||
Regression introduced in release | pi | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/8c53c9e9c26febf892a11cd30f5f5f81342cb2c2 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033024: Cannot export CSV from Widgets | |||||||
Description | At trying to export CSV from any widget no file is exported nor error window showed | |||||||
Steps To Reproduce | 1) As F&B International Group Admin create new widget with data on it 2) Click on the pencil and press "Export as CSV" *Log shows: ERROR org.openbravo.service.datasource.DataSourceServlet - AccessTableNoView org.openbravo.client.kernel.OBUserException: AccessTableNoView | |||||||
Proposed Solution | Since the following changeset[1] 'tabId' is being sent in the request instead of 'tab'. So, before that changeset as the parameter name was not 'tabId' the following check was never true: if (!hasAccess(request, parameters.get("tabId"))) { Two possible solutions regarding the renamed parameter (tabId): a) Take into account undefined value in if clause b) Prevent sending undefined value from the client side and send null instead [1] https://code.openbravo.com/erp/devel/pi/rev/8c53c9e9c26febf892a11cd30f5f5f81342cb2c2 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0086646) hgbot (developer) 2016-05-23 12:38 |
Repository: erp/backports/3.0PR16Q1.2 Changeset: 0352a751baf7deec61225d7e48070a8ebcac3adf Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Mon May 23 12:36:08 2016 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR16Q1.2/rev/0352a751baf7deec61225d7e48070a8ebcac3adf [^] fixes issue 33024: Cannot export CSV from Widgets The name of the parameter used to sent the tab ID when exporting to CSV changed, this affected a check on DataSourceServlet that was always true when exporting widgets until now. Created an utility method to check whether a json value can be considered as empty which takes into account common cases of null and undefined literals. --- M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonConstants.java M modules/org.openbravo.service.json/src/org/openbravo/service/json/JsonUtils.java --- |
Issue History | |||
Date Modified | Username | Field | Change |
2016-05-23 12:17 | caristu | Type | defect => backport |
2016-05-23 12:17 | caristu | Target Version | => 3.0PR16Q1.2 |
2016-05-23 12:38 | hgbot | Checkin | |
2016-05-23 12:38 | hgbot | Note Added: 0086646 | |
2016-05-23 12:38 | hgbot | Status | scheduled => resolved |
2016-05-23 12:38 | hgbot | Resolution | open => fixed |
2016-05-23 12:38 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/50cfbabf4fe370d4f75bacfff17905437b9c324e [^] => http://code.openbravo.com/erp/backports/3.0PR16Q1.2/rev/0352a751baf7deec61225d7e48070a8ebcac3adf [^] |
2016-05-23 12:40 | caristu | Review Assigned To | caristu => alostale |
2016-05-23 12:40 | caristu | Assigned To | alostale => caristu |
2016-05-24 07:41 | alostale | Status | resolved => closed |
2016-05-24 07:41 | alostale | Fixed in Version | => 3.0PR16Q1.2 |
Copyright © 2000 - 2009 MantisBT Group |