Issue #266 new

assets hash is colliding

Michael Kling
created an issue

In /components/Bootstrap.php @ line 306 the assets are published via:

$assetsUrl = Yii::app()->assetManager->publish($assetsPath, true, -1, $this->forceCopyAssets);

With the second parameter = true the hash for the assets directory name is only done one "assets", not on the full path. Unfortunatly this is the exact same call and setup like in the extension "yii-chartjs" and it is likely that other extensions took this method over as well. This leads to the case that all extensions publish their assets under the hash crc32("assets") which leads to a collision. I don't know what the initial motiviation it was to put this parameter on true but if it doesnt serve any real need it should be set on false in order to prevent such a collision.

Comments (0)

  1. Log in to comment