#26644: [Regression?] SuspiciousFileOperation when creating a File from a NamedTemporaryFile -------------------------------------+------------------------------------- Reporter: hobarrera | Owner: nobody Type: Bug | Status: new Component: File | Version: 1.10 uploads/storage | Severity: Release blocker | Resolution: Keywords: File, | Triage Stage: SuspiciousFileOperation, | Unreviewed NamedTemporaryFile, regression | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by hobarrera): A possible fix is to trim the original file's path and keep only the basename component if the path is an absolute path inside `File` when saving; I believe this should fix the regression for any storage. I can try to create a PR if that solution sounds okay. I can't really think of an alternative. -- Ticket URL: <https://code.djangoproject.com/ticket/26644#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.03e3f101820cc97034a7356ea02788ca%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.