Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0041429 | Modules | External Integration Infrastructure | public | 2019-07-23 11:12 | 2019-08-02 09:16 |
|
Reporter | caristu | |
Assigned To | caristu | |
Priority | high | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | AugustoMauch |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0041429: Not possible to define a Date property mappings to identify a record univocally |
Description | It is not possible to define a Date property mappings to identify a record univocally.
When a property mapping of type "DateDirectPropertyMapping" is marked as "Identifies Record Univocally", the import of the SBO fails with the following error:
"java.lang.ClassCastException: java.base/java.lang.String cannot be cast to java.base/java.util.Date" |
Steps To Reproduce | 0) Install the external integration module for testing[1]
1) Apply the attached patch
2) Execute ant smartbuild -Dlocal=no
3) Run the PriceListImportTest test. It works.
4) Execute the test again. Note that it fails with the error mentioned in Description. Subsequent executions will also fail.
[1] https://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration.tests [^]
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | test_41429.diff (1,711) 2019-07-23 11:14 https://issues.openbravo.com/file_download.php?file_id=13166&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2019-07-23 11:12 | caristu | New Issue | |
2019-07-23 11:12 | caristu | Assigned To | => caristu |
2019-07-23 11:12 | caristu | Issue generated from | 0041427 |
2019-07-23 11:13 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=19174#r19174 |
2019-07-23 11:14 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=19175#r19175 |
2019-07-23 11:14 | caristu | File Added: test_41429.diff | |
2019-07-23 12:28 | hgbot | Checkin | |
2019-07-23 12:28 | hgbot | Note Added: 0113588 | |
2019-07-23 12:31 | hgbot | Checkin | |
2019-07-23 12:31 | hgbot | Note Added: 0113589 | |
2019-07-23 12:31 | hgbot | Status | new => resolved |
2019-07-23 12:31 | hgbot | Resolution | open => fixed |
2019-07-23 12:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/53ea9eeefa789510b37e87a0a6e6d5b6ce5b4e64 [^] |
2019-07-23 12:33 | caristu | Review Assigned To | => AugustoMauch |
2019-07-29 11:06 | AugustoMauch | Note Added: 0113686 | |
2019-07-29 11:06 | AugustoMauch | Status | resolved => new |
2019-07-29 11:06 | AugustoMauch | Resolution | fixed => open |
2019-08-02 08:26 | hgbot | Checkin | |
2019-08-02 08:26 | hgbot | Note Added: 0113770 | |
2019-08-02 08:27 | caristu | Status | new => scheduled |
2019-08-02 08:27 | caristu | Status | scheduled => resolved |
2019-08-02 08:27 | caristu | Resolution | open => fixed |
2019-08-02 09:16 | AugustoMauch | Note Added: 0113775 | |
2019-08-02 09:16 | AugustoMauch | Status | resolved => closed |
Notes |
|
(0113588)
|
hgbot
|
2019-07-23 12:28
|
|
|
|
(0113589)
|
hgbot
|
2019-07-23 12:31
|
|
|
|
|
It would be useful to also support using DateTime properties to identify records univocally |
|
|
(0113770)
|
hgbot
|
2019-08-02 08:26
|
|
Repository: erp/pmods/org.openbravo.service.external.integration
Changeset: 3d0c7c76097b062069409e52a33df817d5d50544
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Aug 02 08:23:42 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/3d0c7c76097b062069409e52a33df817d5d50544 [^]
related to bug 41429: support DateTime as identifies univocally
Now DateTime mappings can be configured to identify a record univocally.
Some minor code improvements has also been applied
---
M src/org/openbravo/service/external/integration/SynchronizableBusinessObject.java
---
|
|
|
|
Code reviewed and verified |
|