Openbravo Issue Tracking System - Retail Modules | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0034284 | Retail Modules | StoreServer | public | 2016-10-24 15:55 | 2016-11-16 13:17 | |||||||
| Reporter | mtaal | |||||||||||
| Assigned To | mtaal | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | RR16Q3.3 | Fixed in Version | ||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | migueldejuana | |||||||||||
| OBNetwork customer | No | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0034284: Support different protocols (http and https) for store and central server | |||||||||||
| Description | Currently we don't support different protocols http and https for the central server. If for example the store has http:// and the central server has https:// then still WebPOS will try to call central with http://. [^] The central server will try to redirect webpos to https://. [^] However an error is thrown [1], this is not supported in cross domain pre-flight requests [2]. [1] XMLHttpRequest cannot load http://testhipertextil.practicsbs.com/openbravo/org.openbravo.mobile.core.service.jsonrest/org.openbravo.retail.posterminal.ProcessCashMgmtMaster. [^] Response for preflight is invalid (redirect) [2] http://stackoverflow.com/questions/23412037/302-redirect-after-cors-preflight [^] | |||||||||||
| Steps To Reproduce | install central and store use https for central http for store login in to the store stop store server work offline on store server --> errors show up | |||||||||||
| Proposed Solution | Don't strip http/https from the url when sending to the client [1] Check when setting the server in the request router code that the http/https is there. If so then don't prefix the location.protocol [1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/6e967b9921b3/src/org/openbravo/mobile/core/login/MobileCoreLoginUtilsServlet.java#l206 [^] [2] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/6e967b9921b3/web/org.openbravo.mobile.core/source/data/ob-requestrouter.js#l656 [^] | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2016-10-24 15:55 | mtaal | Type | defect => backport | |||||||||
| 2016-10-24 15:55 | mtaal | Target Version | RR17Q1 => RR16Q3.3 | |||||||||
| 2016-10-25 00:10 | mtaal | Review Assigned To | => migueldejuana | |||||||||
| 2016-10-25 00:11 | hgbot | Checkin | ||||||||||
| 2016-10-25 00:11 | hgbot | Note Added: 0090833 | ||||||||||
| 2016-10-25 00:11 | hgbot | Status | scheduled => resolved | |||||||||
| 2016-10-25 00:11 | hgbot | Resolution | open => fixed | |||||||||
| 2016-10-25 00:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/retail/backports/3.0RR16Q3.3/org.openbravo.mobile.core/rev/d56eb00eb3f0de2f8a97330b592a4bd413d56b33 [^] | |||||||||
| 2016-11-16 13:17 | migueldejuana | Note Added: 0091601 | ||||||||||
| 2016-11-16 13:17 | migueldejuana | Status | resolved => closed | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||