﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27201	Django 1.10 with STATICFILES_STORAGE breaks on absolute path in CSS with double slash	Andrew Badr	nobody	"After upgrading Django to 1.10, my `manage.py collectstatic` command broke with an error like this one: 

`django.core.exceptions.SuspiciousFileOperation: The joined path (/fonts/crimson/CrimsonText-Bold.ttf) is located outside of the base path component (/Users/andrew/tmp/verse_collectstatic_test/_staticfiles)`

Downgrading to Django 1.9 fixes the issue (`collectstatic` runs successfully), as does removing the line `STATICFILES_STORAGE =  'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'` from my settings.py. The static file it is attempting to process in the above example is a .css file containing:

{{{
@font-face {
  font-family: ""Crimson"";
  src: url(""/static//fonts/crimson/CrimsonText-Bold.ttf"");
  font-weight: bold;
}
}}}
Note the double slash in the font path. This is a typo, but it is not a syntactic or semantic error, and it worked fine before. It runs fine if I fix the double-slash. This is an easy workaround, but I am filing this issue because it may be tricky for other users to diagnose, and because there may be some more dangerous underlying bug."	Cleanup/optimization	closed	contrib.staticfiles	1.10	Normal	fixed		Aymeric Augustin Adam Zapletal	Accepted	0	0	0	0	0	0
