Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039316Retail ModulesStoreServerpublic2018-09-19 10:182018-10-01 06:01
aaroncalero 
AugustoMauch 
highmajoralways
closedfixed 
5
 
 
mtaal
No
0039316: MobileAllowedCrossDomainsChecker logs an error for every process executed in backend
In an environment with multiserver configured (Preference Mobile Multi-Server Architecture Enablement = 'Y' at System level, and a Mobile Server configured), executing any process in backend raises an error in the openbravo.log:

469982 [http-bio-8080-exec-10] ERROR org.openbravo.mobile.core.authenticate.MobileAllowedCrossDomainsChecker - Origin null is not allowed
In a Retail environment:
1. Enable multiserver:
*At System Level, go to the Preference window and create the preference Mobile Multi-Server Architecture Enablement with value Y.
*At Client level, go to the Mobile Servers window and create a new record (url and server key can be anything)
*Restart tomcat so the preference change is taken into account by the system.
2. The issue:
Login in backend
Go to the Sales Order window
Select any Sales Order
Click on the Close process button.
Verify that the following error is raised in the tomcat console/openbravo.log:
469982 [http-bio-8080-exec-10] ERROR org.openbravo.mobile.core.authenticate.MobileAllowedCrossDomainsChecker - Origin null is not allowed, request information: http://localhost:8080/openbravo//SalesOrder/Header_Edition.html-IsPopUpCall=1 [^]
No tags attached.
Issue History
2018-09-19 10:18aaroncaleroNew Issue
2018-09-19 10:18aaroncaleroAssigned To => StoreServer
2018-09-19 10:18aaroncaleroResolution time => 1538517600
2018-09-19 10:18aaroncaleroTriggers an Emergency Pack => No
2018-09-26 11:51AugustoMauchAssigned ToStoreServer => AugustoMauch
2018-09-26 11:51AugustoMauchReview Assigned To => mtaal
2018-09-26 11:52hgbotCheckin
2018-09-26 11:52hgbotNote Added: 0107035
2018-09-26 11:52hgbotStatusnew => resolved
2018-09-26 11:52hgbotResolutionopen => fixed
2018-09-26 11:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5673d02fb2af158cd0f5325a38c83e9b96155e7d [^]
2018-09-26 19:47hudsonbotCheckin
2018-09-26 19:47hudsonbotNote Added: 0107042
2018-10-01 06:01mtaalNote Added: 0107083
2018-10-01 06:01mtaalStatusresolved => closed

Notes
(0107035)
hgbot   
2018-09-26 11:52   
Repository: erp/devel/pi
Changeset: 5673d02fb2af158cd0f5325a38c83e9b96155e7d
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Sep 26 11:51:13 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5673d02fb2af158cd0f5325a38c83e9b96155e7d [^]

Fixes issue 39316: Unneeded error shown in log if origin is empty

The problem was that sometimes the Origin request param is set to "null" (string with "null" as
content). In that case, the null checks were not met, and an actual check against the allowed
origins was done. This check failed and the error was shown in the log.

If the origin is empty, null or "null" the check does not need to be done.

---
M src/org/openbravo/base/secureApp/AllowedCrossDomainsHandler.java
---
(0107042)
hudsonbot   
2018-09-26 19:47   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/95141753a1f0 [^]
Maturity status: Test
(0107083)
mtaal   
2018-10-01 06:01   
reviewed