Project

General

Profile

Actions

Defect #2895

closed

Error page when downloading a report (Firefox)

Added by Alena Peterová almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Vít Švanda
Category:
Frontend
Target version:
Start date:
07/21/2021
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

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

report_download.png (47.4 KB) report_download.png Alena Peterová, 07/21/2021 07:44 AM

Related issues

Related to IdStory Identity Manager - Defect #2900: When I login as other user, after short time IdM stops to respect rights of that user in its behaviorClosedRadek Tomiška08/03/2021

Actions
Actions #1

Updated by Vít Švanda almost 3 years ago

  • Status changed from New to In Progress
  • Assignee changed from Radek Tomiška to Vít Švanda
Actions #2

Updated by Vít Švanda almost 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

Actions #3

Updated by Ondrej Husník almost 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!

Actions #4

Updated by Vít Švanda almost 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
Actions #5

Updated by Radek Tomiška over 2 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
Actions

Also available in: Atom PDF