Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032000Retail ModulesWeb POSpublic2016-01-22 15:002016-01-29 18:01
AugustoMauch 
AugustoMauch 
normalminorhave not tried
closedfixed 
5
 
RR16Q2 
mtaal
No
0032000: Allow to use the MobileServerController.getThisServerDefinition from an ant task.
The getThisServerDefinition obtains the MobileServerDefinition that belong to the server where it is invoked from, based on the mobile.server.key property defined in Openbravo.properties

The MobileServerDefinition is obtained by using an OBCriteria, and currently both the client and organization filters are being applied. This makes not possible using it in an ant task where the client is not known.

This OBCriteria could safely disable the client and server organization, because it is applying a restriction on the mobileServerKey property, which has a unique constraints in the database.
-
Disable the client and organization filter in the OBCriteria used to obtain the MobileServerDefinition of the current server.
No tags attached.
Issue History
2016-01-22 15:00AugustoMauchNew Issue
2016-01-22 15:00AugustoMauchAssigned To => AugustoMauch
2016-01-22 15:00AugustoMauchTriggers an Emergency Pack => No
2016-01-22 15:12AugustoMauchReview Assigned To => mtaal
2016-01-22 15:13hgbotCheckin
2016-01-22 15:13hgbotNote Added: 0083571
2016-01-22 15:13hgbotStatusnew => resolved
2016-01-22 15:13hgbotResolutionopen => fixed
2016-01-22 15:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/914ebf40c594c8db69e8b6fc5a0a05656c6f938a [^]
2016-01-29 18:01mtaalNote Added: 0083747
2016-01-29 18:01mtaalStatusresolved => closed
2016-01-29 18:01mtaalFixed in Version => RR16Q2

Notes
(0083571)
hgbot   
2016-01-22 15:13   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 914ebf40c594c8db69e8b6fc5a0a05656c6f938a
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Fri Jan 22 15:07:32 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/914ebf40c594c8db69e8b6fc5a0a05656c6f938a [^]

Fixes issue 32000: Disable client and org filter to retrieve this server

This way the MobileServerController.getThisServerDefinition method can be used from an ant task, where the client and org of the current user is unknown. Disabling this filters is safe because there is sa unique constraint on the column used to fetch the proper mobile server.

---
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
---
(0083747)
mtaal   
2016-01-29 18:01   
Reviewed and tested