Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0055347Openbravo ERPA. Platformpublic2024-04-23 11:242024-05-22 12:17
charlotte_vasseur 
meriem_azaf 
normalmajoralways
closedfixed 
5
 
PR24Q2PR24Q2 
Core
QA functional test
2024-02-12
main
https://gitlab.com/openbravo/product/openbravo/-/commit/8069e182437fc9573ea241f6c467f6635e0acd16 [^]
No
0055347: [24Q2] [BO] Error when importing Inventory via CSV file in Business API Data Load
When importing an Inventory via CSV file in window Business API Data Load, an error "The Process request could not be performed. Please check the log for additional info" is displayed
Prepare a CSV file based on this:
organization,warehouse,inventoryType,countSlotTime,name,date,description,inventoryReason
ex: Vall Blanca Store,VBS/001,T,E,Count01,2024-04-24,Test desc,

File in attachment

Log in Openbravo backoffice and use a proper role to create total physical inventory
Go to 'Business API Data Load' window
Select 'Inventory' in 'Entity'
Upload the CSV previously prepared
Click on 'Done'

=> An error "The Process request could not be performed. Please check the log for additional info" is displayed (see Error import Inventory Business API Data Load.png)

2024-04-26 15:30:29,049 [http-nio-8181-exec-10] ERROR org.openbravo.client.kernel.KernelServlet - Error executing action org.openbravo.api.file.ImportFileActionHandler error: org.openbravo.base.exception.OBException: Request failed while parsing multipart parameters
java.lang.IllegalStateException: org.openbravo.base.exception.OBException: Request failed while parsing multipart parameters
    at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:75) ~[classes/:?]
    ...
Caused by: org.openbravo.base.exception.OBException: Request failed while parsing multipart parameters
    at org.openbravo.client.application.process.BaseProcessActionHandler.parseMultipartParameters(BaseProcessActionHandler.java:298) ~[classes/:?]
    at org.openbravo.client.application.process.BaseProcessActionHandler.extractParametersFromRequest(BaseProcessActionHandler.java:240) ~[classes/:?]
    at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:56) ~[classes/:?]
    ... 51 more
Caused by: org.apache.commons.fileupload.FileCountLimitExceededException: attachment
    at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367) ~[commons-fileupload-1.5.jar:1.5]
    at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:113) ~[commons-fileupload-1.5.jar:1.5]
    at org.openbravo.client.application.process.BaseProcessActionHandler.parseMultipartParameters(BaseProcessActionHandler.java:277) ~[classes/:?]
    at org.openbravo.client.application.process.BaseProcessActionHandler.extractParametersFromRequest(BaseProcessActionHandler.java:240) ~[classes/:?]
    at org.openbravo.client.kernel.BaseActionHandler.execute(BaseActionHandler.java:56) ~[classes/:?]
    ... 51 more
No tags attached.
blocks defect 0055292 closed meriem_azaf [24Q2] [BO] Error when importing Inventory via CSV file in Business API Data Load 
Issue History
2024-04-26 15:38alostaleTypedefect => backport
2024-04-26 15:38alostaleTarget Version => PR24Q2
2024-04-29 18:02meriem_azafAssigned ToTriage Platform Conn => meriem_azaf
2024-04-30 08:10hgbotNote Added: 0163924
2024-05-22 12:17hgbotResolutionopen => fixed
2024-05-22 12:17hgbotStatusscheduled => closed
2024-05-22 12:17hgbotFixed in Version => PR24Q2
2024-05-22 12:17hgbotNote Added: 0164957
2024-05-22 12:17hgbotNote Added: 0164958

Notes
(0163924)
hgbot   
2024-04-30 08:10   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1219 [^]
(0164957)
hgbot   
2024-05-22 12:17   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: e1bf6578d859223c7ef387771e8796a7100b84a1
Author: Meriem Azaf <m.azaf@orisha.com>
Date: 22-05-2024 10:17:37
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/e1bf6578d859223c7ef387771e8796a7100b84a1 [^]

Fixes ISSUE-55347: Error when importing Inventory via CSV file in Business API Data Load

The problem here first was a problem of the maximum file count limit has been exceeded during the parsing of the multipart request. For this first we just increase the NUMBER_OF_FIXED_PARAMS to 5 and after we had a second problem related to csrfToken that is invalid, when we search we found that this parameter was added to formData instead of paramValues because we get the csrfToken from those.

So we removed all the new changes related to first phase and we keep just the second ones.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-view.js
---
(0164958)
hgbot   
2024-05-22 12:17   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1219 [^]