revsys / django-health-check

a pluggable app that runs a full check on the deployment, using a number of plugins to check e.g. database, queue server, celery processes, etc.
https://readthedocs.org/projects/django-health-check/
MIT License
1.24k stars 195 forks source link

Compatibility Issue with django-storages 1.14.4 #434

Open krystofbe opened 4 months ago

krystofbe commented 4 months ago

Hi,

I wanted to bring to your attention a compatibility issue that arises when using django-healthcheck in conjunction with django-storages version 1.14.4.

Description

After upgrading django-storages from 1.14.3 to 1.14.4, django-healthcheck tests that involve file existence checks started failing. The tests report that files cannot be found even though they were saved successfully. This seems to be due to a change in the behavior of the exists() method in django-storages as described in this issue.

Steps to Reproduce

  1. Use django-healthcheck to run tests involving file storage.
  2. Upgrade django-storages from 1.14.3 to 1.14.4.
  3. Run the tests again and observe the failures indicating missing files.

Expected Behavior

Tests should pass as they did with django-storages 1.14.3, with the exists() method correctly identifying saved files.

Actual Behavior

Tests fail, reporting that files cannot be found immediately after they are saved.

Temporary Solution

Downgrading django-storages to 1.14.3 resolves the issue, but this is not a long-term solution due to the security patches included in 1.14.4.

verbosus commented 2 months ago

Also running into this bug, also had to downgrade to django-storages 1.14.3.

daronzwink commented 2 months ago

Also running into this bug, thanks for logging and will temporarily downgrade to django-storages 1.14.3 until there is a fix.