Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055292
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2024-04-23 11:242024-05-22 12:12
Reportercharlotte_vasseurView Statuspublic 
Assigned Tomeriem_azaf 
PrioritynormalResolutionfixedFixed in VersionPR24Q3
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression levelPackaging and release
Regression date2024-02-12
Regression introduced in releasemain
Regression introduced by commithttps://gitlab.com/openbravo/product/openbravo/-/commit/8069e182437fc9573ea241f6c467f6635e0acd16 [^]
Triggers an Emergency PackNo
Summary

0055292: [24Q2] [BO] Error when importing Inventory via CSV file in Business API Data Load

DescriptionWhen 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
Steps To ReproducePrepare 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
TagsNo tags attached.
Attached Filescsv file icon BO_STOCKINV_001 Generate massively total physical inventories.csv [^] (216 bytes) 2024-04-23 11:24
png file icon Error import Inventory Business API Data Load.png [^] (78,780 bytes) 2024-04-23 11:24

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0055347PR24Q2 closedmeriem_azaf [24Q2] [BO] Error when importing Inventory via CSV file in Business API Data Load 
caused by defect 0052268 closedmeriem_azaf Update fileUpload library is outdated and should be updated to the latest release to use FileUploadBase#setFileCountMax 
has duplicate defect 0055542 closedTriage Platform Base Error when trying to import data from CSV file to an entity with the Business API Data Load process 

-  Notes
(0163916)
hgbot (developer)
2024-04-29 17:50

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1218 [^]
(0164955)
hgbot (developer)
2024-05-22 12:12

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1218 [^]
(0164956)
hgbot (developer)
2024-05-22 12:12

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 8554c5c8baf4cf5a3054836f70f24c197aa86bee
Author: Meriem Azaf <m.azaf@orisha.com>
Date: 22-05-2024 09:26:34
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/8554c5c8baf4cf5a3054836f70f24c197aa86bee [^]

Fixes ISSUE-55292: 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
---

- Issue History
Date Modified Username Field Change
2024-04-23 11:24 charlotte_vasseur New Issue
2024-04-23 11:24 charlotte_vasseur Assigned To => Triage Platform Conn
2024-04-23 11:24 charlotte_vasseur File Added: BO_STOCKINV_001 Generate massively total physical inventories.csv
2024-04-23 11:24 charlotte_vasseur Regression level => QA functional test
2024-04-23 11:24 charlotte_vasseur Triggers an Emergency Pack => No
2024-04-23 11:24 charlotte_vasseur File Added: Error import Inventory Business API Data Load.png
2024-04-26 15:33 alostale Relationship added caused by 0052268
2024-04-26 15:34 alostale Regression introduced in release => main
2024-04-26 15:34 alostale Regression introduced by commit => https://gitlab.com/openbravo/product/openbravo/-/commit/8069e182437fc9573ea241f6c467f6635e0acd16 [^]
2024-04-26 15:35 alostale Regression date => 2024-02-12
2024-04-26 15:36 alostale Steps to Reproduce Updated View Revisions
2024-04-26 15:37 alostale Project Retail Modules => Openbravo ERP
2024-04-26 15:37 alostale Modules => Core
2024-04-26 15:37 alostale Category Retail API => A. Platform
2024-04-26 15:38 alostale Status new => scheduled
2024-04-26 15:38 alostale Assigned To Triage Platform Conn => meriem_azaf
2024-04-29 07:25 plujan Regression level QA functional test => Packaging and release
2024-04-29 17:50 hgbot Note Added: 0163916
2024-05-22 09:36 AugustoMauch Relationship added has duplicate 0055542
2024-05-22 12:12 hgbot Note Added: 0164955
2024-05-22 12:12 hgbot Resolution open => fixed
2024-05-22 12:12 hgbot Status scheduled => closed
2024-05-22 12:12 hgbot Fixed in Version => PR24Q3
2024-05-22 12:12 hgbot Note Added: 0164956


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker