Defect #2895
closedError page when downloading a report (Firefox)
100%
Description
Version 11.1
When trying to download a report or a script backup, the error "The service is currently not available." is displayed cca 3 seconds after the file is ready to download.
This happens in Firefox 89 and 90 on Firefox and Ubuntu, it doesn't happen in Chrome.
Files
Related issues
Updated by Vít Švanda over 3 years ago
- Status changed from New to In Progress
- Assignee changed from Radek Tomiška to Vít Švanda
Updated by Vít Švanda over 3 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Ondrej Husník
- Target version set to 11.1.1
- % Done changed from 0 to 90
I have tested and confirmed the existence of the problem in Firefox and also under Windows.
The problem is not isolated to reports, but to all pages where the attachment is downloaded (wizard, import/export, ...).
After long debugging, I have found partially to the cause. The problem is related to monitoring and the long-polling used in it. If I disable long-polling (using property: 'idm.pub.app.long-polling.enabled'), then the problem does not happen.
I have not been able to figure out the specific cause, but it probably has to do with the fact that Firefox is doing a 'redirect' at the moment (throwing away the connection history). I have not been able to fix this situation (I don't think this is possible in our code).
As a workaround I found, use a new tab in the download links. From a UX perspective this is less convenient (blink/redirect), but it works in Firefox.
I have made the adjustment (hopefully) on all product sites that download the attachment.
target="_blank"
rel="noopener noreferrer"
download
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/6996fb82b12c60754f2ccda0285ddaa984c7380c
Updated by Ondrej Husník over 3 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Ondrej Husník to Vít Švanda
- % Done changed from 90 to 100
I tested your fix and it works well. I guess that mentioned page blink is barely noticeable. Tested in Firefox 90.1. Good job!
Updated by Vít Švanda over 3 years ago
- Subject changed from Error page when downloading a report to Error page when downloading a report (Firefox)
- Status changed from Resolved to Closed
Updated by Radek Tomiška over 3 years ago
- Related to Defect #2900: When I login as other user, after short time IdM stops to respect rights of that user in its behavior added