Граф коммитов

2111 Коммитов

Автор SHA1 Сообщение Дата
Doug Bunting 242dcf8a26 !fixup! CONTRIBUTING.md typo 2019-02-06 14:31:56 -08:00
Doug Bunting f8d040492f Correct discussion links in CONTRIBUTING.md
- add a link from README.md to CONTRIBUTING.md

nit: remove extra blank lines
2019-02-06 13:12:49 -08:00
Doug Bunting 39d3064baf
Flesh out `ByteRangeStream` methods to make it always limit reads (#213)
* Flesh out `ByteRangeStream` methods to make it always limit reads
- #206
- `Seek(...)` was a no-op, `Position` was incorrect if `_lowerbounds != 0`, `ReadAsync(...)` read entire inner `Stream`
  - rewrite `ByteRangeStreamTest` to cover new `ByteRangeStream` members and hold fewer resources
- remove `DelegatingStream.CopyToAsync(...)` override because it copied entire inner `Stream` and was not needed
  - base implementation invokes `ReadAsync(...)`
2018-11-27 19:17:30 -08:00
AlexLEWIS cfda5e5e44 Fixed ASP.NET Web API version in README.md
Fixed ASP.NET Web API version in `README.md`, to make it be same as the Repository Description.
2018-11-27 16:41:38 -08:00
Hans van Bakel 9c86f72adc Update OkResult.cs 2018-11-27 16:27:19 -08:00
Doug Bunting 523f3aa890
Override `TryComputeLength(...)` in web host `HttpContent` implementations (#212)
- #197
- other implementations in this repo are already fine
2018-11-21 10:37:34 -08:00
Doug Bunting 37fce367eb Make `OwinHttpRequestContext.VirtualPathRoot` unescaped
- #203
- now consistent with other overrides of this property
2018-11-20 16:04:18 -08:00
Doug Bunting f9577cbbda
Fix build on systems where VS 2017 isn't latest on the system (#210)
- no need to get things working where VS 2019 preview is the only build available
- start using .NET Core SDK 2.1.403
  - confirmed AppVeyor and wsr-tc agents both have this SDK
- correct ordering issue with restore of System.Net.Http.Formatting.NetCore project
2018-11-20 12:20:00 -08:00
Tornike Kharaishvili e0f1f1338e FormattingUtilities support for parsing dates in RFC 850 long year format (#196)
- also add RFC 850 long year format related test case
2018-09-19 09:43:23 -07:00
Doug Bunting 2109e7e082
Merge pull request #192 from MaximRouiller/repositoryurl
changes to repository url, see issue #190
2018-08-22 08:41:08 -07:00
Maxime Rouiller 9133fbdcdd changes to repository url 2018-08-22 09:11:55 -04:00
Doug Bunting 8044f4ea5c
Merge pull request #185 from itrofimow/master
Fix for #147
2018-08-21 16:47:06 -07:00
Trofimov Ivan Andreevich e0257cd61f review fixes 2018-08-16 22:52:24 +03:00
Trofimov Ivan Andreevich 08a202b95f review fixes; added tests 2018-08-16 22:37:47 +03:00
Trofimov Ivan Andreevich cc39a81d01 StyleCop fixes 2018-08-08 16:42:44 +03:00
Trofimov Ivan Andreevich 83d5629c13 passing rethrow flag through ctor, not throught CorsPolicy 2018-08-08 16:22:49 +03:00
Trofimov Ivan Andreevich 1b5e6a49d2 build fix 2018-08-08 15:50:57 +03:00
Trofimov Ivan Andreevich a890df4724 general idea of fix for https://github.com/aspnet/AspNetWebStack/issues/147 2018-08-08 14:42:15 +03:00
Doug Bunting c40bca36f9
Merge pull request #181 from MaxHorstmann/master
Include 5.2.4 in 'Tags and releases' list
2018-07-26 11:15:45 -07:00
Max Horstmann 7780bc2c7d include 5.2.4 in 'Tags and releases' list 2018-07-26 10:24:54 -04:00
Doug Bunting dcee8e6a23
Merge pull request #176 from JamesSinclairBiomni/master
- fix for #173
2018-07-25 12:49:39 -07:00
JamesSinclairBiomni e940ddf9bd Changes following review 2018-07-25 16:24:07 +01:00
James Sinclair 1f27750128 fix for https://github.com/aspnet/AspNetWebStack/issues/173 2018-07-04 22:55:50 +01:00
Doug Bunting 749384689e
Merge pull request #166 from brandondahler/bugfix/NestedDropDownList
Update SelectExtensions to handle nested expressions where no name is parsed
2018-06-23 13:25:12 -07:00
Doug Bunting 9c6ba84462
Merge pull request #165 from brandondahler/bugfix/NestedRadioButtonFor
RadioButtonFor doesnt resolve isChecked properly when nested
2018-06-23 13:16:27 -07:00
Daniel Roth 052c9c2d06
Update README.md 2018-06-12 14:46:00 -07:00
Daniel Roth d0ffb30bfb
Update README.md 2018-06-12 14:45:31 -07:00
Brandon Dahler 8b1a545850 Update SelectExtensions to handle nested expressions where no name is parsed. 2018-05-31 03:12:40 +01:00
Brandon Dahler 016839472e RadioButtonFor doesnt resolve isChecked properly when nested in EditorTemplate 2018-05-30 03:48:09 +01:00
Doug Bunting 8eb4d1cddb
Move to 5.2.7 / 3.2.7 Preview1
- #159 part 1 of 2
- match 3155d174ba i.e. the upgrade to 5.2.6 / 3.2.6 Preview1
2018-05-17 15:44:11 -07:00
Doug Bunting 3155d174ba
Move to 5.2.6 / 3.2.6 Preview1
- match combination of eb1bfe51a1 and 986889d81c i.e. the upgrade to 5.2.5 / 3.2.5 Preview1
- also change README.md to use "Web API 5.x" instead of "Web API 2.x"
2018-05-02 16:49:39 -07:00
Doug Bunting cf9701435f
Merge pull request #146 from Tasteful/response-desciptor
Initialize property ApiDescription.ResponseDescription in ctor
2018-04-09 16:48:53 -07:00
Patric Forsgard 7b86abfbad Initialize the ApiDescription.ResponseDescription in ctor 2018-03-29 19:35:14 +02:00
Doug Bunting b32ab42712
Do not include compiler-generated names in expression names
- #117
- see also aspnet/Mvc@a045324d3a and PR aspnet/Mvc#3027, the fix for aspnet/Mvc#2890

nits: copy some improved comments from aspnet/Mvc@a045324d3a
2018-03-12 12:53:49 -07:00
Doug Bunting 2b7ac74060
Do not use `FormattedModelValue` in password editor template
- #135
- see also PR aspnet/Mvc#7430
- add quirk switch to reverse this if necessary
2018-03-02 16:25:49 -08:00
Doug Bunting f9e06d60e4 Restore `HttpRequestContext.Principal` after executing inner message handlers
- #119

nits: use `var` more in affected tests
2018-02-21 08:51:00 -08:00
Doug Bunting 986889d81c Fix build break
- revert part of eb1bfe51a1
- Web Pages assemblies do not get new versions release-to-release
- CI still builds Facebook assemblies with version 1.1.0.0 and that doesn't need to change
2018-02-02 11:06:52 -08:00
Doug Bunting eb1bfe51a1 Move to 3.2.5 Preview1 2018-02-01 21:29:21 -08:00
Doug Bunting 9829dd8225 Give `ValidationContext.MemberName` a distinct value from `DisplayName`
- #120
- revert to previous behavior if `webapi:UseLegacyValidationMemberName` application setting is `true`
2018-02-01 16:39:52 -08:00
Daniel Roth 2b669cace9 Update Web API product versions 2018-02-01 10:02:45 -08:00
Doug Bunting a18ca4aa85 Isolate `MediaTypeFormatterTests.MaxCollectionKeySize_RoundTrips`
- in recent CI run, another test failed because `MediaTypeFormatter.MaxHttpCollectionKeys == 1` temporarily
- also left `MediaTypeFormatter.MaxHttpCollectionKeys == 125` which could affect later tests
2017-12-06 08:10:15 -08:00
Doug Bunting 7dad2002a8
Add tag / version table to Readme (#111)
- #23
2017-11-30 17:18:52 -08:00
Doug Bunting c244885782 Avoid two more odd test failures
- missed two tests in #109 / 86f6078419
2017-11-28 12:05:35 -08:00
Doug Bunting 86f6078419 Avoid odd test failures
- XML serializers handle `DBNull` on some machines but not others
- possible an underlying problem was fixed recently, in .NET Core SDK 2.0.3
- but, better to make builds work almost everywhere and wait for .NET Core SDK 2.1.x (where `DBNull` is seralizable)
2017-11-28 09:34:46 -08:00
Doug Bunting a6291df2c6 Fix build typo
- CI tried to test Debug assemblies though only Release had been built
2017-11-27 15:27:04 -08:00
Doug Bunting b1445a7253 Target .NET Standard 2.0
- simplify .NET Standard projects and use Microsoft.NET.Sdk in test project
- depend on Newtonsoft.Json v10 and Newtonsoft.Json.Bson v1 packages
  - Newtonsoft.Json v9.0.1 has a reduced API when targeting .NET Standard
  - adjust a few tests to handle changes between v9 and v10
- test .NET Standard library on both .NET 4.6.1 and .NET Core 2.0
  - update test/Directory.Build.targets to handle testing with .NET Core; use it from Runtime.msbuild
  - adjust a few tests to handle .NET Core 2.0 differences and gaps
  - found and fixed a broken test in `HttpValueCollectionTest`
2017-11-20 14:45:19 -08:00
Doug Bunting 63c080b62d Fix build on internal CI
- some properties with defaults based on `$(IsTestProject)` were set incorrectly
  - Microsoft.TestCommon project is not really a test project
- follow-up to 4b309584ad
2017-11-03 15:44:50 -07:00
Doug Bunting 15169a59e9 Fix CA2227, "Collection properties should be read only" warnings (as errors)
- follow up to eebbf3884
2017-11-01 12:14:54 -07:00
Doug Bunting dca17706d8 Add xUnit analyzers and take xUnit fixer suggestions (5 of 5): System.Web.Razor.Test to end
- part of #65

Few manual changes:
- temporarily remove xUnit analyzers from System.Web.Razor.Test
  - work around xunit/xunit#1502
  - should restore analyzers as part of a #96 fix
- use `Assert.IsAssignableFrom<T>(...)`, `Assert.IsType<T>(...)` and `Assert.Single(...)` return values
- avoid xUnit1013, Public method should be marked as test
  - mark a helper method `internal`
- fix xUnit1026, `[Theory]` method doesn't use all parameters
  - add new data set properties
- suppress xUnit2013, Do not use equality check to check for collection size.
  - calls `Count` because the `Mock<T>` does not set up `GetEnumerable()`
- `Assert.Equal<T>(...)` -> `Assert.Equal(...)`
- avoid Linq's `.Where` inside `Assert.Contains(...)` and similar
2017-11-01 12:11:55 -07:00
Doug Bunting 125b71acc5 Upgrade xUnit Visual Studio runner to latest stable version (v2.3.1)
- enable app domains in all testing; `denied` now breaks testing in VS
  - VS runner previously ignored this setting; see xunit/xunit#1533
- remove `"shadowCopy":  false` setting too
  - with updated xUnit packages, this setting slows testing down significantly
2017-10-31 10:09:23 -07:00