Closed bscheshirwork closed 2 years ago
Do you mean that Yii silences errors when it's not able to read asset file?
Yes. Also we can't publish file from asset bundle.
I see the algorithm of publish:
<script url='...'>
with/without timestampIf user nginx
is right-less we have 404 for this url
If user php
is right-less we can't get touch time (and publish by "copy dir"?)
may be need additional check 'is_readable'
I'd error explicitly in this case. Not sure why it does not now.
What steps will reproduce the problem?
backend/assets/test
rights isdrwx------
; Owner is not a web server user and is not a php user.What is the expected result?
throw any error / docs about this case
What do you get instead?
not have access to assets file from nginx. 404. also in this case
@filemtime("$basePath/$asset")
is falseSo... I change rights chmod -R u+rwX,go+rX,go-w backend/assets/test
Additional info
yiisoft/yii2 dev-master ade07cf Yii PHP Framework Version 2 | PHP version | 7.2.8 | Operating system |alpine