Zip file is not getting downloaded in Chrome for mixed http content

Steps to reproduce

Steps:

Login into drupal 9 and create a new node- 'Test file zip'content having file field
Browse a zip file and add in file field and save it.
Create another test node - Title - 'Test', Body - Add Link field and attach the file node.
Open a new Incognito window and navigate to 'Test' node.
Expected Result:

The new zip file added should be displayed in 'Test' page and on clicking on it should open launch download of file

Actual Result:

Clicking on the file is not doing any action, download does not start, as Chrome is blocking the download by flagging it insecure.

Please note: The expected results are working for firefox, edge browsers, the issue is only with Chrome browser as its blocking zip,pdf files from being downloaded, as they have been marked insecure as there is http content in the drupal rendered page >>

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
chromeblocking.JPG31.2 KBsk_10

Comments

sk_10 created an issue. See original summary.

avpaderno’s picture

Version: 9.0.x-dev » 9.3.x-dev
Issue tags: -file, -zip
cilefen’s picture

Where is the HTTP content coming from on the affected site, I don’t see how this would be a Drupal bug.

longwave’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Agree with @cilefen, this would appear to be a problem with your specific site - perhaps an image or similar that uses an http:// link instead of https:// embedded in the page. Without a link to the site itself or further details of the HTTP content I am not sure there is much we can help with here.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

sk_10’s picture

Version: 9.4.x-dev » 9.2.x-dev
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

@longwave @cilefen -The issue got resolved after updating the core to 9.2.9. I am reviewing the multiple changes/ commits. The content of the page i.e http links or https links are as they are nothing is changed content wise. So it seems the issue might not be with drupal rendered page. It can be server side issue as well I am investigating on this at my website side. Other possibility can be chrome browser update.

avpaderno’s picture

Status: Closed (cannot reproduce) » Fixed

SInce this has been changed to a support request, the status should be Fixed, as the OP found the answer.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.