Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0058048 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
feature request | [Openbravo ERP] A. Platform | minor | have not tried | 2025-02-21 12:35 | 2025-02-24 09:26 | |||
Reporter | cberner | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | PR25Q2 | |||
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 | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0058048: Standard process definition throws error when having selector with datasource as field | |||||||
Description | In 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 Reproduce | In 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 Solution | Where we're checking for the table, we should ignore that check if no table is defined but a DataSource is provided. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
||||||||
|
![]() |
|
(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 --- |
![]() |
|||
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 |