Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0032838 | Openbravo ERP | A. Platform | public | 2016-05-03 12:35 | 2016-06-17 19:37 |
|
Reporter | JONHM | |
Assigned To | alostale | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 3.0PR16Q1 | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
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 | 0032838: 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 [^] |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0033024 | 3.0PR16Q1.2 | closed | caristu | Cannot export CSV from Widgets | depends on | backport | 0033025 | 3.0PR15Q4.7 | closed | caristu | Cannot export CSV from Widgets | depends on | backport | 0033027 | 3.0PR16Q2 | closed | caristu | Cannot export CSV from Widgets | caused by | defect | 0032233 | | closed | inigosanchez | Payment In and Payment Out lines are not exported to CSV |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-05-03 12:35 | JONHM | New Issue | |
2016-05-03 12:35 | JONHM | Assigned To | => platform |
2016-05-03 12:35 | JONHM | Modules | => Core |
2016-05-03 12:35 | JONHM | Resolution time | => 1465855200 |
2016-05-03 12:35 | JONHM | Triggers an Emergency Pack | => No |
2016-05-03 13:25 | caristu | Regression level | => Pre packaging ( pi ) |
2016-05-03 13:25 | caristu | Regression date | => 2016-04-08 |
2016-05-03 13:25 | caristu | Regression introduced in release | => pi |
2016-05-03 13:25 | caristu | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/8cffe0e6a0dd [^] |
2016-05-03 13:25 | caristu | Priority | high => immediate |
2016-05-03 13:25 | caristu | Proposed Solution updated | |
2016-05-03 13:25 | caristu | Proposed Solution updated | |
2016-05-03 13:26 | caristu | Proposed Solution updated | |
2016-05-03 13:29 | caristu | Relationship added | caused by 0032610 |
2016-05-03 13:34 | caristu | Proposed Solution updated | |
2016-05-03 13:35 | caristu | Proposed Solution updated | |
2016-05-05 09:54 | hgbot | Checkin | |
2016-05-05 09:54 | hgbot | Note Added: 0086200 | |
2016-05-05 09:55 | hgbot | Checkin | |
2016-05-05 09:55 | hgbot | Note Added: 0086201 | |
2016-05-05 09:55 | hgbot | Status | new => resolved |
2016-05-05 09:55 | hgbot | Resolution | open => fixed |
2016-05-05 09:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/50cfbabf4fe370d4f75bacfff17905437b9c324e [^] |
2016-05-05 09:55 | hgbot | Checkin | |
2016-05-05 09:55 | hgbot | Note Added: 0086202 | |
2016-05-05 09:59 | alostale | Review Assigned To | => caristu |
2016-05-05 09:59 | alostale | Assigned To | platform => alostale |
2016-05-05 13:49 | caristu | Note Added: 0086216 | |
2016-05-05 13:49 | caristu | Status | resolved => closed |
2016-05-05 13:49 | caristu | Fixed in Version | => pi |
2016-05-23 11:36 | caristu | Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/8cffe0e6a0dd [^] => https://code.openbravo.com/erp/devel/pi/rev/8c53c9e9c26febf892a11cd30f5f5f81342cb2c2 [^] |
2016-05-23 11:36 | caristu | Proposed Solution updated | |
2016-05-23 11:37 | caristu | Relationship deleted | caused by 0032610 |
2016-05-23 11:37 | caristu | Relationship added | caused by 0032233 |
2016-05-23 11:42 | caristu | Proposed Solution updated | |
2016-05-23 12:17 | caristu | Status | closed => new |
2016-05-23 12:17 | caristu | Resolution | fixed => open |
2016-05-23 12:17 | caristu | Fixed in Version | pi => |
2016-05-23 12:17 | caristu | Status | new => scheduled |
2016-05-23 13:04 | caristu | Relationship added | depends on 0033025 |
2016-05-23 13:10 | caristu | Status | scheduled => acknowledged |
2016-05-23 13:10 | caristu | Status | acknowledged => scheduled |
2016-05-23 13:35 | hgbot | Checkin | |
2016-05-23 13:35 | hgbot | Note Added: 0086648 | |
2016-05-23 13:35 | hgbot | Status | scheduled => resolved |
2016-05-23 13:35 | hgbot | Resolution | open => fixed |
2016-05-23 13:35 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/50cfbabf4fe370d4f75bacfff17905437b9c324e [^] => http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/a08db06ea86f8190fec16c1fa6961331280d5c24 [^] |
2016-05-23 13:35 | caristu | Note Deleted: 0086648 | |
2016-05-24 07:35 | alostale | Status | resolved => closed |
2016-06-17 19:37 | hudsonbot | Checkin | |
2016-06-17 19:37 | hudsonbot | Note Added: 0087517 | |
2016-06-17 19:37 | hudsonbot | Checkin | |
2016-06-17 19:37 | hudsonbot | Note Added: 0087518 | |
2016-06-17 19:37 | hudsonbot | Checkin | |
2016-06-17 19:37 | hudsonbot | Note Added: 0087519 | |
Notes |
|
(0086200)
|
hgbot
|
2016-05-05 09:54
|
|
Repository: erp/devel/pi
Changeset: 7cb0220888a9e411984d8f7bc26c863456219dd9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu May 05 09:31:12 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/7cb0220888a9e411984d8f7bc26c863456219dd9 [^]
related to bug 32838: Cannot export CSV from Widgets
Replcaed "magic numbers" with constant to get tabId param value
---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
---
|
|
|
(0086201)
|
hgbot
|
2016-05-05 09:55
|
|
Repository: erp/devel/pi
Changeset: 50cfbabf4fe370d4f75bacfff17905437b9c324e
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu May 05 09:49:14 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/50cfbabf4fe370d4f75bacfff17905437b9c324e [^]
fixed bug 32838: Cannot export CSV from Widgets
NPE was thrown when trying to export CSV from widgets because a refactor on
that area of code changed sent value for tabId from null to undefined.
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
---
|
|
|
(0086202)
|
hgbot
|
2016-05-05 09:55
|
|
Repository: erp/devel/pi
Changeset: 385262689f5ebb0a683b178afefa439e8b5237e9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu May 05 09:53:14 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/385262689f5ebb0a683b178afefa439e8b5237e9 [^]
related to bug 32838: using JsonUtils.isValueEmpty
to remove some code duplicities
---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
---
|
|
|
|
Code review + testing OK on pi@385262689f5e |
|
|
|
|
|
|
|
|
|
|