Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0050058Openbravo ERPA. Platformpublic2022-08-25 10:032022-09-01 17:22
caristu 
caristu 
urgentminorhave not tried
closedfixed 
5
 
PR22Q4 
Core
No
0050058: Warnings appear in the console when exporting a table to a module through naming exceptions
Warnings appear in the console when exporting a table to a module through naming exceptions
1) Go to the [Module] window
2) Select a module for example: org.openbravo.mobile.core
3) Switch to the naming exception subtab and create a new record:
  - DB Object type table
  - Object name OBPOS_Print_Template
4) Go to the [Tables and Columns] window and change the module field of the header and the columns of the OBPOS_Print_Template table to the module selected in step 2).
5) ant export.database. The export tasks is completed successfully but several validations warnings appear:

     [java] 29517 [main] WARN org.openbravo.ddlutils.task.ExportDatabase - +++++++++++++++++++++++++++++++++++++++++++++++++++
     [java] 29517 [main] WARN org.openbravo.ddlutils.task.ExportDatabase - Warnings for Validation type: INCORRECT_FK_NAME
     [java] 29517 [main] WARN org.openbravo.ddlutils.task.ExportDatabase - +++++++++++++++++++++++++++++++++++++++++++++++++++
     [java] 29517 [main] WARN org.openbravo.ddlutils.task.ExportDatabase - Table OBPOS_PRINT_TEMPLATE has foreign key named OBPOS_PRINTTEMPLATE_CLIENT, which does not starts by module's DBPrefix.
     [java] 29517 [main] WARN org.openbravo.ddlutils.task.ExportDatabase - Table OBPOS_PRINT_TEMPLATE has foreign key named OBPOS_PRINTTEMPLATE_MODULE, which does not starts by module's DBPrefix.
     [java] 29517 [main] WARN org.openbravo.ddlutils.task.ExportDatabase - Table OBPOS_PRINT_TEMPLATE has foreign key named OBPOS_PRINTTEMPLATE_ORG, which does not starts by module's DBPrefix.

Do not show those warnings for the objects included as naming exceptions.

Note that these warnings still apply for the objects NOT included in the naming exceptions.
No tags attached.
blocks defect 0045785 closed Retail Retail Modules Move hardware manager communication API to mobile.core 
Issue History
2022-08-25 10:03caristuNew Issue
2022-08-25 10:03caristuAssigned To => Triage Platform Base
2022-08-25 10:03caristuModules => Core
2022-08-25 10:03caristuTriggers an Emergency Pack => No
2022-08-25 10:04caristuRelationship addedblocks 0045785
2022-09-01 08:39hgbotNote Added: 0140590
2022-09-01 09:40caristuAssigned ToTriage Platform Base => caristu
2022-09-01 09:40caristuCategoryY. DBSourceManager => A. Platform
2022-09-01 11:00caristuProposed Solution updated
2022-09-01 17:22hgbotResolutionopen => fixed
2022-09-01 17:22hgbotStatusnew => closed
2022-09-01 17:22hgbotFixed in Version => PR22Q4
2022-09-01 17:22hgbotNote Added: 0140612
2022-09-01 17:22hgbotNote Added: 0140613

Notes
(0140590)
hgbot   
2022-09-01 08:39   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/698 [^]
(0140612)
hgbot   
2022-09-01 17:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 236b96a040c437229df58aef88a22db85b142fce
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 01-09-2022 15:22:51
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/236b96a040c437229df58aef88a22db85b142fce [^]

fixes ISSUE-50058: skip name checking for tables with naming exception

---
M src/org/openbravo/service/system/DatabaseValidator.java
---
(0140613)
hgbot   
2022-09-01 17:22   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/698 [^]