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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030768
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2015-09-04 16:012015-09-18 16:39
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in VersionRR15Q4
StatusclosedFix in branchFixed in SCM revision3a28c7fb2ee8
ProjectionnoneETAnoneTarget VersionRR15Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToOrekaria
Regression level
Regression date2015-08-22
Regression introduced in releasepi
Regression introduced by commit9a602b16dabd
Triggers an Emergency PackNo
Summary

0030768: OB.Util.get_UUID method returns strange UUIDs, causes errors when saving addresses, resolve duplicate code

DescriptionWhen creating a new customer the locId field in the customer gets a strange uuid like this:
"C587.F61CF569.FAB15F75.ED6D45CA.3F1F530F.D9A6DDA5.C8B171BF.5B5F570C.5B2D"

This is caused by a change done in this commit, line:
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/9a602b16dabd#l1.7 [^]

The UUID generated is wrong as it is not 32 characters anymore.
Steps To ReproduceCreate a new customer, check the c_bpartnerlocation_id in the websql database.

Notice also that there are 2 get_uuid functions in the system. We should only have one implementation.
Proposed SolutionCreate one version of the get_uuid method.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by defect 0030450RR15Q4 closedOrekaria Stabilization: RR15Q4 jsLint related fixes 

-  Notes
(0080226)
hgbot (developer)
2015-09-08 08:51

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: b70a1ab96f2fcdd9cee9f55fb5a7e4d7ffc2f34b
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Sep 04 16:35:24 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b70a1ab96f2fcdd9cee9f55fb5a7e4d7ffc2f34b [^]

Fixes issue 30768: OB.Util.get_UUID method returns strange UUIDs, causes errors when saving addresses, resolve duplicate code
Deprecate OB.Dal.get_uuid, use OB.UTIL.get_UUID, repair wrong expression use | instead of ||

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/retail/component/ob-retail-filterbuilder.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0080230)
hgbot (developer)
2015-09-08 08:51

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 1107e2ac87f975c247b040bffeb3e2b8d8e9a64e
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Sep 07 12:43:38 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1107e2ac87f975c247b040bffeb3e2b8d8e9a64e [^]

Related to issue 30768: OB.Util.get_UUID method returns strange UUIDs, causes errors when saving addresses, resolve duplicate code
Added comment in the code and jslint directive

---
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---
(0080234)
hgbot (developer)
2015-09-08 08:52

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: cdd3917c7890a4bb4d43e58b89df742307614bdf
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Sep 04 16:19:43 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/cdd3917c7890a4bb4d43e58b89df742307614bdf [^]

Related to issue 30768: OB.Util.get_UUID method returns strange UUIDs, causes errors when saving addresses, resolve duplicate code
Change call to OB.dal.get_uuid to OB.UTIL.get_UUID

---
M web/org.openbravo.retail.posterminal/js/cashmgmt/model/cashmgmt-model.js
M web/org.openbravo.retail.posterminal/js/data/datacustomeraddrsave.js
M web/org.openbravo.retail.posterminal/js/data/datacustomersave.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
---
(0080352)
hgbot (developer)
2015-09-12 00:55

Repository: tools/automation/pi-mobile
Changeset: ee9ac7fd53773f08e0f5b3241b3e7ddfa315eb4c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 09 23:25:24 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/ee9ac7fd53773f08e0f5b3241b3e7ddfa315eb4c [^]

Related to issue 30768: OB.Util.get_UUID method returns strange UUIDs, causes errors when saving addresses, resolve duplicate code
Added automated testcase

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I30768_CheckUUIDGeneration.java
---
(0080442)
Orekaria (administrator)
2015-09-16 21:01
edited on: 2015-09-16 21:02

The OB.UTIL.get_UUID is defined after it can be used: verify that in the generated javascript the OB.UTIL.get_UUID line is present in the line 8958 but there are references to it before it is defined. e.g: OB.Dal.get_uuid, line 2207

