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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058048
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. Platformminorhave not tried2025-02-21 12:352025-02-24 09:26
ReportercbernerView Statuspublic 
Assigned Tocberner 
PrioritynormalResolutionfixedFixed in VersionPR25Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Statusapproved
Review Assigned To
OBNetwork customerNo
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058048: Standard process definition throws error when having selector with datasource as field

DescriptionIn a Process Definition (marked as Standard), it is possible to define several fields. If one of those fields has a reference to a Defined Selector that doesn't have a table, but uses a DataSource instead, the UI fails to load with a freemarker error, and in the tomcat log a NullPointerException is thrown.
Steps To ReproduceIn a pos2 environment for simplicity:
1. Login backoffice and select System Admin role
2. Go to Process definition and select "Direct Process Import Entries"
3. In subtab Parameter, add a new entry
3.1. Module: Any module in development, if non, set one from Module window
3.2. Name: Application
3.3. DB Column Name: application
3.4. Reference: OBUISEL_Selector Reference
3.5. Reference Search Key: "Application or Any"
3.6. Save
4. Logout and login back again with System Admin
5. Execute process "Direct Process Import Entries"

Check that an error is thrown. As in the provided screenshot.
Proposed SolutionWhere we're checking for the table, we should ignore that check if no table is defined but a DataSource is provided.
TagsNo tags attached.
Attached Filespng file icon error-selector.png [^] (19,719 bytes) 2025-02-21 12:35

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0058089 closedTriage Platform Base warn message with process definition with datasource based selector 

-  Notes
(0176019)
hgbot (developer)
2025-02-21 13:04

Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1550 [^]
(0176063)
hgbot (developer)
2025-02-24 09:26

Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/merge_requests/1550 [^]
(0176064)
hgbot (developer)
2025-02-24 09:26

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo [^]
Changeset: 58b925d9c910112b7238a987856d0ef351f8b622
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 21-02-2025 13:02:57
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/openbravo/-/commit/58b925d9c910112b7238a987856d0ef351f8b622 [^]

Fixes ISSUE-58048: Standard process definition throws error when having selector with datasource as field

Extend the OBViewParameterHandler class to allow datasource only defined selectors

These selectors could not be used in Standard Process Definitions due to
a NullPointerException that was triggered due to checking their table
field. If no table is provided, and a datasource has been provided, the
selector is allowed now to be part of the Process Definition UI.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewParameterHandler.java
---

- Issue History
Date Modified Username Field Change
2025-02-21 12:35 cberner New Issue
2025-02-21 12:35 cberner Assigned To => Triage Platform Base
2025-02-21 12:35 cberner File Added: error-selector.png
2025-02-21 12:35 cberner OBNetwork customer => No
2025-02-21 12:35 cberner Modules => Core
2025-02-21 12:35 cberner Triggers an Emergency Pack => No
2025-02-21 12:35 cberner Assigned To Triage Platform Base => cberner
2025-02-21 12:35 cberner Status new => scheduled
2025-02-21 13:04 hgbot Merge Request Status => open
2025-02-21 13:04 hgbot Note Added: 0176019
2025-02-21 13:56 hgbot Merge Request Status open => approved
2025-02-24 09:26 hgbot Note Added: 0176063
2025-02-24 09:26 hgbot Resolution open => fixed
2025-02-24 09:26 hgbot Status scheduled => closed
2025-02-24 09:26 hgbot Fixed in Version => PR25Q2
2025-02-24 09:26 hgbot Note Added: 0176064
2025-02-27 08:06 alostale Relationship added related to 0058089


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker