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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040873
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Zoho Reports Integrationminorhave not tried2019-05-14 12:522019-05-17 08:37
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned Toalostale
Regression introduced in release
Summary

0040873: Adapt ImportData process to the new way of serializing the ProcessBundle parameters

DescriptionWith the changes introduced to remove the xstream library(0039034), the ProcessBundle parameters are now serialized in a different way. The ImportData process must support this new way, keeping also backwards compatibility for those processes already scheduled before these changes.
Steps To Reproduce1) Install Zoho in an environment with the xstream removal changes. The following repo may be used: https://code.openbravo.com/erp/devel/pi-remove-xstream [^]
2) As system administrator, go to the Zoho Integration window and create the configuration.
3) Schedule an import process. Note that it fails. The following error is shown in the log:

[DefaultQuartzScheduler_Worker-2] ERROR org.openbravo.utility.zoho.process.ImportData - Error importing to Zoho
java.lang.IllegalArgumentException: id to load is required for loading
    at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:93) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:63) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad(SessionImpl.java:2927) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.lambda$load$1(SessionImpl.java:2911) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.perform(SessionImpl.java:2867) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2911) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.internal.SessionImpl.get(SessionImpl.java:1102) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:534) ~[classes/:?]
    at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:500) ~[classes/:?]
    at org.openbravo.dal.service.OBDal.get(OBDal.java:359) ~[classes/:?]
    at org.openbravo.utility.zoho.process.ImportData.doExecute(ImportData.java:41) [classes/:?]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to design defect 0039034 closedcaristu Openbravo ERP Illegal Access warning in xstream-1.3.1 library 

-  Notes
(0111670)
hgbot (developer)
2019-05-14 13:01

Repository: erp/pmods/org.openbravo.utility.zoho
Changeset: 1f8a8f97207825541e80bbbfb3adc7fced1327e9
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue May 14 12:59:30 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.utility.zoho/rev/1f8a8f97207825541e80bbbfb3adc7fced1327e9 [^]

related to issue 40873: minor code improvements

  - Use diamond operator
  - Reorder the modifiers of the "log4j" attribute to comply with the Java Language Specification
  - Update copyright year

---
M src/org/openbravo/utility/zoho/process/ImportData.java
---
(0111672)
caristu (manager)
2019-05-14 16:01
edited on: 2019-05-14 16:01

Repository: erp/pmods/org.openbravo.utility.zoho
Changeset: caeba34937bc
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue May 14 13:41:11 2019 +0200
URL: https://code.openbravo.com/erp/pmods/org.openbravo.utility.zoho/rev/caeba34937bc [^]

fixes issues 40873: support new serialization of ProcessBundle params

The ImportData process now has the logic to retrieve the zohoImportId parameter when receiving the map of parameters recovered from both the String representation that was done by xtream (this will be used for the already scheduled process) and the new representation done after the removal of xstream[1].

Besides, now by default the parameters of the process bundle are generated with the new format.

[1] https://issues.openbravo.com/view.php?id=39034 [^]

---
M src/org/openbravo/utility/zoho/process/ImportData.java
M src/org/openbravo/utility/zoho/process/ZohoProcessCallout.java
---

(0111758)
alostale (manager)
2019-05-17 08:37

reviewed + tested

- Issue History
Date Modified Username Field Change
2019-05-14 12:52 caristu New Issue
2019-05-14 12:52 caristu Assigned To => platform
2019-05-14 12:54 caristu Description Updated View Revisions
2019-05-14 12:54 caristu Relationship added related to 0039034
2019-05-14 12:55 caristu Description Updated View Revisions
2019-05-14 13:01 hgbot Checkin
2019-05-14 13:01 hgbot Note Added: 0111670
2019-05-14 13:01 caristu Assigned To platform => caristu
2019-05-14 13:01 caristu Review Assigned To => alostale
2019-05-14 16:00 caristu Status new => scheduled
2019-05-14 16:01 caristu Note Added: 0111672
2019-05-14 16:01 caristu Status scheduled => resolved
2019-05-14 16:01 caristu Resolution open => fixed
2019-05-14 16:01 caristu Note Edited: 0111672 View Revisions
2019-05-17 08:37 alostale Note Added: 0111758
2019-05-17 08:37 alostale Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker