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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032000
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSminorhave not tried2016-01-22 15:002016-01-29 18:01
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in VersionRR16Q2
StatusclosedFix in branchFixed in SCM revision914ebf40c594
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomtaal
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0032000: Allow to use the MobileServerController.getThisServerDefinition from an ant task.

DescriptionThe 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 SolutionDisable the client and organization filter in the OBCriteria used to obtain the MobileServerDefinition of the current server.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 (manager)
2016-01-29 18:01

Reviewed and tested

- Issue History
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 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
Powered by Mantis Bugtracker