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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033081
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2016-05-30 17:382022-02-01 08:05
ReporterNaroaIriarteView 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 Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033081: There are some sql queries that can be avoided.

DescriptionThere are unneeded queries in done in the "HttpSecureAppServlet.hasGeneralAccess". It is needed to improve the General Access performance by removing those unneeded queries.
For example there are two queries done when the access type is "W". With a refactor it could be improved to only one query by changing this code:

"SeguridadData.selectAccess(this, vars.getRole(), "TABLE", id).equals("0") && !SeguridadData.selectAccess(this, vars.getRole(), type, id).equals("0")"
Steps To Reproduce1-As F&B Administrator go to Sales Order window.
2-Note that there are two queries, instead of one. This is (in part) because the HttpSecureAppServlet.hasGeneralAccess method, when the type is "W", does two queries.
Proposed SolutionSplit the "seguridad_data.selectAccess" in different methods instead of having one for every type of access. In this way it is possible to do only one query for the type "W" instead of having two.


TagsPerformance
Attached Filesdiff file icon patchIssue33081.diff [^] (7,626 bytes) 2016-05-30 17:51 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0033051 closedNaroaIriarte The security check is called twice when opening a window or refreshing it 

-  Notes
(0086851)
NaroaIriarte (developer)
2016-05-31 09:50

A patch with a proposed solution has been attached.

- Issue History
Date Modified Username Field Change
2016-05-30 17:38 NaroaIriarte New Issue
2016-05-30 17:38 NaroaIriarte Assigned To => NaroaIriarte
2016-05-30 17:38 NaroaIriarte Modules => Core
2016-05-30 17:38 NaroaIriarte Triggers an Emergency Pack => No
2016-05-30 17:51 NaroaIriarte File Added: patchIssue33081.diff
2016-05-30 17:51 NaroaIriarte Status new => acknowledged
2016-05-31 09:49 NaroaIriarte Review Assigned To => alostale
2016-05-31 09:50 NaroaIriarte Note Added: 0086851
2016-12-14 17:20 alostale Tag Attached: Performance
2016-12-14 17:21 alostale Priority normal => high
2016-12-20 11:12 NaroaIriarte Description Updated View Revisions
2016-12-20 11:12 NaroaIriarte Steps to Reproduce Updated View Revisions
2016-12-20 15:16 NaroaIriarte Relationship added related to 0033051
2016-12-20 17:29 NaroaIriarte Description Updated View Revisions
2016-12-20 17:29 NaroaIriarte Proposed Solution updated
2016-12-21 09:04 NaroaIriarte Description Updated View Revisions
2017-03-14 17:06 NaroaIriarte Assigned To NaroaIriarte => platform
2022-02-01 08:05 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker