Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032000 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
feature request | [Retail Modules] Web POS | minor | have not tried | 2016-01-22 15:00 | 2016-01-29 18:01 | |||
Reporter | AugustoMauch | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR16Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 914ebf40c594 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | mtaal | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0032000: Allow to use the MobileServerController.getThisServerDefinition from an ant task. | |||||||
Description | 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. | |||||||
Steps To Reproduce | - | |||||||
Proposed Solution | Disable the client and organization filter in the OBCriteria used to obtain the MobileServerDefinition of the current server. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0083571) hgbot (developer) 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 (viewer) 2016-01-29 18:01 |
Reviewed and tested |
![]() |
|||
Date Modified | Username | Field | Change |
2016-01-22 15:00 | AugustoMauch | New Issue | |
2016-01-22 15:00 | AugustoMauch | Assigned To | => AugustoMauch |
2016-01-22 15:00 | AugustoMauch | OBNetwork customer | => No |
2016-01-22 15:00 | AugustoMauch | Triggers an Emergency Pack | => No |
2016-01-22 15:12 | AugustoMauch | Review Assigned To | => mtaal |
2016-01-22 15:13 | hgbot | Checkin | |
2016-01-22 15:13 | hgbot | Note Added: 0083571 | |
2016-01-22 15:13 | hgbot | Status | new => resolved |
2016-01-22 15:13 | hgbot | Resolution | open => fixed |
2016-01-22 15:13 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/914ebf40c594c8db69e8b6fc5a0a05656c6f938a [^] |
2016-01-29 18:01 | mtaal | Note Added: 0083747 | |
2016-01-29 18:01 | mtaal | Status | resolved => closed |
2016-01-29 18:01 | mtaal | Fixed in Version | => RR16Q2 |
Copyright © 2000 - 2009 MantisBT Group |