Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0035548 | Openbravo ERP | A. Platform | public | 2017-03-17 08:36 | 2017-03-20 23:12 | ||||||||
Reporter | mtaal | ||||||||||||
Assigned To | mtaal | ||||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||
Status | closed | Resolution | fixed | ||||||||||
Platform | OS | 5 | OS Version | ||||||||||
Product Version | |||||||||||||
Target Version | 3.0PR17Q2 | Fixed in Version | |||||||||||
Merge Request Status | |||||||||||||
Review Assigned To | AugustoMauch | ||||||||||||
OBNetwork customer | OBPS | ||||||||||||
Web browser | |||||||||||||
Modules | Core | ||||||||||||
Support ticket | |||||||||||||
Regression level | |||||||||||||
Regression date | |||||||||||||
Regression introduced in release | |||||||||||||
Regression introduced by commit | |||||||||||||
Triggers an Emergency Pack | No | ||||||||||||
Summary | 0035548: Cross domain checks is also executed/logged when the origin of the webpos main page and the separate xhr request are the same | ||||||||||||
Description | The assumption when creating the cross domain logic was that the origin was only set by the browser when the original page and the xhr have different origins. This showed to be false the origin header is always included. This results in cross domain errors in the log if there are mobile server definitions and the multi-server preference is set to N. This results in that the browser/webpos does not have a list of servers and requests all the data from the server it was loaded from. Still the cross domain check on the server uses the mobile server definitions to check the cross domain request. This issue only occurs when: - mobile core is included, and - one or more mobile server definitions are created. It shows by messages in the log [2]. WebPOS functions properly, still there are messages in the log. [1] http://wiki.openbravo.com/wiki/How_to_Setup_MultiServer_Dev_Environment#Understanding_CORS [^] [2] 223347 [http-bio-9080-exec-7] ERROR org.openbravo.mobile.core.authenticate.MobileAllowedCrossDomainsChecker - Origin http://localhost:9080 [^] is not allowed, request information: http://localhost:9080/openbravo/org.openbravo.retail.posterminal/POSLoginHandler-null [^] 231650 [http-bio-9080-exec-7] ERROR org.openbravo.mobile.core.authenticate.MobileAllowedCrossDomainsChecker - Origin http://localhost:9080 [^] is not allowed, request information: http://localhost:9080/openbravo/org.openbravo.retail.posterminal/POSLoginHandler-null [^] | ||||||||||||
Steps To Reproduce | - Create mobile server definitions - Set the urls of the mobile server to something non-existing - Set multi-server pref to N (not needed but is from the customer case) - Access webpos using localhost - See messages in the log | ||||||||||||
Proposed Solution | Check if the origin of the request is present in the request url. If so then the request is allowed and cross domain headers do not need to be set either. Code changes can be done in the AllowedCrossDomainsHandler. [1] https://code.openbravo.com/erp/devel/pi/file/05c62ceaa5a6/src/org/openbravo/base/secureApp/AllowedCrossDomainsHandler.java#l63 [^] | ||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | |||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2017-03-17 08:36 | mtaal | New Issue | |||||||||||
2017-03-17 08:36 | mtaal | Assigned To | => mtaal | ||||||||||
2017-03-17 08:36 | mtaal | OBNetwork customer | => No | ||||||||||
2017-03-17 08:36 | mtaal | Modules | => Core | ||||||||||
2017-03-17 08:36 | mtaal | Triggers an Emergency Pack | => No | ||||||||||
2017-03-17 08:46 | mtaal | Relationship added | related to 0035549 | ||||||||||
2017-03-17 10:10 | shuehner | OBNetwork customer | No => Yes | ||||||||||
2017-03-17 10:10 | shuehner | Resolution time | => 1491516000 | ||||||||||
2017-03-17 10:14 | shuehner | Issue Monitored: shuehner | |||||||||||
2017-03-19 10:17 | mtaal | Review Assigned To | => AugustoMauch | ||||||||||
2017-03-19 10:18 | hgbot | Checkin | |||||||||||
2017-03-19 10:18 | hgbot | Note Added: 0095389 | |||||||||||
2017-03-19 10:18 | hgbot | Status | new => resolved | ||||||||||
2017-03-19 10:18 | hgbot | Resolution | open => fixed | ||||||||||
2017-03-19 10:18 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/fa58c10eca84fdfb956ab161e64a9fbc21d93239 [^] | ||||||||||
2017-03-20 10:08 | AugustoMauch | Note Added: 0095414 | |||||||||||
2017-03-20 10:08 | AugustoMauch | Status | resolved => closed | ||||||||||
2017-03-20 23:12 | hudsonbot | Checkin | |||||||||||
2017-03-20 23:12 | hudsonbot | Note Added: 0095449 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|