Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0049331 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Modules] Openbravo Business API | minor | have not tried | 2022-05-16 13:56 | 2022-05-20 13:42 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
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 | ||||||||
Regression introduced in release | ||||||||
Summary | 0049331: Can save a data pool selection with a filter that does not belong to the selected entity mapping | |||||||
Description | 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. | |||||||
Steps To Reproduce | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||
|
Notes | |
(0137351) hgbot (developer) 2022-05-16 18:50 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/43 [^] |
(0137413) hgbot (developer) 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 (developer) 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 (developer) 2022-05-18 11:22 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/43 [^] |
(0137578) hgbot (developer) 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 --- |
Issue History | |||
Date Modified | Username | Field | Change |
2022-05-16 13:56 | caristu | New Issue | |
2022-05-16 13:56 | caristu | Assigned To | => caristu |
2022-05-16 18:50 | hgbot | Note Added: 0137351 | |
2022-05-17 13:26 | caristu | Relationship added | related to 0049040 |
2022-05-17 13:26 | caristu | Relationship added | related to 0049083 |
2022-05-18 11:22 | hgbot | Resolution | open => fixed |
2022-05-18 11:22 | hgbot | Status | new => closed |
2022-05-18 11:22 | hgbot | Note Added: 0137413 | |
2022-05-18 11:22 | hgbot | Note Added: 0137414 | |
2022-05-18 11:22 | hgbot | Note Added: 0137415 | |
2022-05-20 13:42 | hgbot | Note Added: 0137578 |
Copyright © 2000 - 2009 MantisBT Group |