This could lead to an undefined value returned by the function and empty uuids being used, e.g for new database records

Action: move the logic to the OB.Dal.get_uuid method or check the 'MobileCoreComponentProvider.java' file and be sure that the function is defined before 'ob.dal.js'

(0080480)
hgbot (developer)
2015-09-18 08:59

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 3a28c7fb2ee8862d4e3a467ca80c9e068830c04b
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 16 23:19:44 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3a28c7fb2ee8862d4e3a467ca80c9e068830c04b [^]

Fixes issue 30768: OB.Util.get_UUID method returns strange UUIDs, causes errors when saving addresses, resolve duplicate code
load ob-utilities before ob-dal to ensure that get_UUID function is available

---
M src/org/openbravo/mobile/core/MobileCoreComponentProvider.java
---
(0080481)
hgbot (developer)
2015-09-18 09:00

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 04343b99bbedb683fe3959d1dbc8b625c60f2ceb
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Sep 17 19:06:58 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/04343b99bbedb683fe3959d1dbc8b625c60f2ceb [^]

Related to issue 30768: OB.Util.get_UUID method returns strange UUIDs, causes errors when saving addresses, resolve duplicate code
Add deprecation code for the OB.Dal.get_uuid method

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/main.js
---

- Issue History
Date Modified Username Field Change
2015-09-04 16:01 mtaal New Issue
2015-09-04 16:01 mtaal Assigned To => mtaal
2015-09-04 16:01 mtaal Regression date => 2015-08-22
2015-09-04 16:01 mtaal Regression introduced in release => pi
2015-09-04 16:01 mtaal Regression introduced by commit => 9a602b16dabd
2015-09-04 16:01 mtaal Triggers an Emergency Pack => No
2015-09-04 16:10 mtaal Relationship added caused by 0030450
2015-09-08 08:51 hgbot Checkin
2015-09-08 08:51 hgbot Note Added: 0080226
2015-09-08 08:51 hgbot Status new => resolved
2015-09-08 08:51 hgbot Resolution open => fixed
2015-09-08 08:51 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b70a1ab96f2fcdd9cee9f55fb5a7e4d7ffc2f34b [^]
2015-09-08 08:51 hgbot Checkin
2015-09-08 08:51 hgbot Note Added: 0080230
2015-09-08 08:52 hgbot Checkin
2015-09-08 08:52 hgbot Note Added: 0080234
2015-09-12 00:55 hgbot Checkin
2015-09-12 00:55 hgbot Note Added: 0080352
2015-09-16 21:01 Orekaria Note Added: 0080442
2015-09-16 21:01 Orekaria Status resolved => new
2015-09-16 21:01 Orekaria Resolution fixed => open
2015-09-16 21:01 Orekaria Note Edited: 0080442 View Revisions
2015-09-16 21:01 Orekaria Note Edited: 0080442 View Revisions
2015-09-16 21:02 Orekaria Note Edited: 0080442 View Revisions
2015-09-16 21:02 Orekaria Note Edited: 0080442 View Revisions
2015-09-18 08:59 hgbot Checkin
2015-09-18 08:59 hgbot Note Added: 0080480
2015-09-18 08:59 hgbot Status new => resolved
2015-09-18 08:59 hgbot Resolution open => fixed
2015-09-18 08:59 hgbot Fixed in SCM revision http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b70a1ab96f2fcdd9cee9f55fb5a7e4d7ffc2f34b [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/3a28c7fb2ee8862d4e3a467ca80c9e068830c04b [^]
2015-09-18 09:00 hgbot Checkin
2015-09-18 09:00 hgbot Note Added: 0080481
2015-09-18 16:39 Orekaria Review Assigned To => Orekaria
2015-09-18 16:39 Orekaria Status resolved => closed
2015-09-18 16:39 Orekaria Fixed in Version => RR15Q4


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker