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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049331
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Openbravo Business APIminorhave not tried2022-05-16 13:562022-05-20 13:42
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 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

DescriptionIt 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 Reproduce1) 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0049040 closednjimenez Modules Improve ApiExporter to make readonly pool usage configurable 
related to feature request 0049083 closedcaristu Openbravo ERP Push API: support multi-record events 

-  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
Powered by Mantis Bugtracker