Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033024Openbravo ERPA. Platformpublic2016-05-03 12:352016-05-24 07:41
Pre packaging ( pi )
pi [^]
0033024: Cannot export CSV from Widgets
At trying to export CSV from any widget no file is exported nor error window showed
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
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] [^]
No tags attached.
blocks defect 0032838 closed alostale Cannot export CSV from Widgets 
Issue History
2016-05-23 12:17caristuTypedefect => backport
2016-05-23 12:17caristuTarget Version => 3.0PR16Q1.2
2016-05-23 12:38hgbotCheckin
2016-05-23 12:38hgbotNote Added: 0086646
2016-05-23 12:38hgbotStatusscheduled => resolved
2016-05-23 12:38hgbotResolutionopen => fixed
2016-05-23 12:38hgbotFixed in SCM revision [^] => [^]
2016-05-23 12:40caristuReview Assigned Tocaristu => alostale
2016-05-23 12:40caristuAssigned Toalostale => caristu
2016-05-24 07:41alostaleStatusresolved => closed
2016-05-24 07:41alostaleFixed in Version => 3.0PR16Q1.2

2016-05-23 12:38   
Repository: erp/backports/3.0PR16Q1.2
Changeset: 0352a751baf7deec61225d7e48070a8ebcac3adf
Author: Carlos Aristu <carlos.aristu <at>>
Date: Mon May 23 12:36:08 2016 +0200
URL: [^]

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/
M modules/org.openbravo.service.json/src/org/openbravo/service/json/
M modules/org.openbravo.service.json/src/org/openbravo/service/json/