Openbravo Issue Tracking System - Modules
View Issue Details
0049331ModulesOpenbravo Business APIpublic2022-05-16 13:562022-05-20 13:42
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
 
0049331: Can save a data pool selection with a filter that does not belong to the selected entity mapping
It is possible to save a data pool selection with a filter that does not belong to the selected entity mapping. Note that we have the same problem in the event window when defining a multiple record event.
1) Go to the [Data Pool Selection] window
2) Create a new record:
  - Data Type: Business API
  - Data Pool: Read Only
  - Entity Mapping: Business Partner
  - Export Filter: byBPartnerCategory
3) Save the record
4) Change the Entity Mapping, by selecting a different one, for example Assortment
5) Save the record. WRONG: and invalid configuration is saved because the byBPartnerCategory filter does not belong to the Assorment entity.
No tags attached.
related to feature request 0049040 closed njimenez Modules Improve ApiExporter to make readonly pool usage configurable 
related to feature request 0049083 closed caristu Openbravo ERP Push API: support multi-record events 
Issue History
2022-05-16 13:56caristuNew Issue
2022-05-16 13:56caristuAssigned To => caristu
2022-05-16 18:50hgbotNote Added: 0137351
2022-05-17 13:26caristuRelationship addedrelated to 0049040
2022-05-17 13:26caristuRelationship addedrelated to 0049083
2022-05-18 11:22hgbotResolutionopen => fixed
2022-05-18 11:22hgbotStatusnew => closed
2022-05-18 11:22hgbotNote Added: 0137413
2022-05-18 11:22hgbotNote Added: 0137414
2022-05-18 11:22hgbotNote Added: 0137415
2022-05-20 13:42hgbotNote Added: 0137578

Notes
(0137351)
hgbot   
2022-05-16 18:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/43 [^]
(0137413)
hgbot   
2022-05-18 11:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: cf3e4bd160bc92d843425811698bb2055e80e2b2
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 18-05-2022 09:21:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/cf3e4bd160bc92d843425811698bb2055e80e2b2 [^]

fixes BUG-49331: don't allow wrong export filter selection

   - Replace the selector reference with a table reference + a
validation to ensure that only export filters that belong to the
currently selected entity mapping can be chosen in the UI. Applied this
change both in the [Data Pool Selection] and [Event] windows.

---
A src-db/database/sourcedata/AD_REF_TABLE.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_VAL_RULE.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR.xml
M src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
---
(0137414)
hgbot   
2022-05-18 11:22   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: b0fd6c414f8b8f2ee4f0b0e669c7b4805dd01c58
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 18-05-2022 09:21:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/b0fd6c414f8b8f2ee4f0b0e669c7b4805dd01c58 [^]

related to BUG-49331: ensure wrong records cannot be saved

---
A src-test/org/openbravo/api/dal/ApiExportFilterOfEntityMappingCheckerTest.java
A src/org/openbravo/api/dal/ApiExportFilterOfEntityMappingChecker.java
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-test/org/openbravo/api/StandaloneTestSuite.java
M src-test/org/openbravo/api/util/ApiTestUtils.java
M src-test/org/openbravo/dal/service/DataPoolCheckerBusinessAPITest.java
---
(0137415)
hgbot   
2022-05-18 11:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/43 [^]
(0137578)
hgbot   
2022-05-20 13:42   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 800970c0ded494bedf08a2efb1f867a038ee5a86
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 20-05-2022 13:41:42
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/800970c0ded494bedf08a2efb1f867a038ee5a86 [^]

related to BUG-49331: use filter defined in this module

---
M src-test/org/openbravo/api/dal/ApiExportFilterOfEntityMappingCheckerTest.java
---