Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0040570 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] StoreServer | major | have not tried | 2019-04-10 11:23 | 2019-06-24 10:55 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | jarmendariz | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 08d0a7b376ca | ||||
Projection | none | ETA | none | Target Version | RR19Q3 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | AugustoMauch | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0040570: MobileServercontroller.isThereACentralServerDefined is not using bind-parameters | |||||||
Description | This code is not using bind-params: OBQuery<MobileServerDefinition> servers = OBDal.getInstance() .createQuery(MobileServerDefinition.class, "client.id=:clientId and " + MobileServerDefinition.PROPERTY_ACTIVE + "=true and " + MobileServerDefinition.PROPERTY_MOBILESERVERKEY + "!='" + mobileServerKey + "' and " + MobileServerDefinition.PROPERTY_SERVERTYPE + "='" + MobileServerUtils.MAIN_SERVER + "' order by " + MobileServerDefinition.PROPERTY_PRIORITY); NOTE: Apparently identical query is also present in readCentralServer method in same file without having that bug. Probably both should be centralized apart of fixing the bug. | |||||||
Steps To Reproduce | - | |||||||
Tags | No tags attached. | |||||||
Attached Files | issue 40570 source mobilecore.patch [^] (6,163 bytes) 2019-05-16 09:05 [Show Content] | |||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||
|
Notes | |
(0112938) hgbot (developer) 2019-06-21 13:18 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 08d0a7b376ca2af9499af50031b895fda20a2b68 Author: Javier Armendáriz <javier.armendariz <at> openbravo.com> Date: Fri Jun 21 11:26:32 2019 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/08d0a7b376ca2af9499af50031b895fda20a2b68 [^] Fixed issue 40570: OBQuery in MobileServerController not using bind params. Refactored MobileServerController to group a duplicated query into a single method and modified it to use bind parameters insteads of appending them to the query string directly. --- M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java --- |
(0112967) AugustoMauch (administrator) 2019-06-24 10:55 |
Code reviewed and verified |
Issue History | |||
Date Modified | Username | Field | Change |
2019-04-10 11:23 | shuehner | New Issue | |
2019-04-10 11:23 | shuehner | Assigned To | => StoreServer |
2019-04-10 11:23 | shuehner | Triggers an Emergency Pack | => No |
2019-04-10 11:23 | shuehner | Relationship added | blocks 0038136 |
2019-05-13 12:44 | shuehner | Target Version | => RR19Q3 |
2019-05-13 15:02 | ranjith_qualiantech_com | Assigned To | StoreServer => ranjith_qualiantech_com |
2019-05-14 11:06 | ranjith_qualiantech_com | Status | new => scheduled |
2019-05-15 13:28 | marvintm | Assigned To | ranjith_qualiantech_com => AugustoMauch |
2019-05-16 09:05 | ranjith_qualiantech_com | File Added: issue 40570 source mobilecore.patch | |
2019-06-21 09:48 | jarmendariz | Assigned To | AugustoMauch => jarmendariz |
2019-06-21 13:18 | hgbot | Checkin | |
2019-06-21 13:18 | hgbot | Note Added: 0112938 | |
2019-06-21 13:18 | hgbot | Status | scheduled => resolved |
2019-06-21 13:18 | hgbot | Resolution | open => fixed |
2019-06-21 13:18 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/08d0a7b376ca2af9499af50031b895fda20a2b68 [^] |
2019-06-21 13:24 | jarmendariz | Review Assigned To | => AugustoMauch |
2019-06-24 10:55 | AugustoMauch | Note Added: 0112967 | |
2019-06-24 10:55 | AugustoMauch | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |