Doug Bunting
49ffeb16d2
Test fix: Change `CollectionModelBinderTest` to update `ModelMetadata.IsReadOnly`
...
- unrelated to #3482 except that I discovered the issue while investigating that issue
- tests previously set `BindingDetails.IsReadOnly` for a `Type` and that was ignored
- same for `DictionaryModelBinderTest`
2016-02-26 15:58:09 -08:00
Pranav K
385c21fbe2
Add Microsoft.AspNetCore.Mvc.Dnx to allow using Mvc with DNX
2016-02-26 15:14:32 -08:00
ryanbrandenburg
00bab92257
* Linux FS is case sensitive
2016-02-26 11:59:23 -08:00
Ajay Bhargav Baaskaran
b8e77e91d1
Updating samples to work with latest dotnet
2016-02-25 10:46:15 -08:00
Pranav K
756953fd50
Use the entry assembly when DependencyContext is null
...
Fixes #4136
2016-02-25 06:23:06 -08:00
Doug Bunting
140c8686b5
Update `build.cmd` to match latest template
...
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:55:37 -08:00
Ajay Bhargav Baaskaran
028c0fb131
Enabled xml doc generation
2016-02-24 12:19:46 -08:00
Pranav K
0bf650a789
Use a fixed version of Roslyn to allow Coherence to succeed
2016-02-24 10:48:18 -08:00
Doug Bunting
d1695ea6d6
Update `build.sh` to match other repos
...
- currently attempts to `source KoreBuild.sh`
2016-02-24 09:38:40 -08:00
Caleb Nelton
5b0b0b95a7
Small Refactorings
...
Use nameof
Replace with single call to SingleOrDefault
Replace with single call to FirstOrDefault
Simplify conditionals
2016-02-23 19:01:09 -08:00
Pranav K
80b6996701
* Moving DNX dependencies to test only
...
* Updating Mvc tests to use dotnet test to run on dnxcore50
2016-02-23 18:58:42 -08:00
Sebastien Ros
c259f82615
[ Fixes #4112 #4093 ] Adding support for custom SSL port
...
New optional MvcOptions.SslPort. If not defined the redirection uses an empty port (default),
otherwise the custom port is used.
2016-02-23 10:21:11 -08:00
Pranav K
5b805bb12d
Updating to use cli
...
Fixes #3908
2016-02-22 17:49:51 -08:00
Kiran Challa
779edb6fe1
React to Routing service collection extension changes
2016-02-22 11:43:08 -08:00
Ajay Bhargav Baaskaran
df5eb0a15c
[ Fixes #4092 ] Using System.Buffers in JsonResultExecutor
2016-02-19 16:45:26 -08:00
N. Taylor Mullen
b39f4dfe29
React to razor tooling rename.
2016-02-19 15:05:37 -08:00
Kiran Challa
4123d83d26
[ Fixes #4047 ] SelectTagHelpers: asp-items shouldn't require/depend on asp-for.
2016-02-19 10:03:45 -08:00
Kiran Challa
fd3ee49987
[ Fixes #4085 ] Controller helper inconsistency: HttpNotFound(), Ok()
2016-02-19 09:25:04 -08:00
matt kocaj
75c05be2f7
removing redundant 'http' prefixes from helper methods.
2016-02-19 09:25:03 -08:00
Ryan Nowak
b557ca55d9
Fix behavior of StartsWithPrefix
...
This undoes a behavior change introduced in
7b18d1d3f1 .
The intent was to have ClearValidationState do the right thing for a case
where a collection was bound to the empty prefix, and then used again with
TryUpdateModel.
This change was implemented by saying that a key like "[0].Foo" is a match
for the prefix of "Foo". This isn't really right, and it's only
interesting for the ClearValidationState case.
The problem is that we don't know what the keys look like for a
collection. We can assume that they start with [0] but that's not really a
guarantee, it's a guess.
This change fixes the behavior of StartsWithModel, and move the
responsibility for this case back into ClearValidationState.
This change also removes the call to ClearValidationState from
TryUpdateModel. If you need this behavior, then call ClearValidationState
manually. Trying to bind and then re-bind a model object isn't really what
we intend.
2016-02-17 11:16:16 -08:00
Ajay Bhargav Baaskaran
fd6d28d9eb
Make AddControllersAsServices not overwrite existing IControllerTypeProvider
2016-02-17 10:14:31 -08:00
jacalvar
910f0139f9
[ Fixes #4050 ] Throw an exception on CanRead/Write and GetSupportedContentTypes when the list of media types is empty
2016-02-16 17:16:16 -08:00
Kiran Challa
7337f50112
[ Fixes #3774 ] DataAnnotation validation ignored
2016-02-16 08:52:50 -08:00
jacalvar
ac23e5aec6
[ Fixes #4013 ] Added support for areas in 'a' and 'form' tag helpers
2016-02-12 17:08:17 -08:00
jacalvar
65858b8d8b
[ Fixes #4051 ] Split OutputFormatter into OutputFormatter and TextOutputFormatter
2016-02-12 12:04:18 -08:00
jacalvar
63354e25a8
Make GetSupportedContentTypes on InputFormatter vitual
2016-02-12 10:57:36 -08:00
Ben Adams
a33369acd8
Fast-path PrefixEnumerator
2016-02-12 09:06:14 -08:00
Ben Adams
a493a9756e
Simplify IsWhitespace
2016-02-10 17:34:20 -08:00
Ben Adams
fd11d70fcd
Less work on non-relative strings in UrlResolutionTagHelper
2016-02-10 17:34:19 -08:00
N. Taylor Mullen
dca15c0a60
React to https://github.com/aspnet/Razor/pull/683
2016-02-10 16:53:33 -08:00
Ben Adams
6c2c777bdc
Optimize StartsWithPrefix
...
-Remove double "equality" test in StartsWithPrefix
-Further StartsWithPrefix efficiencies
-Remove subkey allocation in StartsWithPrefix
2016-02-10 10:12:35 -08:00
Ryan Nowak
dacebacb90
Optimize PrefixContainer
...
There's really no need for us to sanitize null. This code handles null
correctly. Additionally, CopyTo should be able to do better than our
hand-written foreach in the worst case, and avoids an enumerator
allocation.
Removed a custom implementation of IndexOfAny.
2016-02-10 09:48:29 -08:00
Ryan Nowak
698502df8c
Rewrite MutableObjectModelBinder
...
A rewrite focused on simplifying extensibility points and reducing
allocations.
2016-02-10 09:48:05 -08:00
Chris R
fa9f13db2d
React to MediaTypeHeaderValue.Parse exception message change.
2016-02-08 22:26:55 -08:00
Chris R
4f8d1863d8
React to ISendFileFeature parameter name change.
2016-02-08 11:53:57 -08:00
Ryan Nowak
44834debeb
Fix broken code path in antiforgery
2016-02-08 10:51:33 -08:00
Pranav K
7d1d7bc19c
Reacting to CoreCLR package version changes
2016-02-08 09:33:48 -08:00
N. Taylor Mullen
d20df7393d
Fix project.json System.Runtime dependency.
2016-02-05 18:22:51 -08:00
N. Taylor Mullen
f957c04c24
Update project.json to remove redundant System.Runtime dependency.
...
- This package is pulled in transitively.
2016-02-05 17:23:34 -08:00
jacalvar
fe639f028f
[Fixes 3961] Consider InputFormatter behavior when we can't read the charset
...
* Broken InputFormatter into InputFormatter and TextInputFormatter
* Added an exception to ModelState inside ReadAsync on TextInputFormatter
when we can't find a valid encoding to read the body.
2016-02-05 10:42:36 -08:00
Ajay Bhargav Baaskaran
8e8de413f8
Re-enable few tests on Mono
2016-02-04 16:53:09 -08:00
N. Taylor Mullen
59334dcf17
React to aspnet/Razor#604
2016-02-04 16:37:30 -08:00
Ryan Nowak
9ea5a939cf
Move Antiforgery.GetHtml() to MVC as an extension
2016-02-04 13:08:38 -08:00
Ryan Nowak
063bc1f8e8
Replace comparer with a bespoke BinarySearch
2016-02-04 11:25:34 -08:00
jacalvar
1a87f6d91a
[ Fixes #3915 ] Update FormFileModelBinder to avoid re-parsing the ContentDisposition header
2016-02-04 11:17:11 -08:00
ryanbrandenburg
477e620a6b
* Unignore test
2016-02-03 12:03:03 -08:00
Ajay Bhargav Baaskaran
6de171f1ef
[ Fixes #3904 ] Redesigned IValueProviderFactory and renamed a few methods
2016-02-03 11:31:05 -08:00
N. Taylor Mullen
acd88d08ba
Enable invoking a `ViewComponent` without arguments inside of a controller.
...
- Also updated doc comments to properly reflect `ViewComponent` `arguments` parameter.
2016-02-03 10:30:02 -08:00
Kiran Challa
f888ced1f2
Updated FormatFilter tests to include Accept header
2016-02-03 09:29:57 -08:00
Kiran Challa
bf93c7d7a4
Removed JavaScriptEncoder property from HtmlHelper
2016-02-02 16:52:13 -08:00