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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034783
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] StoreServerminoralways2016-12-20 11:442017-10-23 18:22
ReportergorkaionView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision8488534a4c7c
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0034783: [Store Server 2197]Bad error message when central is offline on services configured to be executed only in central.

DescriptionThe POS Templates configured to be printed in the backend are using a Mobile Service that can only be executed in the central server. The java implementation is overriding the executeOnlyInCentral() method to force this behavior.

When the central server is offline it is not possible to print but the error shown to the user is not friendly. See screenshot.
Steps To ReproduceTo test/simulate the issue in a non-but enviroment:
- install multi-server
- set synchronized mode preference
- change the MultiServerJSONProcess.executeOnlyInCentral method to always return true in the store server
- then goto webpos, prepare a ticket
- just before pressing done button stop the central server
- see the error message

Reproduce in BUT environment;

== Prerequisites ==
On a BUT Snapshot with at least core and posterminal modules on tip. PrintDocument java class of posterminal must extend MultiServerJSONProcess.

Ensure that the POS Terminals are using the invoice templates provided by BUT Reports modules that are configured to be printed in the backend.

== Steps ==
Try to print a invoice with central offline
1. Open a closed receipt.
2. Click on Print this receipt.
3. Select the opened printed to enable the print invoices button.
4. Click on Print Invoices.
5. A error message not user friendly is shown (see screenshot)

Proposed SolutionThe MultiserverJSONProcess class should check if Central is only when the executeOnlyInCentral returns true to return a more friendly error message.
TagsNo tags attached.
Attached Filespng file icon centrall-offline-error.png [^] (99,908 bytes) 2016-12-20 11:44


png file icon Selection_137.png [^] (193,877 bytes) 2017-01-30 13:05

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0037146 closedmtaal [Store Server 3288]Bad error message when central is offline on services configured to be executed only in central. 

-  Notes
(0093932)
hgbot (developer)
2017-01-30 13:04

Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8488534a4c7c2d6a3973887958b76ce89f6fbd42
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jan 30 13:04:22 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8488534a4c7c2d6a3973887958b76ce89f6fbd42 [^]

Fixes issue 34783: [Store Server 2197]Bad error message when central is offline
Give more user friendly error message but still log the error.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0094284)
Sandrahuguet (developer)
2017-02-13 18:43

reviewed and tested

- Issue History
Date Modified Username Field Change
2016-12-20 11:44 gorkaion New Issue
2016-12-20 11:44 gorkaion Assigned To => StoreServer
2016-12-20 11:44 gorkaion File Added: centrall-offline-error.png
2016-12-20 11:44 gorkaion Resolution time => 1483398000
2016-12-20 11:44 gorkaion Triggers an Emergency Pack => No
2016-12-20 11:45 gorkaion Summary Bad error message when central is offline on services configured to be executed only in central. => [Store Server 2197]Bad error message when central is offline on services configured to be executed only in central.
2016-12-22 10:44 mtaal Assigned To StoreServer => mtaal
2017-01-30 13:04 hgbot Checkin
2017-01-30 13:04 hgbot Note Added: 0093932
2017-01-30 13:04 hgbot Status new => resolved
2017-01-30 13:04 hgbot Resolution open => fixed
2017-01-30 13:04 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8488534a4c7c2d6a3973887958b76ce89f6fbd42 [^]
2017-01-30 13:05 mtaal File Added: Selection_137.png
2017-01-30 13:05 mtaal Review Assigned To => Sandrahuguet
2017-01-30 13:08 mtaal Steps to Reproduce Updated View Revisions
2017-02-02 14:03 gorkaion Issue cloned 0035140
2017-02-13 18:43 Sandrahuguet Note Added: 0094284
2017-02-13 18:43 Sandrahuguet Status resolved => closed
2017-10-23 18:22 gorkaion Issue cloned 0037146
2017-10-23 18:22 gorkaion Relationship added related to 0037146


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker