﻿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
17939	Staticfiles overwriting files incorrectly	marc.tamlyn@…	nobody	"I believe there's an issue with the way {{{collectstatic}}} operates when the collected folder is not empty.

Suppose I've got files like this:

{{{
my_first_app/static/base.css
my_second_app/static/base.css
}}}

And {{{INSTALLED_APPS}}} places {{{my_first_app}}} above {{{my_second_app}}}, then {{{findstatic --first}}} will tell me that the file in {{{my_first_app}}} will be used. However if I run the following sequence, it gets overwritten with the file from {{{my_second_app}}}.

{{{
manage.py collectstatic
touch my_second_app/static/base.css
manage.py collectstatic
}}}

{{{collectstatic}}} seems to pick up the changed timestamp but ignores the fact that file should be overwritten. For the moment we've had to patch our deploy so that it deletes the collected static each time.

It seems to me that this is not expected behaviour. I've not written an automated test case for it as yet but can try to if this is indeed broken."	Bug	closed	contrib.staticfiles	dev	Normal	duplicate			Unreviewed	0	0	0	0	0	0
