You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

v2.0.4.rst 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. =======================
  2. Oscar 2.0.4 release notes
  3. =======================
  4. :release: 2019-12-05
  5. This is Oscar 2.0.4, a security release.
  6. Security fixes
  7. ==============
  8. The file handling behaviour of uploaded CSV files for ranges (handled by
  9. ``RangeProductListView``) has been modified to address a potential security
  10. risk when invalid files are uploaded, as these would previously be left on disk
  11. if parsing of the uploaded file failed.
  12. Uploaded files are no longer written to disk by Oscar, but processed directly
  13. from the temporary uploaded file.
  14. This means that ``RangeProductFileUpload.filepath`` no longer stores a
  15. reference to the stored path of an uploaded file, but only its file name for
  16. reporting purposes. The ``filename`` property of ``RangeProductFileUpload``
  17. has been removed.
  18. The ``RangeProductListView.create_upload_object``,
  19. ``RangeProductFileUpload.process`` and ``RangeProductFileUpload.extract_ids``
  20. methods now both expect a file object as a positional argument.
  21. Projects that have overridden any of these methods will need to make
  22. corresponding changes.
  23. The ``OSCAR_UPLOAD_ROOT`` setting which was used exclusively by this feature has
  24. been removed.
  25. Thanks to Mina Mohsen Edwar for reporting this issue.