Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0041009 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Modules] External Data Integration | minor | have not tried | 2019-06-03 10:26 | 2019-06-10 16:45 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 12bf7f37f6d7 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Regression date | ||||||||
Regression introduced by commit | ||||||||
Regression level | ||||||||
Review Assigned To | AugustoMauch | |||||||
Regression introduced in release | ||||||||
Summary | 0041009: Archiving of import entries related to reprocessed request lines can fail | |||||||
Description | If an old EDL request (i.e. an EDL request with lines that does not have neither a related import entry and an import entry archive) is reprocessed having a context organization which is not in the natural tree of the EDL request line organization, then the import entry created for the reprocessing will not be archived due to an error. Under these circumstances, when archiving that import entry the cross org security mechanism is disabled and therefore it will not be possible to link the import entry archive with the request line because they have organizations which are not in the same natural tree: org.openbravo.base.exception.OBSecurityException: Entity 03-06-2019 09:54:18 - Asynchronous UOM Import Process - F&B España - Región Sur - OBEDL_Request - F&B España - Región Sur - OBEDL_Request (OBEDL_Request_Line) with organization F&B España - Región Norte references an entity F&B España - Región Sur - OBEDL_Request through its property OBEDL_Request_Line.archiveImportEntry but this referenced entity belongs to an organization F&B España - Región Sur which is not part of the natural tree of F&B España - Región Norte | |||||||
Steps To Reproduce | 0) Install the "External Data Integration Examples" module[1]. 1) Login with Openbravo user, having F&B Región Norte as the context organization 2) Run the "Import UOM Asynchronously" process. This process will create a new EDL request with two lines. 3) Delete the import entry related to each EDL request line we've just created 4) Logout and login again using the Openbravo user with F&B Región Sur as the context organization 5) Go to the [EDL request] window and reprocess the whole request (using the Process button in the header) created in step 2). 6) The next time the Import Entry Archive Manager executes the archiving, it will fail with the error shown in Description. [1] https://code.openbravo.com/erp/pmods/org.openbravo.externaldata.integration.examples [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0112373) hgbot (developer) 2019-06-04 10:55 |
Repository: erp/pmods/org.openbravo.externaldata.integration Changeset: 12bf7f37f6d7191d453e3392a3c7468e9133e03c Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Tue Jun 04 10:43:53 2019 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.externaldata.integration/rev/12bf7f37f6d7191d453e3392a3c7468e9133e03c [^] fixes bug 41009: Archiving of import entries created for reprocessing can fail When reprocessing an EDL request with lines that do not have a related import entry (for example because they have been already archived), then the newly created import entries for the reprocessing are created with the context organization which can be different from the organization of the request line. After this, when the archiving process is executed those import entries will not be archived because the DAL security mechanism will detect a cross organization reference problem between the import entry archive and the request line. Note that this problem does not happen when adding a new EDL request, because in that case the EDL request (header), the lines and the related import entries are created with the context organization. In any case, to fix the problem we now force the import entries to be created with the same organization as their related request line. --- M src/org/openbravo/externaldata/integration/process/AsynchronousProcessor.java --- |
(0112550) AugustoMauch (manager) 2019-06-10 16:45 |
Code reviewed and verified |
Issue History | |||
Date Modified | Username | Field | Change |
2019-06-03 10:26 | caristu | New Issue | |
2019-06-03 10:26 | caristu | Assigned To | => platform |
2019-06-03 10:26 | caristu | Relationship added | related to 0038237 |
2019-06-03 10:31 | caristu | Steps to Reproduce Updated | View Revisions |
2019-06-04 09:46 | caristu | Assigned To | platform => caristu |
2019-06-04 10:55 | hgbot | Checkin | |
2019-06-04 10:55 | hgbot | Note Added: 0112373 | |
2019-06-04 10:55 | hgbot | Status | new => resolved |
2019-06-04 10:55 | hgbot | Resolution | open => fixed |
2019-06-04 10:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.externaldata.integration/rev/12bf7f37f6d7191d453e3392a3c7468e9133e03c [^] |
2019-06-04 10:55 | caristu | Review Assigned To | => AugustoMauch |
2019-06-10 16:45 | AugustoMauch | Note Added: 0112550 | |
2019-06-10 16:45 | AugustoMauch | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |