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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033770
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2016-08-23 17:012022-02-01 08:05
ReportershuehnerView Statuspublic 
Assigned ToTriage Platform Base 
PriorityhighResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033770: ModuleManagement install from local obx triggers accidental 4* load of ad_module_dependency

DescriptionThe flow of installing packs from local obx file looks for ad_module_dependency information in the local database.

That code calls .list() 4 times on the same OBCriteria instances running the sql query 4 times which should be avoided.
Steps To ReproduceUse debugging code from:
https://issues.openbravo.com/view.php?id=33767 [^]

And follow flow of ci job int-dummy-pgsql.

Following local hack is sufficient to produce the issue.
Download latest org.openbravo.v3 module ci test obx from forge (i.e. minor version 29874
Edit local version to be 29874-1 for core module + org.openbravo.v3 module in database
run export.database to work around 'local changes' check in mmc
Now in MMC install from local file pointing to downloaded v3 obx

Observe the extra .list() calls with the debugging code mentioned above.
TagsPerformance
Attached Filesdiff file icon 33770.diff [^] (1,257 bytes) 2016-08-23 17:03 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0033767 closedplatform Add code to auto-detect 'accidental double query' on same OBQuery or OBCriteria object 

-  Notes
(0089314)
shuehner (administrator)
2016-08-23 17:03

Extra notes:
- There is no unique constraint in db on the combination of filters used in the query
- No limit is set in the query
- no ordering is set in the query
- but code only uses .get(0) result

So assuming multiple result rows for that filter are possible the result is undefined (random ordering as per sql spec when not specifying order by in the query)

- Issue History
Date Modified Username Field Change
2016-08-23 17:01 shuehner New Issue
2016-08-23 17:01 shuehner Assigned To => platform
2016-08-23 17:01 shuehner Modules => Core
2016-08-23 17:01 shuehner Triggers an Emergency Pack => No
2016-08-23 17:03 shuehner Note Added: 0089314
2016-08-23 17:03 shuehner Relationship added related to 0033767
2016-08-23 17:03 shuehner File Added: 33770.diff
2016-08-23 17:10 shuehner Tag Attached: Performance
2016-08-29 09:20 alostale Status new => acknowledged
2016-12-01 14:05 alostale Priority normal => urgent
2016-12-01 14:05 alostale Priority urgent => high
2022-02-01 08:05 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker