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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040588
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] StoreServerminorhave not tried2019-04-10 17:362019-06-25 16:14
ReportershuehnerView Statuspublic 
Assigned Tojarmendariz 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR19Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0040588: MobileServerRequestExecutor.executeRequest is not using bind-parameters

DescriptionThis code is not using bind-params:

      // Find a server which can execute the service
      OBQuery<MobileServerDefinition> servers = OBDal.getInstance()
          .createQuery(MobileServerDefinition.class,
              "(" + MobileServerDefinition.PROPERTY_ALLORGS + "=true or :org in elements("
                  + MobileServerDefinition.PROPERTY_OBMOBCSERVERORGSLIST
                  + ")) and client.id=:clientId and " + MobileServerDefinition.PROPERTY_ACTIVE
                  + "=true and " + MobileServerDefinition.PROPERTY_MOBILESERVERKEY + "!='"
                  + MobileServerController.getInstance().getMobileServerKey() + "' order by "
                  + MobileServerDefinition.PROPERTY_PRIORITY);
Steps To Reproduce-
TagsNo tags attached.
Attached Filespatch file icon issue 40588 source mobilecore.patch [^] (2,875 bytes) 2019-05-16 09:05 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0041177 closedjarmendariz Retail Modules Api Change: Removed unused method MobileServerRequestExecutor.executeRequest 
blocks design defect 0038136 acknowledgedTriage Platform Base Openbravo ERP Tracking issue: Find & Fix queries not using bind-params but embedding values into query string 

-  Notes
(0112942)
jarmendariz (developer)
2019-06-21 13:22

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 254b693f17e39f4c9be29a2af989bff0f7c5304f
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Fri Jun 21 13:17:31 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/254b693f17e39f4c9be29a2af989bff0f7c5304f [^] [^]

Fixed issue 40581: Query in MobileServerRequestExecutor not using bind-params

Refactored MobileServerRequestExecutor query to use bind parameters instead
of appending them to the query string directly.

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
---
(0113004)
hgbot (developer)
2019-06-25 12:41

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 17803494b8cf1ff7a43d98648ca0ff58245d8896
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Tue Jun 25 11:26:42 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/17803494b8cf1ff7a43d98648ca0ff58245d8896 [^]

Related to issue 40588: Removing unused method

Removed executeRequest() as its not used anywhere.

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerRequestExecutor.java
---
(0113011)
AugustoMauch (manager)
2019-06-25 16:14

Code reviewed and verified

- Issue History
Date Modified Username Field Change
2019-04-10 17:36 shuehner New Issue
2019-04-10 17:36 shuehner Assigned To => StoreServer
2019-04-10 17:36 shuehner Triggers an Emergency Pack => No
2019-04-10 17:36 shuehner Relationship added blocks 0038136
2019-05-13 12:45 shuehner Target Version => RR19Q3
2019-05-15 07:42 ranjith_qualiantech_com Assigned To StoreServer => ranjith_qualiantech_com
2019-05-15 07:42 ranjith_qualiantech_com Status new => scheduled
2019-05-15 13:29 marvintm Assigned To ranjith_qualiantech_com => AugustoMauch
2019-05-16 09:05 ranjith_qualiantech_com File Added: issue 40588 source mobilecore.patch
2019-06-21 13:06 jarmendariz Assigned To AugustoMauch => jarmendariz
2019-06-21 13:22 jarmendariz Note Added: 0112942
2019-06-21 13:22 jarmendariz Status scheduled => resolved
2019-06-21 13:22 jarmendariz Resolution open => fixed
2019-06-21 13:23 jarmendariz Review Assigned To => AugustoMauch
2019-06-25 12:41 hgbot Checkin
2019-06-25 12:41 hgbot Note Added: 0113004
2019-06-25 16:14 AugustoMauch Note Added: 0113011
2019-06-25 16:14 AugustoMauch Status resolved => closed
2019-06-26 14:00 jarmendariz Relationship added related to 0041177


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker