This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Case sensitive filesystems and Razor view searches #1736
Comments
👍 We were discussing this earlier today. We use the Route dictionary in the ViewEngine to locate components. Instead we should rely on the |
That sounds like a good solution, especially as it places a tighter binding between the Controller and the View engine with the Action able to dictate what View will be used (as opposed to it being inferred by the route). |
We should consider the following things as well when fixing this:
|
This is not "marginal", it's literally the first thing I ran into working under Linux and it's really annoying. I lost an hour chasing it down. |
sornaks
pushed a commit
that referenced
this issue
Mar 21, 2015
sornaks
pushed a commit
that referenced
this issue
Mar 23, 2015
sornaks
pushed a commit
that referenced
this issue
Mar 24, 2015
Fixed in 54c1fed |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Title
When using a case sensitive file system the Razor View Engine will be unable to find the controller's view folder unless the path matches case in the directory structure.
Functional impact
Marginal, just requires that developers ensure the use of controller names in paths matches the same case as the directory structure.
Minimal repro steps
HomeController#Create
, this should have a viewHome/Create.cshtml
/home/Create
Home/Create.cshtml
because it has been told to tryhome/Create.cshtml
.Expected result
It should locate the view irregardless of the case.
Actual result
View not found
The text was updated successfully, but these errors were encountered: