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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0029855
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2015-05-12 16:292021-02-05 07:42
ReportershuehnerView Statuspublic 
Assigned Toshuehner 
PrioritynormalResolutionfixedFixed in VersionPR21Q2
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0029855: ant validate modules reads excludeFilter.xml from wrong folder

DescriptionRunning test from issue 29854 shows following problems on top of the functional issue reported in 29854:

[validateModules] java.io.FileNotFoundException: /home/huehner/ob/branches/pi_pg/src/src-db/database/model/excludeFilter.xml (No such file or directory)
[validateModules] at java.io.FileInputStream.open(Native Method)
[validateModules] at java.io.FileInputStream.<init>(FileInputStream.java:146)
[validateModules] at org.apache.commons.digester.Digester.parse(Digester.java:1741)
[validateModules] at org.apache.ddlutils.io.DatabaseIO.readExcludedObjects(DatabaseIO.java:556)
[validateModules] at org.apache.ddlutils.platform.ExcludeFilter.fillFromFile(ExcludeFilter.java:104)
[validateModules] at org.openbravo.ddlutils.util.DBSMOBUtil.getExcludeFilter(DBSMOBUtil.java:1101)
[validateModules] at org.openbravo.service.system.SystemValidationTask.doExecute(SystemValidationTask.java:88)
[validateModules] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:120)

Checking path carefully shows that it uses wrong path construction

src/src-db/...

instead of just

src-db/...

Probably side-effect of build.xml::validate.modules calling src/build.xml::validate.modules so having base path inside src
Steps To Reproduceant validate.modules -Dmodule=org.openbravo.service.json
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00298543.0PR15Q4 closedcaristu Weld,integration.google & json modules does not pass 'ant validate.modules' 
related to defect 00306803.0PR16Q3 closedalostale Weld module does not pass 'ant validate.modules' 

-  Notes
(0077344)
shuehner (administrator)
2015-05-12 16:33

Note: when working around this apparently still some other NPE happens:
[validateModules] java.lang.NullPointerException
[validateModules] at org.openbravo.ddlutils.util.DBSMOBUtil.getExcludeFilter(DBSMOBUtil.java:1104)
[validateModules] at org.openbravo.service.system.SystemValidationTask.doExecute(SystemValidationTask.java:88)
[validateModules] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:120)
(0125983)
hgbot (developer)
2021-02-04 17:28

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/304 [^]
(0126001)
hgbot (developer)
2021-02-05 07:29

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/304 [^]
(0126004)
hgbot (developer)
2021-02-05 07:29

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: add93934a5dc3edb120914515cac96917cee2432
Author: Stefan Huehner <stefan.huehner@openbravo.com>
Date: 2021-02-04T17:17:13+01:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/add93934a5dc3edb120914515cac96917cee2432 [^]

Fixes ISSUE-29855. Remove broken ant validate.modules task

That does did not work properly since at least 2015.
The same validation is also run:
- via the junit task SystemValidatorTest.testModulesValidation
  (in there for all modules marked as InDevelopment)
- Also package.module by default runs the same validation yet again

---
M build.xml
M src/build.xml
---

- Issue History
Date Modified Username Field Change
2015-05-12 16:29 shuehner New Issue
2015-05-12 16:29 shuehner Assigned To => platform
2015-05-12 16:29 shuehner Modules => Core
2015-05-12 16:29 shuehner Triggers an Emergency Pack => No
2015-05-12 16:29 shuehner Relationship added related to 0029854
2015-05-12 16:33 shuehner Note Added: 0077344
2015-05-13 08:23 alostale Status new => acknowledged
2015-08-26 14:34 caristu Relationship added related to 0030680
2021-02-04 17:28 hgbot Note Added: 0125983
2021-02-05 07:29 hgbot Note Added: 0126001
2021-02-05 07:29 hgbot Resolution open => fixed
2021-02-05 07:29 hgbot Status acknowledged => resolved
2021-02-05 07:29 hgbot Fixed in Version => PR21Q2
2021-02-05 07:29 hgbot Note Added: 0126004
2021-02-05 07:42 alostale Assigned To platform => shuehner
2021-02-05 07:42 alostale Review Assigned To => alostale
2021-02-05 07:42 alostale Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker