Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0045950 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
design defect | [POS2] Core | minor | always | 2021-02-25 11:44 | 2024-01-10 12:30 | ||||||
Reporter | lorenzofidalgo | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | high | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Any | Database | Any | Java version | |||||||
OS Version | Database version | Ant version | |||||||||
Product Version | pi | SCM revision | |||||||||
Review Assigned To | |||||||||||
Regression level | Automated tests | ||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0045950: Cross Origin errors are thrown visiting the NewPOS | ||||||||||
Description | The following error is shown after vising more than once the NewPOS login page: "Blocked a frame with origin "https://livebuilds.openbravo.com" [^] from accessing a cross-origin frame." It has been reproduced in CI and much more easily with Cypress automated tests in local against NewPOS livebuilds. Check the attached videos since they are pretty informative to narrow the error down. ( https://drive.google.com/file/d/1P5tRmXshhWF1nxebrLMjMZ1Mas_X8cVm/view?usp=sharing [^] ) ( https://drive.google.com/file/d/1ZWKLQUILVfztzT2aUDCKDIruO1lCBmsn/view?usp=sharing [^] ) ( https://drive.google.com/file/d/1f_7-d0aXxPejKK21xdThVOcp4wezKwgW/view?usp=sharing [^] ) This seems to be related with Service Workers because the browser unblocks the sitauation after service workers are cleaned. Besides, after checking when the issue started to happen (around 15th February), a merge containing Service Workers changes was introduced in core2. So it seems to be related (but not sure 100%). To be able to unblock Cypress tests and continue the executions, chromeWebSecurity has been disabled. To reproduce this issue, it is required to backout the following changeset: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/ab3429626be38c53f337e1a1136b9696db5121b3 [^] | ||||||||||
Steps To Reproduce | 0-With the Cypress automated tests repo ready in your local machine, set "cypress.env.json" file with the following to be able to launch your tests against the livebuilds remote machine: { "baseUrl":"https://livebuilds.openbravo.com/retail_pos2_modules_pgsql", [^] "terminalUrl": "/web/pos/?terminal=VBS-2" } 1-Launch .../src-test/cypress/runAllSpecs/runFeaturesSpecsPOS2.spec.js suite against "https://livebuilds.openbravo.com/retail_pos2_modules_pgsql/web/pos/?terminal=VBS-2" [^] DEFECT: Realise when the second test executes the cy.visit command, it fails launching a Cross Origin error. | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0126481) alostale (manager) 2021-03-03 08:50 |
Downgraded priority as it has been workarounded [1] [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/ab3429626be38c53f337e1a1136b9696db5121b3 [^] |
(0159038) lorenzofidalgo (developer) 2024-01-10 12:30 edited on: 2024-01-10 12:30 |
While I keep the "Steps to reproduce" as is for history purposes, right now, while following the same steps, a new and less informative error is shown: After the step "1", while doing the visit, a timeout error is shown but no more info is shown. Probably same root cause but now it is harder to track. |
Issue History | |||
Date Modified | Username | Field | Change |
2021-02-25 11:44 | lorenzofidalgo | New Issue | |
2021-02-25 11:44 | lorenzofidalgo | Assigned To | => Retail |
2021-02-25 11:44 | lorenzofidalgo | Regression level | => Automated tests |
2021-02-25 11:44 | lorenzofidalgo | Triggers an Emergency Pack | => No |
2021-02-26 13:52 | lorenzofidalgo | Description Updated | View Revisions |
2021-02-28 18:30 | guilleaer | Assigned To | Retail => alostale |
2021-03-03 08:50 | alostale | Note Added: 0126481 | |
2021-03-03 08:50 | alostale | Priority | immediate => high |
2021-04-29 10:07 | guilleaer | Assigned To | alostale => platform |
2021-04-29 10:07 | guilleaer | Severity | major => minor |
2021-04-29 10:07 | guilleaer | Type | defect => design defect |
2021-04-29 10:57 | guilleaer | Status | new => acknowledged |
2022-02-01 08:07 | alostale | Assigned To | platform => Triage Platform Base |
2024-01-10 09:07 | lorenzofidalgo | Steps to Reproduce Updated | View Revisions |
2024-01-10 12:28 | lorenzofidalgo | Description Updated | View Revisions |
2024-01-10 12:30 | lorenzofidalgo | Note Added: 0159038 | |
2024-01-10 12:30 | lorenzofidalgo | Note Edited: 0159038 | View Revisions |
Copyright © 2000 - 2009 MantisBT Group |