Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0055126Openbravo ERPA. Platformpublic2024-03-20 14:142024-04-09 09:27
nicola_uva 
meriem_azaf 
immediatemajoralways
closedfixed 
5
pi 
PR24Q2PR24Q2 
Core
QA functional test
2024-02-26
pi
https://gitlab.com/openbravo/product/openbravo/-/commit/01c9d899e4fab5431f3ab1d2d87c92297fcf464d [^]
No
0055126: Business API Data Load window: Not possible to load the data - InvalidCSRFToken
Is not possible load data through the Business API Data Load window. An InvalidCSRFToken error message is showed in the log.
1) go to https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql [^]
2) open the window Business API Data Load
3) select the entity you want to load (e.i Gifcard) and load the csv file
4) click "Done" button -> an ERROR is showed. See the log attached
No tags attached.
blocks defect 0055012pi closed meriem_azaf Business API Data Load window: Not possible to load the data - InvalidCSRFToken 
Issue History
2024-04-08 14:04meriem_azafTypedefect => backport
2024-04-08 14:04meriem_azafTarget Versionpi => PR24Q2
2024-04-08 14:09hgbotNote Added: 0162921
2024-04-09 09:27hgbotNote Added: 0162953
2024-04-09 09:27hgbotResolutionopen => fixed
2024-04-09 09:27hgbotStatusscheduled => closed
2024-04-09 09:27hgbotFixed in Version => PR24Q2
2024-04-09 09:27hgbotNote Added: 0162954

Notes
(0162921)
hgbot   
2024-04-08 14:09   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1185 [^]
(0162953)
hgbot   
2024-04-09 09:27   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1185 [^]
(0162954)
hgbot   
2024-04-09 09:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: c845644cb552a7de728c05706070e31671174517
Author: Meriem Azaf <m.azaf@orisha.com>
Date: 08-04-2024 14:07:25
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/c845644cb552a7de728c05706070e31671174517 [^]

Fixes ISSUE-55126: Problem in loading the data in BUsiness API Data Load window

Problem in loading data through the Business API Data Load window. An InvalidCSRFToken error message is showed in the log.

The problem is that now we are checking that the csrfToken parameter of POST requests, but we missed to include the CSRF token in one of them. So we include it.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
---