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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035201
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajorrandom2017-02-07 17:582017-03-06 10:34
ReporterguillermogilView Statuspublic 
Assigned Tomarvintm 
PriorityhighResolutionfixedFixed in VersionRR17Q1
StatusclosedFix in branchFixed in SCM revision5443763fb43c
ProjectionnoneETAnoneTarget VersionRR17Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0035201: It is possible to have duplicated primary keys on WebSQL

DescriptionIt is possible to have duplicated primary keys on WebSQL if you have a lot of products with duplicated names and an small pagination.
When the query is done it orders by name and since there are a lot that have the same value it can rely on errors in WebPOS console and losses of some record.

It will be needed to review each masterdata to ensure the proper behavior of them.
Steps To ReproduceN/A
Proposed SolutionSee diff attached for product query and apply it on the other queries.
It is needed to order by a unique constraint.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0035191 closedmarvintm It is possible to have duplicated primary keys on WebSQL 

-  Notes
(0094159)
hgbot (developer)
2017-02-08 18:52

Repository: retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal
Changeset: 5443763fb43cb7fe96ecd4b467e6d01967624cf2
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Feb 08 18:52:14 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/5443763fb43cb7fe96ecd4b467e6d01967624cf2 [^]

Fixed issue 35201. Added id in the order by of masterdata queries to ensure that pagination works even if several records have the same name

---
M src/org/openbravo/retail/posterminal/master/BPCategory.java
M src/org/openbravo/retail/posterminal/master/BPLocation.java
M src/org/openbravo/retail/posterminal/master/Brand.java
M src/org/openbravo/retail/posterminal/master/BusinessPartner.java
M src/org/openbravo/retail/posterminal/master/Category.java
M src/org/openbravo/retail/posterminal/master/CategoryTree.java
M src/org/openbravo/retail/posterminal/master/Characteristic.java
M src/org/openbravo/retail/posterminal/master/CharacteristicValue.java
M src/org/openbravo/retail/posterminal/master/Product.java
M src/org/openbravo/retail/posterminal/master/ReturnReason.java
M src/org/openbravo/retail/posterminal/master/SalesRepresentative.java
M src/org/openbravo/retail/posterminal/master/ServicePriceRuleRange.java
M src/org/openbravo/retail/posterminal/master/ServicePriceRuleVersion.java
M src/org/openbravo/retail/posterminal/master/ServiceProduct.java
M src/org/openbravo/retail/posterminal/master/ServiceProductCategory.java
M src/org/openbravo/retail/posterminal/master/TaxRate.java
---

- Issue History
Date Modified Username Field Change
2017-02-08 15:34 marvintm Type defect => backport
2017-02-08 15:34 marvintm Target Version => RR17Q1
2017-02-08 18:52 hgbot Checkin
2017-02-08 18:52 hgbot Note Added: 0094159
2017-02-08 18:52 hgbot Status scheduled => resolved
2017-02-08 18:52 hgbot Resolution open => fixed
2017-02-08 18:52 hgbot Fixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/5443763fb43cb7fe96ecd4b467e6d01967624cf2 [^]
2017-03-01 15:19 marvintm Assigned To Retail => marvintm
2017-03-06 10:34 guilleaer Review Assigned To => guilleaer
2017-03-06 10:34 guilleaer Status resolved => closed
2017-03-06 10:34 guilleaer Fixed in Version => RR17Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker