This repository was archived by the owner on Oct 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
System.FormatException in LoggingExtensions #129
Comments
We ran into this exact issue I think, although we're using CookieAuthentication. The problem is here: The GUID is formatted with the |
+1 having this issue too. |
@Eilon please allocate as you see fit. |
@muratg 's team. But if no one available, I can find someone ASAP. |
Assigned to @BrennanConroy. We should add a test case as well. |
Fixed in aspnet/Logging@ad487c7 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Title
When logging level is Debug, calling XmlKeyManager.ProcessKeyElement(XElement keyElement) will cause a
System.FormatException: Input string was not in a correct format.
exceptionFunctional impact
Unable to use DataProtection API (and therefore any authentication)
Minimal repro steps
dnx451 with dnx 1.0.0-rc2-20213 clr x86 win
All AspNetCore assemblies are 1.0.0-rc2-20230 (from aspnetcidev)
Project is available : https://github.com/NatMarchand/FormatExceptionRepro
Using MVC + OpenIdConnect authentication
When navigating to a restricted uri (with [Authorize] on controller or method)
LogLevel = Debug (works correctly in LogLevel = Information)
Expected result
No exception (and logging "found key")
Actual result
Error 500 :
System.Format exception : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Further technical details
The text was updated successfully, but these errors were encountered: