Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2012-08-15 17:042012-08-29 17:51
ReporterpjuvaraView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision78e4e8656a9d
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version3.0MP12.1SCM revision 
Review Assigned Tomigueldejuana
Web browserGoogle Chrome
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0021361: Data cannot be saved when server has no access to Internet

DescriptionI am working on a plane and I have no internet connection to my laptop. I started my local Openbravo 3 MP12.1 virtual machine on VirtualBox with NAT networking instead of bridged and I have setup the network rules to so that there is a port forward from host:8082 to guest:80.
This way I can access Openbravo with the URL http://localhost:8082 [^]

This has always worked with no problem.

Now, I see that when I access the system with Firefox everything is OK and I can use the system.

However, when I access the system with Chrome, everything initially appears to be fine but when I try to save a record I get what appears to be an Openbravo generated message that says "Data cannot be saved because you are not online". See attached screenshot.

This does not make any sense to me. There is no reason for Openbravo to check whether we are online or not (everything is local and the browser can certainly reach the server); also I do not see why Firefox would work and Chrome would not.

This is definitely an edge case (working without network connection) but on the other hand it is a configuration that I have used in many situations to give demos from locations when there is no network access (trade shows, etc.) and I suspect that partners might be in the same position.

Also, I am not sure if this is something that is caused by the browser (I am using Chrome 20) or by Openbravo. If it is caused by the browser, there is not much that we can do about it. If it is caused by Openbravo, I wonder if this is a small symptom that hides some mistakes in our stack.

In any case, this is a regression since it worked in the past.
Steps To ReproduceSee above.
TagsNo tags attached.
Attached Filespng file icon Screenshot from 2012-07-31 12_11_04.png [^] (107,096 bytes) 2012-08-15 17:04

png file icon OfflineMessage.png [^] (98,139 bytes) 2012-08-16 13:45

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
hgbot (developer)
2012-08-16 14:01

Repository: erp/devel/pi
Changeset: 78e4e8656a9db641c300170c8c43a8477d14c761
Author: Augusto Mauch <augusto.mauch <at>>
Date: Thu Aug 16 13:58:02 2012 +0200
URL: [^]

Fixes issue 21361: Data can be saved in local server without internet access

Before this fix, it was not possible to save data without being connected, because of this code in the saveData function:

        if (isc.Offline && isc.Offline.isOffline() && !this.dataSource.clientOnly) {

Offline.isOffline() is defined as follows:

    isOffline : function () {
        if (this.explicitOffline !== null) return this.explicitOffline;
        var offline = window.navigator.onLine ? false : true;
        return offline;

So, by setting Offline.explicitOffline to false, it is possible to go on with the saving process even if the browser detects there is no internet connectivity.

This value is set just before the save, and restored to its original value right after the saving process is completed.

M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
AugustoMauch (developer)
2012-08-16 14:03

Now, if the user is working against a remote server and loses the network connectivity, the warning message he will receive will be the one shown in the attached screenshot.
AugustoMauch (developer)
2012-08-16 14:04

I have tried to reproduce this issue with previous Openbravo version, and it has been always reproducible (I have gone back until Openbravo 3.0MP3)
AugustoMauch (developer)
2012-08-16 14:05

In the changeset that fixed the issue I have not made clear that the code that prevented the saving process from working without internet connectivity belongs to Smartclient, not to Openbravo.
AugustoMauch (developer)
2012-08-17 12:25

This issue is not a regression, it has been reproducible since 3.0MP1
migueldejuana (developer)
2012-08-29 17:51

Tested and reviewed in pi@19952d22eb0a

- Issue History
Date Modified Username Field Change
2012-08-15 17:04 pjuvara New Issue
2012-08-15 17:04 pjuvara Assigned To => alostale
2012-08-15 17:04 pjuvara File Added: Screenshot from 2012-07-31 12_11_04.png
2012-08-15 17:04 pjuvara Web browser => Google Chrome
2012-08-15 17:04 pjuvara Modules => Core
2012-08-15 17:18 iciordia Web browser Google Chrome => Google Chrome
2012-08-15 17:18 iciordia Assigned To alostale => AugustoMauch
2012-08-16 13:45 AugustoMauch File Added: OfflineMessage.png
2012-08-16 14:01 hgbot Checkin
2012-08-16 14:01 hgbot Note Added: 0051324
2012-08-16 14:01 hgbot Status new => resolved
2012-08-16 14:01 hgbot Resolution open => fixed
2012-08-16 14:01 hgbot Fixed in SCM revision => [^]
2012-08-16 14:03 AugustoMauch Note Added: 0051325
2012-08-16 14:04 AugustoMauch Note Added: 0051326
2012-08-16 14:05 AugustoMauch Note Added: 0051327
2012-08-17 12:25 AugustoMauch Note Added: 0051339
2012-08-29 17:51 migueldejuana Closed by => migueldejuana
2012-08-29 17:51 migueldejuana Note Added: 0051646
2012-08-29 17:51 migueldejuana Status resolved => closed

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker