Search

Format string not applied in CookieContainer.Add() Exception by MgSm88

Active

1
0
Sign in
to vote
Type: Bug
ID: 780707
Opened: 3/5/2013 10:04:47 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
When adding a Cookie to a CookieContainer, if the Cookie lacks a required parameter (for example, Domain), it throws an ArgumentException with the message: "The parameter '{0}' cannot be an empty string."

This clearly was supposed to be substituted by String.Format but never was.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

.NET Framework 4.5

Steps to reproduce

var a = new CookieContainer();
var b = new Cookie();
a.Add(b)

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

System.ArgumentException: The parameter '{0}' cannot be an empty string.

Expected results

System.ArgumentException: The parameter 'domain' cannot be an empty string.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 4/5/2013 at 5:05 PM
We regret to say that we are unable to take this bug at this time.
Posted by Microsoft on 3/5/2013 at 8:51 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 3/5/2013 at 10:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.